@fonixtree/magic-design 0.0.13 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/fonts/.DS_Store +0 -0
- package/es/assets/fonts/Montserrat-Bold.ttf +0 -0
- package/es/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/es/assets/fonts/Montserrat-Regular.ttf +0 -0
- package/es/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/es/assets/fonts/OpenSans-Bold.ttf +0 -0
- package/es/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/es/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +299 -0
- package/es/assets/fonts/magic-box-iconfont.css.bak +299 -0
- package/es/assets/fonts/magic-box-iconfont.js +1 -0
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -0
- 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/icon/index.js +68 -0
- package/es/assets/images/layout-icon/carouselLayout1.png +0 -0
- package/es/assets/images/layout-icon/carouselLayout2.png +0 -0
- package/es/assets/images/layout-icon/dividerLayout.svg +4 -0
- package/es/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m3-1.svg +18 -0
- package/es/assets/images/layout-icon/layout-imagetext-m3-2.svg +9 -0
- package/es/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
- package/es/assets/images/layout-icon/layout-search.png +0 -0
- package/es/assets/images/layout-icon/newsletter.svg +7 -0
- package/es/assets/less/button.less +9 -0
- package/es/assets/less/common.less +82 -0
- package/es/assets/less/cylon-antd.less +32534 -0
- package/es/assets/less/font.less +50 -0
- package/es/assets/less/global.less +8 -0
- package/es/assets/less/index.less +11 -0
- package/es/assets/less/input.less +8 -0
- package/es/assets/less/menu.less +21 -0
- package/es/assets/less/modal.less +16 -0
- package/es/assets/less/select.less +19 -0
- package/es/assets/less/slider.less +21 -0
- package/es/assets/less/switch.less +20 -0
- package/es/assets/less/table.less +40 -0
- package/es/assets/less/variables.less +4 -0
- package/es/common/AlignSelector/index.js +104 -0
- package/es/common/AlignSelector/index.less +28 -0
- package/es/common/Button/index.js +134 -0
- package/es/common/Button/index.less +68 -0
- package/es/common/ButtonIconLayout/index.js +103 -0
- package/es/common/ButtonIconLayout/index.less +53 -0
- package/es/common/Collapse/index.js +384 -0
- package/es/common/Collapse/index.less +97 -0
- package/es/common/ColorPicker/imgs/no-color.png +0 -0
- package/es/common/ColorPicker/index.js +131 -0
- package/es/common/ColorPicker/index.less +26 -0
- package/es/common/ColorPickerInput/imgs/code.png +0 -0
- package/es/common/ColorPickerInput/index.js +114 -0
- package/es/common/ColorPickerInput/index.less +50 -0
- package/es/common/CountDown/index.js +151 -0
- package/es/common/CountDown/index.less +23 -0
- package/es/common/Field/index.js +80 -0
- package/es/common/Field/index.less +37 -0
- package/es/common/FontStyles/index.js +178 -0
- package/es/common/FontStyles/index.less +63 -0
- package/es/common/GroupList/defaultImg.png +0 -0
- package/es/common/GroupList/index.js +210 -0
- package/es/common/GroupList/index.less +85 -0
- package/es/common/IconPicker/index.js +147 -0
- package/es/common/IconPicker/index.less +46 -0
- package/es/common/Iconfont/index.js +148 -0
- package/es/common/Iconfont/index.less +20 -0
- package/es/common/ImageModal/CommonModal/const.js +22 -0
- package/es/common/ImageModal/CommonModal/index.js +46 -0
- package/es/common/ImageModal/CommonSelPicCard/index.js +80 -0
- package/es/common/ImageModal/CommonSelPicCard/index.less +40 -0
- package/es/common/ImageModal/const.js +24 -0
- package/es/common/ImageModal/index.js +748 -0
- package/es/common/ImageModal/index.less +21 -0
- package/es/common/ImagePicker/index.js +162 -0
- package/es/common/ImagePicker/index.less +104 -0
- package/es/common/InputNumber/index.js +91 -0
- package/es/common/InputNumber/index.less +33 -0
- package/es/common/LayoutSelector/imgs/center.png +0 -0
- package/es/common/LayoutSelector/imgs/left.png +0 -0
- package/es/common/LayoutSelector/imgs/right.png +0 -0
- package/es/common/LayoutSelector/index.js +111 -0
- package/es/common/LayoutSelector/index.less +34 -0
- package/es/common/LinkModal/CatgTable/index.js +234 -0
- package/es/common/LinkModal/CouponTable/index.js +299 -0
- package/es/common/LinkModal/CustomTable/index.js +227 -0
- package/es/common/LinkModal/FilteredProductModal/index.js +640 -0
- package/es/common/LinkModal/FilteredProductModal/index.less +113 -0
- package/es/common/LinkModal/FunctionTable/index.js +221 -0
- package/es/common/LinkModal/ProductDetailPage/index.js +433 -0
- package/es/common/LinkModal/ProductDetailPage/index.less +21 -0
- package/es/common/LinkModal/index.js +136 -0
- package/es/common/LinkModal/index.less +108 -0
- package/es/common/NewImg/index.js +165 -0
- package/es/common/NewImg/index.less +0 -0
- package/es/common/ProductModal/index.js +760 -0
- package/es/common/ProductModal/index.less +238 -0
- package/es/common/ProductSource/index.js +250 -0
- package/es/common/ProductSource/index.less +12 -0
- package/es/common/RcCollapse/Collapse.js +240 -0
- package/es/common/RcCollapse/Panel.js +193 -0
- package/es/common/RcCollapse/PanelContent.js +59 -0
- package/es/common/RcCollapse/index.js +15 -0
- package/es/common/RcCollapse/index.less +108 -0
- package/es/common/RcCollapse/interface.js +1 -0
- package/es/common/RcCollapse/motion.less +12 -0
- package/es/common/RcCollapse/motionUtil.js +44 -0
- package/es/common/Slider/index.js +151 -0
- package/es/common/Slider/index.less +45 -0
- package/es/common/SwitchCollapse/index.js +216 -0
- package/es/common/SwitchCollapse/index.less +40 -0
- package/es/common/UrlPicker/index.js +119 -0
- package/es/common/UrlPicker/index.less +72 -0
- package/es/common/index.js +127 -0
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +268 -0
- package/es/composite-comp/bol/components/Banner/index.js +89 -0
- package/es/composite-comp/bol/components/Button/defaultJSON.js +114 -0
- package/es/composite-comp/bol/components/Button/index.js +0 -0
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +295 -0
- package/es/composite-comp/bol/components/Divider/defaultJSON.js +47 -0
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +74 -0
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +546 -0
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +135 -0
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +112 -0
- package/es/composite-comp/bol/components/Text/defaultJSON.js +149 -0
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +183 -0
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +220 -0
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +56 -0
- package/es/constants/component-types.js +87 -0
- package/es/constants/index.js +144 -0
- package/es/constants/layout.js +120 -0
- package/es/core/Designer/CompListPanel/index.js +156 -0
- package/es/core/Designer/CompListPanel/index.less +69 -0
- package/es/core/Designer/ConfigPanel/index.js +294 -0
- package/es/core/Designer/ConfigPanel/index.less +139 -0
- package/es/core/Designer/History/index.js +91 -0
- package/es/core/Designer/PageCompList/index.js +266 -0
- package/es/core/Designer/PageCompList/index.less +114 -0
- package/es/core/Designer/QuickMenuBar/index.js +176 -0
- package/es/core/Designer/QuickMenuBar/index.less +67 -0
- package/es/core/Designer/ViewArea/index.js +150 -0
- package/es/core/Designer/ViewArea/index.less +53 -0
- package/es/core/Designer/index.js +454 -0
- package/es/core/Designer/index.less +6 -0
- package/es/core/Renderer/index.js +82 -0
- package/es/decorator/compositeDecorator.js +130 -0
- package/es/decorator/index.js +23 -0
- package/es/decorator/metaDecorator.js +199 -0
- package/es/index.js +27 -0
- package/es/meta-comp/components/Button/index.js +189 -0
- package/es/meta-comp/components/Button/index.less +19 -0
- package/es/meta-comp/components/Image/index.js +183 -0
- package/es/meta-comp/components/Text/index.js +478 -0
- package/es/meta-comp/components/index.js +31 -0
- package/es/meta-comp/config-panels/BaseConfig.js +87 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +356 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +395 -0
- package/es/meta-comp/config-panels/TextConfig/index.js +358 -0
- package/es/mobx/Store.js +95 -0
- package/es/mobx/index.js +36 -0
- package/es/utils/androidUtil.js +113 -0
- package/es/utils/businessUtil.js +235 -0
- package/es/utils/commonUtil.js +289 -0
- package/es/utils/compJsonUtil.js +240 -0
- package/es/utils/coreUtil.js +156 -0
- package/es/utils/currencyUtil.js +190 -0
- package/es/utils/dataTreeUtils.js +105 -0
- package/es/utils/dateUtil.js +70 -0
- package/es/utils/storeUtil.js +258 -0
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/Montserrat-Bold.ttf +0 -0
- package/lib/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/lib/assets/fonts/Montserrat-Regular.ttf +0 -0
- package/lib/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/lib/assets/fonts/OpenSans-Bold.ttf +0 -0
- package/lib/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/lib/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +299 -0
- package/lib/assets/fonts/magic-box-iconfont.css.bak +299 -0
- package/lib/assets/fonts/magic-box-iconfont.js +1 -0
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -0
- 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/icon/index.js +68 -0
- package/lib/assets/images/layout-icon/carouselLayout1.png +0 -0
- package/lib/assets/images/layout-icon/carouselLayout2.png +0 -0
- package/lib/assets/images/layout-icon/dividerLayout.svg +4 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m3-1.svg +18 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m3-2.svg +9 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
- package/lib/assets/images/layout-icon/layout-search.png +0 -0
- package/lib/assets/images/layout-icon/newsletter.svg +7 -0
- package/lib/assets/less/button.less +9 -0
- package/lib/assets/less/common.less +82 -0
- package/lib/assets/less/cylon-antd.less +32534 -0
- package/lib/assets/less/font.less +50 -0
- package/lib/assets/less/global.less +8 -0
- package/lib/assets/less/index.less +11 -0
- package/lib/assets/less/input.less +8 -0
- package/lib/assets/less/menu.less +21 -0
- package/lib/assets/less/modal.less +16 -0
- package/lib/assets/less/select.less +19 -0
- package/lib/assets/less/slider.less +21 -0
- package/lib/assets/less/switch.less +20 -0
- package/lib/assets/less/table.less +40 -0
- package/lib/assets/less/variables.less +4 -0
- package/lib/common/AlignSelector/index.js +104 -0
- package/lib/common/AlignSelector/index.less +28 -0
- package/lib/common/Button/index.js +134 -0
- package/lib/common/Button/index.less +68 -0
- package/lib/common/ButtonIconLayout/index.js +103 -0
- package/lib/common/ButtonIconLayout/index.less +53 -0
- package/lib/common/Collapse/index.js +384 -0
- package/lib/common/Collapse/index.less +97 -0
- package/lib/common/ColorPicker/imgs/no-color.png +0 -0
- package/lib/common/ColorPicker/index.js +131 -0
- package/lib/common/ColorPicker/index.less +26 -0
- package/lib/common/ColorPickerInput/imgs/code.png +0 -0
- package/lib/common/ColorPickerInput/index.js +114 -0
- package/lib/common/ColorPickerInput/index.less +50 -0
- package/lib/common/CountDown/index.js +151 -0
- package/lib/common/CountDown/index.less +23 -0
- package/lib/common/Field/index.js +80 -0
- package/lib/common/Field/index.less +37 -0
- package/lib/common/FontStyles/index.js +178 -0
- package/lib/common/FontStyles/index.less +63 -0
- package/lib/common/GroupList/defaultImg.png +0 -0
- package/lib/common/GroupList/index.js +210 -0
- package/lib/common/GroupList/index.less +85 -0
- package/lib/common/IconPicker/index.js +147 -0
- package/lib/common/IconPicker/index.less +46 -0
- package/lib/common/Iconfont/index.js +148 -0
- package/lib/common/Iconfont/index.less +20 -0
- package/lib/common/ImageModal/CommonModal/const.js +22 -0
- package/lib/common/ImageModal/CommonModal/index.js +46 -0
- package/lib/common/ImageModal/CommonSelPicCard/index.js +80 -0
- package/lib/common/ImageModal/CommonSelPicCard/index.less +40 -0
- package/lib/common/ImageModal/const.js +24 -0
- package/lib/common/ImageModal/index.js +748 -0
- package/lib/common/ImageModal/index.less +21 -0
- package/lib/common/ImagePicker/index.js +162 -0
- package/lib/common/ImagePicker/index.less +104 -0
- package/lib/common/InputNumber/index.js +91 -0
- package/lib/common/InputNumber/index.less +33 -0
- package/lib/common/LayoutSelector/imgs/center.png +0 -0
- package/lib/common/LayoutSelector/imgs/left.png +0 -0
- package/lib/common/LayoutSelector/imgs/right.png +0 -0
- package/lib/common/LayoutSelector/index.js +111 -0
- package/lib/common/LayoutSelector/index.less +34 -0
- package/lib/common/LinkModal/CatgTable/index.js +234 -0
- package/lib/common/LinkModal/CouponTable/index.js +299 -0
- package/lib/common/LinkModal/CustomTable/index.js +227 -0
- package/lib/common/LinkModal/FilteredProductModal/index.js +640 -0
- package/lib/common/LinkModal/FilteredProductModal/index.less +113 -0
- package/lib/common/LinkModal/FunctionTable/index.js +221 -0
- package/lib/common/LinkModal/ProductDetailPage/index.js +433 -0
- package/lib/common/LinkModal/ProductDetailPage/index.less +21 -0
- package/lib/common/LinkModal/index.js +136 -0
- package/lib/common/LinkModal/index.less +108 -0
- package/lib/common/NewImg/index.js +165 -0
- package/lib/common/NewImg/index.less +0 -0
- package/lib/common/ProductModal/index.js +760 -0
- package/lib/common/ProductModal/index.less +238 -0
- package/lib/common/ProductSource/index.js +250 -0
- package/lib/common/ProductSource/index.less +12 -0
- package/lib/common/RcCollapse/Collapse.js +240 -0
- package/lib/common/RcCollapse/Panel.js +193 -0
- package/lib/common/RcCollapse/PanelContent.js +59 -0
- package/lib/common/RcCollapse/index.js +15 -0
- package/lib/common/RcCollapse/index.less +108 -0
- package/lib/common/RcCollapse/interface.js +1 -0
- package/lib/common/RcCollapse/motion.less +12 -0
- package/lib/common/RcCollapse/motionUtil.js +44 -0
- package/lib/common/Slider/index.js +151 -0
- package/lib/common/Slider/index.less +45 -0
- package/lib/common/SwitchCollapse/index.js +216 -0
- package/lib/common/SwitchCollapse/index.less +40 -0
- package/lib/common/UrlPicker/index.js +119 -0
- package/lib/common/UrlPicker/index.less +72 -0
- package/lib/common/index.js +127 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +268 -0
- package/lib/composite-comp/bol/components/Banner/index.js +89 -0
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +114 -0
- package/lib/composite-comp/bol/components/Button/index.js +103 -0
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +295 -0
- package/lib/composite-comp/bol/components/Divider/defaultJSON.js +47 -0
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +74 -0
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +546 -0
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +135 -0
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +112 -0
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +149 -0
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +183 -0
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +220 -0
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +56 -0
- package/lib/constants/component-types.js +87 -0
- package/lib/constants/index.js +144 -0
- package/lib/constants/layout.js +120 -0
- package/lib/core/Designer/CompListPanel/index.js +156 -0
- package/lib/core/Designer/CompListPanel/index.less +69 -0
- package/lib/core/Designer/ConfigPanel/index.js +294 -0
- package/lib/core/Designer/ConfigPanel/index.less +139 -0
- package/lib/core/Designer/History/index.js +91 -0
- package/lib/core/Designer/PageCompList/index.js +266 -0
- package/lib/core/Designer/PageCompList/index.less +114 -0
- package/lib/core/Designer/QuickMenuBar/index.js +176 -0
- package/lib/core/Designer/QuickMenuBar/index.less +67 -0
- package/lib/core/Designer/ViewArea/index.js +150 -0
- package/lib/core/Designer/ViewArea/index.less +53 -0
- package/lib/core/Designer/index.js +454 -0
- package/lib/core/Designer/index.less +6 -0
- package/lib/core/Renderer/index.js +82 -0
- package/lib/decorator/compositeDecorator.js +130 -0
- package/lib/decorator/index.js +23 -0
- package/lib/decorator/metaDecorator.js +199 -0
- package/lib/index.js +27 -0
- package/lib/meta-comp/components/Button/index.js +189 -0
- package/lib/meta-comp/components/Button/index.less +0 -0
- package/lib/meta-comp/components/Image/index.js +183 -0
- package/lib/meta-comp/components/Text/index.js +478 -0
- package/lib/meta-comp/components/index.js +31 -0
- package/lib/meta-comp/config-panels/BaseConfig.js +87 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +356 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +395 -0
- package/lib/meta-comp/config-panels/TextConfig/index.js +358 -0
- package/lib/mobx/Store.js +95 -0
- package/lib/mobx/index.js +36 -0
- package/lib/utils/androidUtil.js +113 -0
- package/lib/utils/businessUtil.js +235 -0
- package/lib/utils/commonUtil.js +289 -0
- package/lib/utils/compJsonUtil.js +240 -0
- package/lib/utils/coreUtil.js +156 -0
- package/lib/utils/currencyUtil.js +190 -0
- package/lib/utils/dataTreeUtils.js +105 -0
- package/lib/utils/dateUtil.js +70 -0
- package/lib/utils/storeUtil.js +258 -0
- package/package.json +44 -6
- package/_virtual/__node-resolve_empty.js +0 -6
- package/_virtual/_cloneBuffer.js +0 -3
- package/_virtual/_commonjsHelpers.js +0 -24
- package/_virtual/_node-resolve_empty.js +0 -3
- package/_virtual/_nodeUtil.js +0 -3
- package/_virtual/_rollupPluginBabelHelpers.js +0 -18
- package/_virtual/index.js +0 -3
- package/_virtual/index2.js +0 -3
- package/_virtual/index3.js +0 -3
- package/_virtual/index4.js +0 -3
- package/_virtual/index5.js +0 -5
- package/_virtual/interopRequireDefault.js +0 -3
- package/_virtual/isBuffer.js +0 -3
- package/_virtual/react-is.development.js +0 -3
- package/_virtual/react-is.production.min.js +0 -3
- package/_virtual/rng-browser.js +0 -3
- package/_virtual/toArray.js +0 -3
- package/my_node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -11
- package/my_node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -5
- package/my_node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -9
- package/my_node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -7
- package/my_node_modules/@babel/runtime/helpers/esm/createClass.js +0 -20
- package/my_node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -22
- package/my_node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -16
- package/my_node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -8
- package/my_node_modules/@babel/runtime/helpers/esm/inherits.js +0 -21
- package/my_node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -14
- package/my_node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -31
- package/my_node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -5
- package/my_node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -29
- package/my_node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -14
- package/my_node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -9
- package/my_node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
- package/my_node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
- package/my_node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -12
- package/my_node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -11
- package/my_node_modules/call-bind/callBound.js +0 -19
- package/my_node_modules/call-bind/index.js +0 -52
- package/my_node_modules/classnames/index.js +0 -61
- package/my_node_modules/function-bind/implementation.js +0 -52
- package/my_node_modules/function-bind/index.js +0 -7
- package/my_node_modules/get-intrinsic/index.js +0 -338
- package/my_node_modules/has/src/index.js +0 -7
- package/my_node_modules/has-symbols/index.js +0 -15
- package/my_node_modules/has-symbols/shams.js +0 -42
- package/my_node_modules/lodash/_DataView.js +0 -12
- package/my_node_modules/lodash/_Hash.js +0 -40
- package/my_node_modules/lodash/_ListCache.js +0 -40
- package/my_node_modules/lodash/_Map.js +0 -12
- package/my_node_modules/lodash/_MapCache.js +0 -40
- package/my_node_modules/lodash/_Promise.js +0 -12
- package/my_node_modules/lodash/_Set.js +0 -12
- package/my_node_modules/lodash/_SetCache.js +0 -33
- package/my_node_modules/lodash/_Stack.js +0 -36
- package/my_node_modules/lodash/_Symbol.js +0 -10
- package/my_node_modules/lodash/_Uint8Array.js +0 -10
- package/my_node_modules/lodash/_WeakMap.js +0 -12
- package/my_node_modules/lodash/_arrayEach.js +0 -25
- package/my_node_modules/lodash/_arrayFilter.js +0 -28
- package/my_node_modules/lodash/_arrayLikeKeys.js +0 -59
- package/my_node_modules/lodash/_arrayMap.js +0 -24
- package/my_node_modules/lodash/_arrayPush.js +0 -23
- package/my_node_modules/lodash/_arraySome.js +0 -26
- package/my_node_modules/lodash/_assignValue.js +0 -33
- package/my_node_modules/lodash/_assocIndexOf.js +0 -25
- package/my_node_modules/lodash/_baseAssign.js +0 -22
- package/my_node_modules/lodash/_baseAssignIn.js +0 -22
- package/my_node_modules/lodash/_baseAssignValue.js +0 -29
- package/my_node_modules/lodash/_baseClone.js +0 -193
- package/my_node_modules/lodash/_baseCreate.js +0 -34
- package/my_node_modules/lodash/_baseFindIndex.js +0 -27
- package/my_node_modules/lodash/_baseFor.js +0 -20
- package/my_node_modules/lodash/_baseForOwn.js +0 -21
- package/my_node_modules/lodash/_baseGet.js +0 -29
- package/my_node_modules/lodash/_baseGetAllKeys.js +0 -25
- package/my_node_modules/lodash/_baseGetTag.js +0 -34
- package/my_node_modules/lodash/_baseHasIn.js +0 -16
- package/my_node_modules/lodash/_baseIsArguments.js +0 -23
- package/my_node_modules/lodash/_baseIsEqual.js +0 -33
- package/my_node_modules/lodash/_baseIsEqualDeep.js +0 -95
- package/my_node_modules/lodash/_baseIsMap.js +0 -23
- package/my_node_modules/lodash/_baseIsMatch.js +0 -67
- package/my_node_modules/lodash/_baseIsNative.js +0 -54
- package/my_node_modules/lodash/_baseIsSet.js +0 -23
- package/my_node_modules/lodash/_baseIsTypedArray.js +0 -66
- package/my_node_modules/lodash/_baseIteratee.js +0 -39
- package/my_node_modules/lodash/_baseKeys.js +0 -35
- package/my_node_modules/lodash/_baseKeysIn.js +0 -39
- package/my_node_modules/lodash/_baseMatches.js +0 -28
- package/my_node_modules/lodash/_baseMatchesProperty.js +0 -43
- package/my_node_modules/lodash/_baseProperty.js +0 -17
- package/my_node_modules/lodash/_basePropertyDeep.js +0 -20
- package/my_node_modules/lodash/_baseTimes.js +0 -23
- package/my_node_modules/lodash/_baseToNumber.js +0 -28
- package/my_node_modules/lodash/_baseToString.js +0 -44
- package/my_node_modules/lodash/_baseTrim.js +0 -23
- package/my_node_modules/lodash/_baseUnary.js +0 -17
- package/my_node_modules/lodash/_cacheHas.js +0 -16
- package/my_node_modules/lodash/_castPath.js +0 -28
- package/my_node_modules/lodash/_cloneArrayBuffer.js +0 -20
- package/my_node_modules/lodash/_cloneBuffer.js +0 -40
- package/my_node_modules/lodash/_cloneDataView.js +0 -20
- package/my_node_modules/lodash/_cloneRegExp.js +0 -20
- package/my_node_modules/lodash/_cloneSymbol.js +0 -22
- package/my_node_modules/lodash/_cloneTypedArray.js +0 -20
- package/my_node_modules/lodash/_copyArray.js +0 -23
- package/my_node_modules/lodash/_copyObject.js +0 -45
- package/my_node_modules/lodash/_copySymbols.js +0 -21
- package/my_node_modules/lodash/_copySymbolsIn.js +0 -21
- package/my_node_modules/lodash/_coreJsData.js +0 -10
- package/my_node_modules/lodash/_createBaseFor.js +0 -28
- package/my_node_modules/lodash/_createMathOperation.js +0 -43
- package/my_node_modules/lodash/_defineProperty.js +0 -15
- package/my_node_modules/lodash/_equalArrays.js +0 -90
- package/my_node_modules/lodash/_equalByTag.js +0 -121
- package/my_node_modules/lodash/_equalObjects.js +0 -94
- package/my_node_modules/lodash/_freeGlobal.js +0 -9
- package/my_node_modules/lodash/_getAllKeys.js +0 -22
- package/my_node_modules/lodash/_getAllKeysIn.js +0 -23
- package/my_node_modules/lodash/_getMapData.js +0 -22
- package/my_node_modules/lodash/_getMatchData.js +0 -29
- package/my_node_modules/lodash/_getNative.js +0 -22
- package/my_node_modules/lodash/_getPrototype.js +0 -10
- package/my_node_modules/lodash/_getRawTag.js +0 -50
- package/my_node_modules/lodash/_getSymbols.js +0 -35
- package/my_node_modules/lodash/_getSymbolsIn.js +0 -32
- package/my_node_modules/lodash/_getTag.js +0 -68
- package/my_node_modules/lodash/_getValue.js +0 -16
- package/my_node_modules/lodash/_hasPath.js +0 -48
- package/my_node_modules/lodash/_hashClear.js +0 -19
- package/my_node_modules/lodash/_hashDelete.js +0 -20
- package/my_node_modules/lodash/_hashGet.js +0 -34
- package/my_node_modules/lodash/_hashHas.js +0 -27
- package/my_node_modules/lodash/_hashSet.js +0 -27
- package/my_node_modules/lodash/_initCloneArray.js +0 -29
- package/my_node_modules/lodash/_initCloneByTag.js +0 -85
- package/my_node_modules/lodash/_initCloneObject.js +0 -24
- package/my_node_modules/lodash/_isIndex.js +0 -28
- package/my_node_modules/lodash/_isKey.js +0 -34
- package/my_node_modules/lodash/_isKeyable.js +0 -18
- package/my_node_modules/lodash/_isMasked.js +0 -24
- package/my_node_modules/lodash/_isPrototype.js +0 -21
- package/my_node_modules/lodash/_isStrictComparable.js +0 -19
- package/my_node_modules/lodash/_listCacheClear.js +0 -16
- package/my_node_modules/lodash/_listCacheDelete.js +0 -39
- package/my_node_modules/lodash/_listCacheGet.js +0 -23
- package/my_node_modules/lodash/_listCacheHas.js +0 -20
- package/my_node_modules/lodash/_listCacheSet.js +0 -30
- package/my_node_modules/lodash/_mapCacheClear.js +0 -27
- package/my_node_modules/lodash/_mapCacheDelete.js +0 -22
- package/my_node_modules/lodash/_mapCacheGet.js +0 -20
- package/my_node_modules/lodash/_mapCacheHas.js +0 -20
- package/my_node_modules/lodash/_mapCacheSet.js +0 -26
- package/my_node_modules/lodash/_mapToArray.js +0 -21
- package/my_node_modules/lodash/_matchesStrictComparable.js +0 -23
- package/my_node_modules/lodash/_memoizeCapped.js +0 -30
- package/my_node_modules/lodash/_nativeCreate.js +0 -10
- package/my_node_modules/lodash/_nativeKeys.js +0 -10
- package/my_node_modules/lodash/_nativeKeysIn.js +0 -23
- package/my_node_modules/lodash/_nodeUtil.js +0 -35
- package/my_node_modules/lodash/_objectToString.js +0 -25
- package/my_node_modules/lodash/_overArg.js +0 -18
- package/my_node_modules/lodash/_root.js +0 -13
- package/my_node_modules/lodash/_setCacheAdd.js +0 -22
- package/my_node_modules/lodash/_setCacheHas.js +0 -17
- package/my_node_modules/lodash/_setToArray.js +0 -21
- package/my_node_modules/lodash/_stackClear.js +0 -19
- package/my_node_modules/lodash/_stackDelete.js +0 -21
- package/my_node_modules/lodash/_stackGet.js +0 -17
- package/my_node_modules/lodash/_stackHas.js +0 -17
- package/my_node_modules/lodash/_stackSet.js +0 -40
- package/my_node_modules/lodash/_stringToPath.js +0 -31
- package/my_node_modules/lodash/_toKey.js +0 -25
- package/my_node_modules/lodash/_toSource.js +0 -29
- package/my_node_modules/lodash/_trimmedEndIndex.js +0 -22
- package/my_node_modules/lodash/cloneDeep.js +0 -33
- package/my_node_modules/lodash/divide.js +0 -26
- package/my_node_modules/lodash/eq.js +0 -40
- package/my_node_modules/lodash/findIndex.js +0 -61
- package/my_node_modules/lodash/get.js +0 -37
- package/my_node_modules/lodash/hasIn.js +0 -39
- package/my_node_modules/lodash/identity.js +0 -24
- package/my_node_modules/lodash/isArguments.js +0 -41
- package/my_node_modules/lodash/isArray.js +0 -29
- package/my_node_modules/lodash/isArrayLike.js +0 -38
- package/my_node_modules/lodash/isBuffer.js +0 -44
- package/my_node_modules/lodash/isEmpty.js +0 -89
- package/my_node_modules/lodash/isFunction.js +0 -42
- package/my_node_modules/lodash/isLength.js +0 -38
- package/my_node_modules/lodash/isMap.js +0 -34
- package/my_node_modules/lodash/isObject.js +0 -34
- package/my_node_modules/lodash/isObjectLike.js +0 -32
- package/my_node_modules/lodash/isSet.js +0 -34
- package/my_node_modules/lodash/isSymbol.js +0 -34
- package/my_node_modules/lodash/isTypedArray.js +0 -34
- package/my_node_modules/lodash/keys.js +0 -43
- package/my_node_modules/lodash/keysIn.js +0 -38
- package/my_node_modules/lodash/mapKeys.js +0 -42
- package/my_node_modules/lodash/memoize.js +0 -77
- package/my_node_modules/lodash/property.js +0 -39
- package/my_node_modules/lodash/stubArray.js +0 -26
- package/my_node_modules/lodash/stubFalse.js +0 -21
- package/my_node_modules/lodash/toFinite.js +0 -46
- package/my_node_modules/lodash/toInteger.js +0 -40
- package/my_node_modules/lodash/toNumber.js +0 -70
- package/my_node_modules/lodash/toString.js +0 -32
- package/my_node_modules/object-assign/index.js +0 -99
- package/my_node_modules/object-inspect/index.js +0 -516
- package/my_node_modules/prop-types/checkPropTypes.js +0 -115
- package/my_node_modules/prop-types/factoryWithThrowingShims.js +0 -74
- package/my_node_modules/prop-types/factoryWithTypeCheckers.js +0 -625
- package/my_node_modules/prop-types/index.js +0 -27
- package/my_node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -21
- package/my_node_modules/prop-types/lib/has.js +0 -11
- package/my_node_modules/qs/lib/formats.js +0 -23
- package/my_node_modules/qs/lib/index.js +0 -15
- package/my_node_modules/qs/lib/parse.js +0 -265
- package/my_node_modules/qs/lib/stringify.js +0 -330
- package/my_node_modules/qs/lib/utils.js +0 -254
- package/my_node_modules/rc-motion/es/CSSMotion.js +0 -149
- package/my_node_modules/rc-motion/es/DomWrapper.js +0 -28
- package/my_node_modules/rc-motion/es/hooks/useDomMotionEvents.js +0 -45
- package/my_node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.js +0 -6
- package/my_node_modules/rc-motion/es/hooks/useNextFrame.js +0 -36
- package/my_node_modules/rc-motion/es/hooks/useStatus.js +0 -232
- package/my_node_modules/rc-motion/es/hooks/useStepQueue.js +0 -69
- package/my_node_modules/rc-motion/es/index.js +0 -4
- package/my_node_modules/rc-motion/es/interface.js +0 -11
- package/my_node_modules/rc-motion/es/util/motion.js +0 -85
- package/my_node_modules/rc-util/es/Dom/canUseDom.js +0 -5
- package/my_node_modules/rc-util/es/Dom/findDOMNode.js +0 -15
- package/my_node_modules/rc-util/es/hooks/useState.js +0 -36
- package/my_node_modules/rc-util/es/raf.js +0 -57
- package/my_node_modules/rc-util/es/ref.js +0 -30
- package/my_node_modules/rc-util/lib/Children/toArray.js +0 -39
- package/my_node_modules/react-is/cjs/react-is.development.js +0 -190
- package/my_node_modules/react-is/cjs/react-is.production.min.js +0 -26
- package/my_node_modules/react-is/index.js +0 -21
- package/my_node_modules/shallowequal/index.js +0 -48
- package/my_node_modules/side-channel/index.js +0 -128
- package/my_node_modules/slick-carousel/slick/slick-theme.css.js +0 -4
- package/my_node_modules/slick-carousel/slick/slick.css.js +0 -4
- package/my_node_modules/style-inject/dist/style-inject.es.js +0 -28
- package/my_node_modules/tslib/tslib.es6.js +0 -110
- package/my_node_modules/uuid/index.js +0 -13
- package/my_node_modules/uuid/lib/bytesToUuid.js +0 -29
- package/my_node_modules/uuid/lib/rng-browser.js +0 -39
- package/my_node_modules/uuid/v1.js +0 -115
- package/my_node_modules/uuid/v4.js +0 -35
- package/src/components/assets/images/layout-icon/carouselLayout1.png.js +0 -3
- package/src/components/assets/images/layout-icon/carouselLayout2.png.js +0 -3
- package/src/components/assets/images/layout-icon/dividerLayout.svg.js +0 -3
- package/src/components/assets/images/layout-icon/imageGalleryLayout1.png.js +0 -3
- package/src/components/assets/images/layout-icon/imageGalleryLayout2.png.js +0 -3
- package/src/components/assets/images/layout-icon/imageGalleryLayout3.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-m1-1.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-m1-2.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-m1-3.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-m2.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-m3.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-p1.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-p2.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-p4.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-search.png.js +0 -3
- package/src/components/assets/images/layout-icon/newsletter.svg.js +0 -3
- package/src/components/assets/less/cylon-antd.less.js +0 -3
- package/src/components/assets/less/index.less.js +0 -4
- package/src/components/common/AlignSelector/index.js +0 -65
- package/src/components/common/AlignSelector/index.less.js +0 -4
- package/src/components/common/Button/index.js +0 -75
- package/src/components/common/Button/index.less.js +0 -4
- package/src/components/common/ButtonIconLayout/index.js +0 -66
- package/src/components/common/ButtonIconLayout/index.less.js +0 -4
- package/src/components/common/Collapse/index.js +0 -323
- package/src/components/common/Collapse/index.less.js +0 -4
- package/src/components/common/ColorPicker/index.js +0 -94
- package/src/components/common/ColorPicker/index.less.js +0 -4
- package/src/components/common/ColorPickerInput/index.js +0 -76
- package/src/components/common/ColorPickerInput/index.less.js +0 -4
- package/src/components/common/CountDown/index.js +0 -110
- package/src/components/common/CountDown/index.less.js +0 -4
- package/src/components/common/Field/index.js +0 -43
- package/src/components/common/Field/index.less.js +0 -4
- package/src/components/common/FontStyles/index.js +0 -124
- package/src/components/common/FontStyles/index.less.js +0 -4
- package/src/components/common/GroupList/defaultImg.png.js +0 -3
- package/src/components/common/GroupList/index.js +0 -170
- package/src/components/common/GroupList/index.less.js +0 -4
- package/src/components/common/IconPicker/index.js +0 -93
- package/src/components/common/IconPicker/index.less.js +0 -4
- package/src/components/common/Iconfont/index.js +0 -74
- package/src/components/common/Iconfont/index.less.js +0 -4
- package/src/components/common/ImageModal/CommonModal/const.js +0 -16
- package/src/components/common/ImageModal/CommonModal/index.js +0 -33
- package/src/components/common/ImageModal/CommonSelPicCard/index.js +0 -66
- package/src/components/common/ImageModal/CommonSelPicCard/index.less.js +0 -4
- package/src/components/common/ImageModal/const.js +0 -18
- package/src/components/common/ImageModal/index.js +0 -547
- package/src/components/common/ImageModal/index.less.js +0 -4
- package/src/components/common/ImagePicker/index.js +0 -124
- package/src/components/common/ImagePicker/index.less.js +0 -4
- package/src/components/common/InputNumber/index.js +0 -54
- package/src/components/common/InputNumber/index.less.js +0 -4
- package/src/components/common/LayoutSelector/imgs/center.png.js +0 -3
- package/src/components/common/LayoutSelector/imgs/left.png.js +0 -3
- package/src/components/common/LayoutSelector/imgs/right.png.js +0 -3
- package/src/components/common/LayoutSelector/index.js +0 -70
- package/src/components/common/LayoutSelector/index.less.js +0 -4
- package/src/components/common/LinkModal/CatgTable/index.js +0 -78
- package/src/components/common/LinkModal/CouponTable/index.js +0 -111
- package/src/components/common/LinkModal/CustomTable/index.js +0 -72
- package/src/components/common/LinkModal/FilteredProductModal/index.js +0 -463
- package/src/components/common/LinkModal/FilteredProductModal/index.less.js +0 -4
- package/src/components/common/LinkModal/FunctionTable/index.js +0 -66
- package/src/components/common/LinkModal/ProductDetailPage/index.js +0 -241
- package/src/components/common/LinkModal/ProductDetailPage/index.less.js +0 -4
- package/src/components/common/LinkModal/index.js +0 -112
- package/src/components/common/LinkModal/index.less.js +0 -4
- package/src/components/common/NewImg/index.js +0 -91
- package/src/components/common/ProductModal/index.js +0 -556
- package/src/components/common/ProductModal/index.less.js +0 -4
- package/src/components/common/ProductSource/index.js +0 -91
- package/src/components/common/ProductSource/index.less.js +0 -4
- package/src/components/common/RcCollapse/Collapse.js +0 -176
- package/src/components/common/RcCollapse/Panel.js +0 -146
- package/src/components/common/RcCollapse/PanelContent.js +0 -41
- package/src/components/common/RcCollapse/index.js +0 -6
- package/src/components/common/RcCollapse/index.less.js +0 -4
- package/src/components/common/RcCollapse/motionUtil.js +0 -37
- package/src/components/common/Slider/index.js +0 -95
- package/src/components/common/Slider/index.less.js +0 -4
- package/src/components/common/SwitchCollapse/index.js +0 -162
- package/src/components/common/SwitchCollapse/index.less.js +0 -4
- package/src/components/common/UrlPicker/index.js +0 -81
- package/src/components/common/UrlPicker/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Banner/defaultJSON.js +0 -258
- package/src/components/composite-comp/bol/components/Banner/imgs/banner.png.js +0 -3
- package/src/components/composite-comp/bol/components/Banner/index.js +0 -34
- package/src/components/composite-comp/bol/components/Banner/mobile/index.js +0 -176
- package/src/components/composite-comp/bol/components/Banner/mobile/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Banner/pc/index.js +0 -254
- package/src/components/composite-comp/bol/components/Banner/pc/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Button/defaultJSON.js +0 -93
- package/src/components/composite-comp/bol/components/Button/index.js +0 -48
- package/src/components/composite-comp/bol/components/Button/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Carousel/defaultJSON.js +0 -287
- package/src/components/composite-comp/bol/components/Carousel/imgs/defaultImg.png.js +0 -3
- package/src/components/composite-comp/bol/components/Carousel/index.js +0 -37
- package/src/components/composite-comp/bol/components/Carousel/mobile/index.js +0 -217
- package/src/components/composite-comp/bol/components/Carousel/mobile/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Carousel/pc/index.js +0 -208
- package/src/components/composite-comp/bol/components/Carousel/pc/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Divider/defaultJSON.js +0 -40
- package/src/components/composite-comp/bol/components/Divider/index.js +0 -48
- package/src/components/composite-comp/bol/components/ImageGallery/defaultJSON.js +0 -64
- package/src/components/composite-comp/bol/components/ImageGallery/index.js +0 -30
- package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.js +0 -47
- package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/ImageText/defaultJSON.js +0 -540
- package/src/components/composite-comp/bol/components/ImageText/index.js +0 -33
- package/src/components/composite-comp/bol/components/ImageText/mobile/index.js +0 -145
- package/src/components/composite-comp/bol/components/ImageText/mobile/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/ImageText/pc/index.js +0 -126
- package/src/components/composite-comp/bol/components/ImageText/pc/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Newsletter/defaultJSON.js +0 -114
- package/src/components/composite-comp/bol/components/Newsletter/index.js +0 -65
- package/src/components/composite-comp/bol/components/Newsletter/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Tag/defaultJSON.js +0 -91
- package/src/components/composite-comp/bol/components/Tag/index.js +0 -52
- package/src/components/composite-comp/bol/components/Tag/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Text/defaultJSON.js +0 -125
- package/src/components/composite-comp/bol/components/Text/index.js +0 -68
- package/src/components/composite-comp/bol/components/Text/index.less.js +0 -4
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +0 -73
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less.js +0 -4
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +0 -200
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less.js +0 -4
- package/src/components/composite-comp/bol/config-panels/BannerConfig/index.js +0 -35
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +0 -79
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/index.js +0 -53
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +0 -91
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +0 -175
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less.js +0 -4
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -54
- package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +0 -153
- package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +0 -66
- package/src/components/composite-comp/bol/config-panels/DividerConfig/index.js +0 -44
- package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +0 -91
- package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/imgs/defaultImg.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +0 -44
- package/src/components/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -74
- package/src/components/composite-comp/bol/config-panels/ImageTextConfig/index.js +0 -170
- package/src/components/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -143
- package/src/components/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +0 -89
- package/src/components/composite-comp/bol/config-panels/NewsletterConfig/index.js +0 -44
- package/src/components/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +0 -88
- package/src/components/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/TagCompConfig/index.js +0 -48
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +0 -79
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +0 -85
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less.js +0 -4
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/index.js +0 -55
- package/src/components/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +0 -109
- package/src/components/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +0 -107
- package/src/components/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +0 -118
- package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +0 -79
- package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +0 -70
- package/src/components/composite-comp/common/components/ImageLabel/index.js +0 -47
- package/src/components/composite-comp/common/components/ImageLabel/index.less.js +0 -4
- package/src/components/composite-comp/common/components/ProductItem/index.js +0 -121
- package/src/components/composite-comp/common/components/ProductItem/index.less.js +0 -4
- package/src/components/composite-comp/common/config-panels/BackgroundConfig/index.js +0 -89
- package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -182
- package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.less.js +0 -4
- package/src/components/composite-comp/common/config-panels/SpacingConfig/index.js +0 -133
- package/src/components/composite-comp/common/config-panels/SpacingConfig/index.less.js +0 -4
- package/src/components/composite-comp/dito/components/FlashDeal/defaultJSON.js +0 -176
- package/src/components/composite-comp/dito/components/FlashDeal/index.js +0 -31
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg1.png.js +0 -3
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg2.png.js +0 -3
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg3.png.js +0 -3
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.js +0 -233
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.less.js +0 -4
- package/src/components/composite-comp/dito/components/Recommend/defaultJSON.js +0 -210
- package/src/components/composite-comp/dito/components/Recommend/index.js +0 -31
- package/src/components/composite-comp/dito/components/Recommend/mobile/index.js +0 -317
- package/src/components/composite-comp/dito/components/Recommend/mobile/index.less.js +0 -4
- package/src/components/composite-comp/dito/components/SearchBar/defaultJSON.js +0 -44
- package/src/components/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg.js +0 -3
- package/src/components/composite-comp/dito/components/SearchBar/index.js +0 -31
- package/src/components/composite-comp/dito/components/SearchBar/mobile/index.js +0 -89
- package/src/components/composite-comp/dito/components/SearchBar/mobile/index.less.js +0 -4
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +0 -121
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -102
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/imgs/layout1.png.js +0 -3
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/index.js +0 -49
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +0 -97
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +0 -89
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less.js +0 -4
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png.js +0 -3
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/layout1.png.js +0 -3
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -49
- package/src/components/composite-comp/dito/config-panels/SearchBarConfig/index.js +0 -115
- package/src/components/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +0 -156
- package/src/components/constants/component-types.js +0 -48
- package/src/components/constants/index.js +0 -74
- package/src/components/constants/layout.js +0 -90
- package/src/components/core/Designer/CompListPanel/CompCard/index.js +0 -33
- package/src/components/core/Designer/CompListPanel/CompCard/index.less.js +0 -4
- package/src/components/core/Designer/CompListPanel/index.js +0 -109
- package/src/components/core/Designer/CompListPanel/index.less.js +0 -4
- package/src/components/core/Designer/ConfigPanel/index.js +0 -246
- package/src/components/core/Designer/ConfigPanel/index.less.js +0 -4
- package/src/components/core/Designer/History/index.js +0 -82
- package/src/components/core/Designer/PageCompList/index.js +0 -248
- package/src/components/core/Designer/PageCompList/index.less.js +0 -4
- package/src/components/core/Designer/QuickMenuBar/index.js +0 -130
- package/src/components/core/Designer/QuickMenuBar/index.less.js +0 -4
- package/src/components/core/Designer/ViewArea/index.js +0 -86
- package/src/components/core/Designer/ViewArea/index.less.js +0 -4
- package/src/components/core/Designer/index.js +0 -364
- package/src/components/core/Designer/index.less.js +0 -4
- package/src/components/core/Renderer/index.js +0 -55
- package/src/components/decorator/compositeDecorator.js +0 -94
- package/src/components/decorator/metaDecorator.js +0 -150
- package/src/components/index.js +0 -4
- package/src/components/meta-comp/components/Button/index.js +0 -113
- package/src/components/meta-comp/components/Button/index.less.js +0 -4
- package/src/components/meta-comp/components/Image/index.js +0 -133
- package/src/components/meta-comp/components/Image/index.less.js +0 -4
- package/src/components/meta-comp/components/Text/index.js +0 -385
- package/src/components/meta-comp/components/Text/index.less.js +0 -4
- package/src/components/meta-comp/config-panels/BaseConfig.js +0 -47
- package/src/components/meta-comp/config-panels/ButtonConfig/index.js +0 -308
- package/src/components/meta-comp/config-panels/ButtonConfig/index.less.js +0 -4
- package/src/components/meta-comp/config-panels/ImageConfig/index.js +0 -224
- package/src/components/meta-comp/config-panels/ImageConfig/index.less.js +0 -4
- package/src/components/meta-comp/config-panels/TextConfig/index.js +0 -310
- package/src/components/meta-comp/config-panels/TextConfig/index.less.js +0 -4
- package/src/components/mobx/Store.js +0 -88
- package/src/components/mobx/index.js +0 -12
- package/src/components/utils/androidUtil.js +0 -22
- package/src/components/utils/businessUtil.js +0 -214
- package/src/components/utils/commonUtil.js +0 -240
- package/src/components/utils/coreUtil.js +0 -108
- package/src/components/utils/currencyUtil.js +0 -110
- package/src/components/utils/dataTreeUtils.js +0 -93
- package/src/components/utils/dateUtil.js +0 -30
- package/src/components/utils/storeUtil.js +0 -113
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { p as propTypes } from '../../_virtual/index3.js';
|
|
2
|
-
import { __require as requireReactIs } from '../react-is/index.js';
|
|
3
|
-
import { __require as requireFactoryWithTypeCheckers } from './factoryWithTypeCheckers.js';
|
|
4
|
-
import { __require as requireFactoryWithThrowingShims } from './factoryWithThrowingShims.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
14
|
-
var ReactIs = requireReactIs();
|
|
15
|
-
|
|
16
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
17
|
-
// http://fb.me/prop-types-in-prod
|
|
18
|
-
var throwOnDirectAccess = true;
|
|
19
|
-
propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
20
|
-
} else {
|
|
21
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
22
|
-
// http://fb.me/prop-types-in-prod
|
|
23
|
-
propTypes.exports = requireFactoryWithThrowingShims()();
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var exports = propTypes.exports;
|
|
27
|
-
export { exports as default };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
var ReactPropTypesSecret_1;
|
|
9
|
-
var hasRequiredReactPropTypesSecret;
|
|
10
|
-
|
|
11
|
-
function requireReactPropTypesSecret () {
|
|
12
|
-
if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
|
|
13
|
-
hasRequiredReactPropTypesSecret = 1;
|
|
14
|
-
|
|
15
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
16
|
-
|
|
17
|
-
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
18
|
-
return ReactPropTypesSecret_1;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { requireReactPropTypesSecret as __require };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
var replace = String.prototype.replace;
|
|
2
|
-
var percentTwenties = /%20/g;
|
|
3
|
-
|
|
4
|
-
var Format = {
|
|
5
|
-
RFC1738: 'RFC1738',
|
|
6
|
-
RFC3986: 'RFC3986'
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
var formats = {
|
|
10
|
-
'default': Format.RFC3986,
|
|
11
|
-
formatters: {
|
|
12
|
-
RFC1738: function (value) {
|
|
13
|
-
return replace.call(value, percentTwenties, '+');
|
|
14
|
-
},
|
|
15
|
-
RFC3986: function (value) {
|
|
16
|
-
return String(value);
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
RFC1738: Format.RFC1738,
|
|
20
|
-
RFC3986: Format.RFC3986
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export { formats as default };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import stringify_1 from './stringify.js';
|
|
2
|
-
import parse$1 from './parse.js';
|
|
3
|
-
import formats$1 from './formats.js';
|
|
4
|
-
|
|
5
|
-
var stringify = stringify_1;
|
|
6
|
-
var parse = parse$1;
|
|
7
|
-
var formats = formats$1;
|
|
8
|
-
|
|
9
|
-
var lib = {
|
|
10
|
-
formats: formats,
|
|
11
|
-
parse: parse,
|
|
12
|
-
stringify: stringify
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export { lib as default };
|
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
import utils$1 from './utils.js';
|
|
2
|
-
|
|
3
|
-
var utils = utils$1;
|
|
4
|
-
|
|
5
|
-
var has = Object.prototype.hasOwnProperty;
|
|
6
|
-
var isArray = Array.isArray;
|
|
7
|
-
|
|
8
|
-
var defaults = {
|
|
9
|
-
allowDots: false,
|
|
10
|
-
allowPrototypes: false,
|
|
11
|
-
allowSparse: false,
|
|
12
|
-
arrayLimit: 20,
|
|
13
|
-
charset: 'utf-8',
|
|
14
|
-
charsetSentinel: false,
|
|
15
|
-
comma: false,
|
|
16
|
-
decoder: utils.decode,
|
|
17
|
-
delimiter: '&',
|
|
18
|
-
depth: 5,
|
|
19
|
-
ignoreQueryPrefix: false,
|
|
20
|
-
interpretNumericEntities: false,
|
|
21
|
-
parameterLimit: 1000,
|
|
22
|
-
parseArrays: true,
|
|
23
|
-
plainObjects: false,
|
|
24
|
-
strictNullHandling: false
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
var interpretNumericEntities = function (str) {
|
|
28
|
-
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
29
|
-
return String.fromCharCode(parseInt(numberStr, 10));
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
var parseArrayValue = function (val, options) {
|
|
34
|
-
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
35
|
-
return val.split(',');
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return val;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
// This is what browsers will submit when the ✓ character occurs in an
|
|
42
|
-
// application/x-www-form-urlencoded body and the encoding of the page containing
|
|
43
|
-
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
|
44
|
-
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
|
45
|
-
// the ✓ character, such as us-ascii.
|
|
46
|
-
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
47
|
-
|
|
48
|
-
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
|
49
|
-
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
50
|
-
|
|
51
|
-
var parseValues = function parseQueryStringValues(str, options) {
|
|
52
|
-
var obj = {};
|
|
53
|
-
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
54
|
-
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
55
|
-
var parts = cleanStr.split(options.delimiter, limit);
|
|
56
|
-
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
57
|
-
var i;
|
|
58
|
-
|
|
59
|
-
var charset = options.charset;
|
|
60
|
-
if (options.charsetSentinel) {
|
|
61
|
-
for (i = 0; i < parts.length; ++i) {
|
|
62
|
-
if (parts[i].indexOf('utf8=') === 0) {
|
|
63
|
-
if (parts[i] === charsetSentinel) {
|
|
64
|
-
charset = 'utf-8';
|
|
65
|
-
} else if (parts[i] === isoSentinel) {
|
|
66
|
-
charset = 'iso-8859-1';
|
|
67
|
-
}
|
|
68
|
-
skipIndex = i;
|
|
69
|
-
i = parts.length; // The eslint settings do not allow break;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
for (i = 0; i < parts.length; ++i) {
|
|
75
|
-
if (i === skipIndex) {
|
|
76
|
-
continue;
|
|
77
|
-
}
|
|
78
|
-
var part = parts[i];
|
|
79
|
-
|
|
80
|
-
var bracketEqualsPos = part.indexOf(']=');
|
|
81
|
-
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
82
|
-
|
|
83
|
-
var key, val;
|
|
84
|
-
if (pos === -1) {
|
|
85
|
-
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
86
|
-
val = options.strictNullHandling ? null : '';
|
|
87
|
-
} else {
|
|
88
|
-
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
89
|
-
val = utils.maybeMap(
|
|
90
|
-
parseArrayValue(part.slice(pos + 1), options),
|
|
91
|
-
function (encodedVal) {
|
|
92
|
-
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
98
|
-
val = interpretNumericEntities(val);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
if (part.indexOf('[]=') > -1) {
|
|
102
|
-
val = isArray(val) ? [val] : val;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
if (has.call(obj, key)) {
|
|
106
|
-
obj[key] = utils.combine(obj[key], val);
|
|
107
|
-
} else {
|
|
108
|
-
obj[key] = val;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
return obj;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
var parseObject = function (chain, val, options, valuesParsed) {
|
|
116
|
-
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
|
117
|
-
|
|
118
|
-
for (var i = chain.length - 1; i >= 0; --i) {
|
|
119
|
-
var obj;
|
|
120
|
-
var root = chain[i];
|
|
121
|
-
|
|
122
|
-
if (root === '[]' && options.parseArrays) {
|
|
123
|
-
obj = [].concat(leaf);
|
|
124
|
-
} else {
|
|
125
|
-
obj = options.plainObjects ? Object.create(null) : {};
|
|
126
|
-
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
127
|
-
var index = parseInt(cleanRoot, 10);
|
|
128
|
-
if (!options.parseArrays && cleanRoot === '') {
|
|
129
|
-
obj = { 0: leaf };
|
|
130
|
-
} else if (
|
|
131
|
-
!isNaN(index)
|
|
132
|
-
&& root !== cleanRoot
|
|
133
|
-
&& String(index) === cleanRoot
|
|
134
|
-
&& index >= 0
|
|
135
|
-
&& (options.parseArrays && index <= options.arrayLimit)
|
|
136
|
-
) {
|
|
137
|
-
obj = [];
|
|
138
|
-
obj[index] = leaf;
|
|
139
|
-
} else if (cleanRoot !== '__proto__') {
|
|
140
|
-
obj[cleanRoot] = leaf;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
leaf = obj;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
return leaf;
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
151
|
-
if (!givenKey) {
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
// Transform dot notation to bracket notation
|
|
156
|
-
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
157
|
-
|
|
158
|
-
// The regex chunks
|
|
159
|
-
|
|
160
|
-
var brackets = /(\[[^[\]]*])/;
|
|
161
|
-
var child = /(\[[^[\]]*])/g;
|
|
162
|
-
|
|
163
|
-
// Get the parent
|
|
164
|
-
|
|
165
|
-
var segment = options.depth > 0 && brackets.exec(key);
|
|
166
|
-
var parent = segment ? key.slice(0, segment.index) : key;
|
|
167
|
-
|
|
168
|
-
// Stash the parent if it exists
|
|
169
|
-
|
|
170
|
-
var keys = [];
|
|
171
|
-
if (parent) {
|
|
172
|
-
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
|
173
|
-
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
174
|
-
if (!options.allowPrototypes) {
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
keys.push(parent);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// Loop through children appending to the array until we hit depth
|
|
183
|
-
|
|
184
|
-
var i = 0;
|
|
185
|
-
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
|
186
|
-
i += 1;
|
|
187
|
-
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
188
|
-
if (!options.allowPrototypes) {
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
keys.push(segment[1]);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
// If there's a remainder, just add whatever is left
|
|
196
|
-
|
|
197
|
-
if (segment) {
|
|
198
|
-
keys.push('[' + key.slice(segment.index) + ']');
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
return parseObject(keys, val, options, valuesParsed);
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
205
|
-
if (!opts) {
|
|
206
|
-
return defaults;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
|
210
|
-
throw new TypeError('Decoder has to be a function.');
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
214
|
-
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
215
|
-
}
|
|
216
|
-
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
217
|
-
|
|
218
|
-
return {
|
|
219
|
-
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
220
|
-
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
221
|
-
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
222
|
-
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
223
|
-
charset: charset,
|
|
224
|
-
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
225
|
-
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
226
|
-
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
227
|
-
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
228
|
-
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
229
|
-
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
230
|
-
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
231
|
-
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
232
|
-
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
233
|
-
parseArrays: opts.parseArrays !== false,
|
|
234
|
-
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
235
|
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
var parse = function (str, opts) {
|
|
240
|
-
var options = normalizeParseOptions(opts);
|
|
241
|
-
|
|
242
|
-
if (str === '' || str === null || typeof str === 'undefined') {
|
|
243
|
-
return options.plainObjects ? Object.create(null) : {};
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
247
|
-
var obj = options.plainObjects ? Object.create(null) : {};
|
|
248
|
-
|
|
249
|
-
// Iterate over the keys and setup the new object
|
|
250
|
-
|
|
251
|
-
var keys = Object.keys(tempObj);
|
|
252
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
253
|
-
var key = keys[i];
|
|
254
|
-
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
255
|
-
obj = utils.merge(obj, newObj, options);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
if (options.allowSparse === true) {
|
|
259
|
-
return obj;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
return utils.compact(obj);
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
export { parse as default };
|
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
import sideChannel from '../../side-channel/index.js';
|
|
2
|
-
import utils$1 from './utils.js';
|
|
3
|
-
import formats$1 from './formats.js';
|
|
4
|
-
|
|
5
|
-
var getSideChannel = sideChannel;
|
|
6
|
-
var utils = utils$1;
|
|
7
|
-
var formats = formats$1;
|
|
8
|
-
var has = Object.prototype.hasOwnProperty;
|
|
9
|
-
|
|
10
|
-
var arrayPrefixGenerators = {
|
|
11
|
-
brackets: function brackets(prefix) {
|
|
12
|
-
return prefix + '[]';
|
|
13
|
-
},
|
|
14
|
-
comma: 'comma',
|
|
15
|
-
indices: function indices(prefix, key) {
|
|
16
|
-
return prefix + '[' + key + ']';
|
|
17
|
-
},
|
|
18
|
-
repeat: function repeat(prefix) {
|
|
19
|
-
return prefix;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
var isArray = Array.isArray;
|
|
24
|
-
var split = String.prototype.split;
|
|
25
|
-
var push = Array.prototype.push;
|
|
26
|
-
var pushToArray = function (arr, valueOrArray) {
|
|
27
|
-
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
var toISO = Date.prototype.toISOString;
|
|
31
|
-
|
|
32
|
-
var defaultFormat = formats['default'];
|
|
33
|
-
var defaults = {
|
|
34
|
-
addQueryPrefix: false,
|
|
35
|
-
allowDots: false,
|
|
36
|
-
charset: 'utf-8',
|
|
37
|
-
charsetSentinel: false,
|
|
38
|
-
delimiter: '&',
|
|
39
|
-
encode: true,
|
|
40
|
-
encoder: utils.encode,
|
|
41
|
-
encodeValuesOnly: false,
|
|
42
|
-
format: defaultFormat,
|
|
43
|
-
formatter: formats.formatters[defaultFormat],
|
|
44
|
-
// deprecated
|
|
45
|
-
indices: false,
|
|
46
|
-
serializeDate: function serializeDate(date) {
|
|
47
|
-
return toISO.call(date);
|
|
48
|
-
},
|
|
49
|
-
skipNulls: false,
|
|
50
|
-
strictNullHandling: false
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
54
|
-
return typeof v === 'string'
|
|
55
|
-
|| typeof v === 'number'
|
|
56
|
-
|| typeof v === 'boolean'
|
|
57
|
-
|| typeof v === 'symbol'
|
|
58
|
-
|| typeof v === 'bigint';
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
var sentinel = {};
|
|
62
|
-
|
|
63
|
-
var stringify = function stringify(
|
|
64
|
-
object,
|
|
65
|
-
prefix,
|
|
66
|
-
generateArrayPrefix,
|
|
67
|
-
commaRoundTrip,
|
|
68
|
-
strictNullHandling,
|
|
69
|
-
skipNulls,
|
|
70
|
-
encoder,
|
|
71
|
-
filter,
|
|
72
|
-
sort,
|
|
73
|
-
allowDots,
|
|
74
|
-
serializeDate,
|
|
75
|
-
format,
|
|
76
|
-
formatter,
|
|
77
|
-
encodeValuesOnly,
|
|
78
|
-
charset,
|
|
79
|
-
sideChannel
|
|
80
|
-
) {
|
|
81
|
-
var obj = object;
|
|
82
|
-
|
|
83
|
-
var tmpSc = sideChannel;
|
|
84
|
-
var step = 0;
|
|
85
|
-
var findFlag = false;
|
|
86
|
-
while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
|
|
87
|
-
// Where object last appeared in the ref tree
|
|
88
|
-
var pos = tmpSc.get(object);
|
|
89
|
-
step += 1;
|
|
90
|
-
if (typeof pos !== 'undefined') {
|
|
91
|
-
if (pos === step) {
|
|
92
|
-
throw new RangeError('Cyclic object value');
|
|
93
|
-
} else {
|
|
94
|
-
findFlag = true; // Break while
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
if (typeof tmpSc.get(sentinel) === 'undefined') {
|
|
98
|
-
step = 0;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if (typeof filter === 'function') {
|
|
103
|
-
obj = filter(prefix, obj);
|
|
104
|
-
} else if (obj instanceof Date) {
|
|
105
|
-
obj = serializeDate(obj);
|
|
106
|
-
} else if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
107
|
-
obj = utils.maybeMap(obj, function (value) {
|
|
108
|
-
if (value instanceof Date) {
|
|
109
|
-
return serializeDate(value);
|
|
110
|
-
}
|
|
111
|
-
return value;
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
if (obj === null) {
|
|
116
|
-
if (strictNullHandling) {
|
|
117
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
obj = '';
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
124
|
-
if (encoder) {
|
|
125
|
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
|
126
|
-
if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
|
|
127
|
-
var valuesArray = split.call(String(obj), ',');
|
|
128
|
-
var valuesJoined = '';
|
|
129
|
-
for (var i = 0; i < valuesArray.length; ++i) {
|
|
130
|
-
valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
|
|
131
|
-
}
|
|
132
|
-
return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
|
|
133
|
-
}
|
|
134
|
-
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
135
|
-
}
|
|
136
|
-
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
var values = [];
|
|
140
|
-
|
|
141
|
-
if (typeof obj === 'undefined') {
|
|
142
|
-
return values;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
var objKeys;
|
|
146
|
-
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
147
|
-
// we need to join elements in
|
|
148
|
-
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
|
|
149
|
-
} else if (isArray(filter)) {
|
|
150
|
-
objKeys = filter;
|
|
151
|
-
} else {
|
|
152
|
-
var keys = Object.keys(obj);
|
|
153
|
-
objKeys = sort ? keys.sort(sort) : keys;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
|
|
157
|
-
|
|
158
|
-
for (var j = 0; j < objKeys.length; ++j) {
|
|
159
|
-
var key = objKeys[j];
|
|
160
|
-
var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
|
|
161
|
-
|
|
162
|
-
if (skipNulls && value === null) {
|
|
163
|
-
continue;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
var keyPrefix = isArray(obj)
|
|
167
|
-
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
|
|
168
|
-
: adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
169
|
-
|
|
170
|
-
sideChannel.set(object, step);
|
|
171
|
-
var valueSideChannel = getSideChannel();
|
|
172
|
-
valueSideChannel.set(sentinel, sideChannel);
|
|
173
|
-
pushToArray(values, stringify(
|
|
174
|
-
value,
|
|
175
|
-
keyPrefix,
|
|
176
|
-
generateArrayPrefix,
|
|
177
|
-
commaRoundTrip,
|
|
178
|
-
strictNullHandling,
|
|
179
|
-
skipNulls,
|
|
180
|
-
encoder,
|
|
181
|
-
filter,
|
|
182
|
-
sort,
|
|
183
|
-
allowDots,
|
|
184
|
-
serializeDate,
|
|
185
|
-
format,
|
|
186
|
-
formatter,
|
|
187
|
-
encodeValuesOnly,
|
|
188
|
-
charset,
|
|
189
|
-
valueSideChannel
|
|
190
|
-
));
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
return values;
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
197
|
-
if (!opts) {
|
|
198
|
-
return defaults;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
|
202
|
-
throw new TypeError('Encoder has to be a function.');
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
var charset = opts.charset || defaults.charset;
|
|
206
|
-
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
207
|
-
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
var format = formats['default'];
|
|
211
|
-
if (typeof opts.format !== 'undefined') {
|
|
212
|
-
if (!has.call(formats.formatters, opts.format)) {
|
|
213
|
-
throw new TypeError('Unknown format option provided.');
|
|
214
|
-
}
|
|
215
|
-
format = opts.format;
|
|
216
|
-
}
|
|
217
|
-
var formatter = formats.formatters[format];
|
|
218
|
-
|
|
219
|
-
var filter = defaults.filter;
|
|
220
|
-
if (typeof opts.filter === 'function' || isArray(opts.filter)) {
|
|
221
|
-
filter = opts.filter;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
return {
|
|
225
|
-
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
226
|
-
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
227
|
-
charset: charset,
|
|
228
|
-
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
229
|
-
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
230
|
-
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
231
|
-
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
232
|
-
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
233
|
-
filter: filter,
|
|
234
|
-
format: format,
|
|
235
|
-
formatter: formatter,
|
|
236
|
-
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
|
237
|
-
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
|
238
|
-
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
|
239
|
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
var stringify_1 = function (object, opts) {
|
|
244
|
-
var obj = object;
|
|
245
|
-
var options = normalizeStringifyOptions(opts);
|
|
246
|
-
|
|
247
|
-
var objKeys;
|
|
248
|
-
var filter;
|
|
249
|
-
|
|
250
|
-
if (typeof options.filter === 'function') {
|
|
251
|
-
filter = options.filter;
|
|
252
|
-
obj = filter('', obj);
|
|
253
|
-
} else if (isArray(options.filter)) {
|
|
254
|
-
filter = options.filter;
|
|
255
|
-
objKeys = filter;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
var keys = [];
|
|
259
|
-
|
|
260
|
-
if (typeof obj !== 'object' || obj === null) {
|
|
261
|
-
return '';
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
var arrayFormat;
|
|
265
|
-
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
|
266
|
-
arrayFormat = opts.arrayFormat;
|
|
267
|
-
} else if (opts && 'indices' in opts) {
|
|
268
|
-
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
269
|
-
} else {
|
|
270
|
-
arrayFormat = 'indices';
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
274
|
-
if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
275
|
-
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
276
|
-
}
|
|
277
|
-
var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
|
|
278
|
-
|
|
279
|
-
if (!objKeys) {
|
|
280
|
-
objKeys = Object.keys(obj);
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
if (options.sort) {
|
|
284
|
-
objKeys.sort(options.sort);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
var sideChannel = getSideChannel();
|
|
288
|
-
for (var i = 0; i < objKeys.length; ++i) {
|
|
289
|
-
var key = objKeys[i];
|
|
290
|
-
|
|
291
|
-
if (options.skipNulls && obj[key] === null) {
|
|
292
|
-
continue;
|
|
293
|
-
}
|
|
294
|
-
pushToArray(keys, stringify(
|
|
295
|
-
obj[key],
|
|
296
|
-
key,
|
|
297
|
-
generateArrayPrefix,
|
|
298
|
-
commaRoundTrip,
|
|
299
|
-
options.strictNullHandling,
|
|
300
|
-
options.skipNulls,
|
|
301
|
-
options.encode ? options.encoder : null,
|
|
302
|
-
options.filter,
|
|
303
|
-
options.sort,
|
|
304
|
-
options.allowDots,
|
|
305
|
-
options.serializeDate,
|
|
306
|
-
options.format,
|
|
307
|
-
options.formatter,
|
|
308
|
-
options.encodeValuesOnly,
|
|
309
|
-
options.charset,
|
|
310
|
-
sideChannel
|
|
311
|
-
));
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
var joined = keys.join(options.delimiter);
|
|
315
|
-
var prefix = options.addQueryPrefix === true ? '?' : '';
|
|
316
|
-
|
|
317
|
-
if (options.charsetSentinel) {
|
|
318
|
-
if (options.charset === 'iso-8859-1') {
|
|
319
|
-
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
|
|
320
|
-
prefix += 'utf8=%26%2310003%3B&';
|
|
321
|
-
} else {
|
|
322
|
-
// encodeURIComponent('✓')
|
|
323
|
-
prefix += 'utf8=%E2%9C%93&';
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
return joined.length > 0 ? prefix + joined : '';
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
export { stringify_1 as default };
|