pb-sxp-ui 1.3.7 → 1.3.8

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.
@@ -1,7 +1,6 @@
1
1
  import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
2
2
  import * as ReactDOM from 'react-dom';
3
3
  import './index.less';
4
- import { isEqual } from 'lodash';
5
4
  import Navbar from '../Navbar';
6
5
  import WaterfallList from './WaterfallList';
7
6
  import left from './left.png';
@@ -28,21 +27,13 @@ const WaterFall = (props) => {
28
27
  }
29
28
  }, []);
30
29
  const handleClose = () => {
31
- const isEq = isEqual(rtcList, cacheRtcList);
32
- if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
33
- setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
34
- }
30
+ var _a, _b;
35
31
  backMainFeed('branch', selectTag, undefined, waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag);
36
32
  reportTagsView();
37
33
  setWaterFallData === null || setWaterFallData === void 0 ? void 0 : setWaterFallData(undefined);
38
34
  setIsFromHashtag === null || setIsFromHashtag === void 0 ? void 0 : setIsFromHashtag(false);
39
- setTimeout(() => {
40
- var _a, _b;
41
- if (!isEq) {
42
- (_b = (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.slideTo(cacheActiveIndex, 0, false);
43
- }
44
- setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(false);
45
- }, 0);
35
+ (_b = (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.slideTo(cacheActiveIndex, 0, false);
36
+ setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(false);
46
37
  };
47
38
  const [recData, setRecData] = useState();
48
39
  useEffect(() => {
@@ -21,6 +21,7 @@ import { useEventReport } from '../../../core/hooks/useEventReport';
21
21
  import withBindDataSource from '../../../core/hoc/withBindDataSource';
22
22
  import Tagbar from './Tagbar';
23
23
  import { getFeUserId, getSlideSkipState } from '../../../core/utils/localStore';
24
+ import { isEqual } from 'lodash';
24
25
  const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [], licenseUrl }) => {
25
26
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
26
27
  const mutedIcon = useIconLink('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png');
@@ -34,7 +35,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
34
35
  const [isShowMore, setIsShowMore] = useState(false);
35
36
  const [isReload, setIsReload] = useState(new Date().getTime());
36
37
  const skipLinkRef = useRef(false);
37
- const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor } = useSxpDataSource();
38
+ const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList } = useSxpDataSource();
38
39
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
39
40
  const isShowFingerTip = useMemo(() => {
40
41
  return data.length > 0 && !loading && (getFeUserId() || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip));
@@ -478,6 +479,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
478
479
  ]);
479
480
  return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container' },
480
481
  waterFallData && (React.createElement(Navbar, { icon: left, styles: { background: 'rgba(0,0,0,.3)', color: '#fff' }, textStyle: Object.assign(Object.assign({}, (_e = (_d = (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.textStyles) === null || _e === void 0 ? void 0 : _e.hashTagTitle), { color: '#fff' }), onClose: () => {
482
+ const isEq = isEqual(rtcList, cacheRtcList);
483
+ if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
484
+ setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
485
+ }
481
486
  setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(true);
482
487
  } })),
483
488
  renderLogo,
@@ -91,10 +91,10 @@ const CommodityDetail = (_a) => {
91
91
  __html: setFontForText((_c = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _c !== void 0 ? _c : '税费', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo)
92
92
  } }),
93
93
  React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
94
- React.createElement(ExpandableText, { foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, onClick: () => setShowModal(true), isPost: isPost, text: (_d = product === null || product === void 0 ? void 0 : product.info) !== null && _d !== void 0 ? _d : `The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
95
- bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
96
- collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
97
- necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
94
+ React.createElement(ExpandableText, { foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, onClick: () => setShowModal(true), isPost: isPost, text: (_d = product === null || product === void 0 ? void 0 : product.info) !== null && _d !== void 0 ? _d : `The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
95
+ bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
96
+ collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
97
+ necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
98
98
  18-karat gold, this necklace is embellished with hand-set diamonds.`, maxStr: 79, className: 'pb-commondity-content-info', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.info }))));
99
99
  };
100
100
  const renderBtn = () => {
@@ -85,7 +85,7 @@ const CommodityDetailDiroNew = (_a) => {
85
85
  const productInfoText = ({ isPost }) => {
86
86
  return (React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
87
87
  React.createElement(ExpandableText, { isPost: isPost, onClick: () => setShowModal(true), className: 'pb-commondityDiroNew-info', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.info, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (product === null || product === void 0 ? void 0 : product.info) ||
88
- `Unveiled at the Spring-Summer 2023 fashion show, the Dior Toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with Macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the D of the CD Lock closure twists to adjust the sides and enhance the bag's silhouette. The leather handles can be adjusted using the small notches in order to be able to carry the large bag by hand or wear it over the shoulder. CD Lock and strap closures D.I.O.R. charms Removable interior pouch Adjustable leather handles Dust bag included
88
+ `Unveiled at the Spring-Summer 2023 fashion show, the Dior Toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with Macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the D of the CD Lock closure twists to adjust the sides and enhance the bag's silhouette. The leather handles can be adjusted using the small notches in order to be able to carry the large bag by hand or wear it over the shoulder. CD Lock and strap closures D.I.O.R. charms Removable interior pouch Adjustable leather handles Dust bag included
89
89
  Made in Italy` })));
90
90
  };
91
91
  const getStyle = useCallback((style) => {
@@ -4,7 +4,6 @@ const tslib_1 = require("tslib");
4
4
  const react_1 = tslib_1.__importStar(require("react"));
5
5
  const ReactDOM = tslib_1.__importStar(require("react-dom"));
6
6
  require("./index.less");
7
- const lodash_1 = require("lodash");
8
7
  const Navbar_1 = tslib_1.__importDefault(require("../Navbar"));
9
8
  const WaterfallList_1 = tslib_1.__importDefault(require("./WaterfallList"));
10
9
  const left_png_1 = tslib_1.__importDefault(require("./left.png"));
@@ -31,21 +30,13 @@ const WaterFall = (props) => {
31
30
  }
32
31
  }, []);
33
32
  const handleClose = () => {
34
- const isEq = (0, lodash_1.isEqual)(rtcList, cacheRtcList);
35
- if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
36
- setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
37
- }
33
+ var _a, _b;
38
34
  backMainFeed('branch', selectTag, undefined, waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag);
39
35
  reportTagsView();
40
36
  setWaterFallData === null || setWaterFallData === void 0 ? void 0 : setWaterFallData(undefined);
41
37
  setIsFromHashtag === null || setIsFromHashtag === void 0 ? void 0 : setIsFromHashtag(false);
42
- setTimeout(() => {
43
- var _a, _b;
44
- if (!isEq) {
45
- (_b = (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.slideTo(cacheActiveIndex, 0, false);
46
- }
47
- setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(false);
48
- }, 0);
38
+ (_b = (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.slideTo(cacheActiveIndex, 0, false);
39
+ setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(false);
49
40
  };
50
41
  const [recData, setRecData] = (0, react_1.useState)();
51
42
  (0, react_1.useEffect)(() => {
@@ -24,6 +24,7 @@ const useEventReport_1 = require("../../../core/hooks/useEventReport");
24
24
  const withBindDataSource_1 = tslib_1.__importDefault(require("../../../core/hoc/withBindDataSource"));
25
25
  const Tagbar_1 = tslib_1.__importDefault(require("./Tagbar"));
26
26
  const localStore_1 = require("../../../core/utils/localStore");
27
+ const lodash_1 = require("lodash");
27
28
  const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [], licenseUrl }) => {
28
29
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
29
30
  const mutedIcon = (0, useIconLink_1.useIconLink)('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png');
@@ -37,7 +38,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
37
38
  const [isShowMore, setIsShowMore] = (0, react_1.useState)(false);
38
39
  const [isReload, setIsReload] = (0, react_1.useState)(new Date().getTime());
39
40
  const skipLinkRef = (0, react_1.useRef)(false);
40
- const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor } = (0, hooks_1.useSxpDataSource)();
41
+ const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList } = (0, hooks_1.useSxpDataSource)();
41
42
  const { backMainFeed, productView, jumpToWeb } = (0, useEventReport_1.useEventReport)();
42
43
  const isShowFingerTip = (0, react_1.useMemo)(() => {
43
44
  return data.length > 0 && !loading && ((0, localStore_1.getFeUserId)() || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip));
@@ -481,6 +482,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
481
482
  ]);
482
483
  return (react_1.default.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container' },
483
484
  waterFallData && (react_1.default.createElement(Navbar_1.default, { icon: left_png_1.default, styles: { background: 'rgba(0,0,0,.3)', color: '#fff' }, textStyle: Object.assign(Object.assign({}, (_e = (_d = (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.textStyles) === null || _e === void 0 ? void 0 : _e.hashTagTitle), { color: '#fff' }), onClose: () => {
485
+ const isEq = (0, lodash_1.isEqual)(rtcList, cacheRtcList);
486
+ if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
487
+ setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
488
+ }
484
489
  setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(true);
485
490
  } })),
486
491
  renderLogo,
@@ -93,10 +93,10 @@ const CommodityDetail = (_a) => {
93
93
  __html: (0, tool_1.setFontForText)((_c = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _c !== void 0 ? _c : '税费', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo)
94
94
  } }),
95
95
  react_1.default.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
96
- react_1.default.createElement(ExpandableText_1.default, { foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, onClick: () => setShowModal(true), isPost: isPost, text: (_d = product === null || product === void 0 ? void 0 : product.info) !== null && _d !== void 0 ? _d : `The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
97
- bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
98
- collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
99
- necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
96
+ react_1.default.createElement(ExpandableText_1.default, { foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, onClick: () => setShowModal(true), isPost: isPost, text: (_d = product === null || product === void 0 ? void 0 : product.info) !== null && _d !== void 0 ? _d : `The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
97
+ bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
98
+ collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
99
+ necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
100
100
  18-karat gold, this necklace is embellished with hand-set diamonds.`, maxStr: 79, className: 'pb-commondity-content-info', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.info }))));
101
101
  };
102
102
  const renderBtn = () => {
@@ -87,7 +87,7 @@ const CommodityDetailDiroNew = (_a) => {
87
87
  const productInfoText = ({ isPost }) => {
88
88
  return (react_1.default.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
89
89
  react_1.default.createElement(ExpandableText_1.default, { isPost: isPost, onClick: () => setShowModal(true), className: 'pb-commondityDiroNew-info', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.info, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (product === null || product === void 0 ? void 0 : product.info) ||
90
- `Unveiled at the Spring-Summer 2023 fashion show, the Dior Toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with Macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the D of the CD Lock closure twists to adjust the sides and enhance the bag's silhouette. The leather handles can be adjusted using the small notches in order to be able to carry the large bag by hand or wear it over the shoulder. CD Lock and strap closures D.I.O.R. charms Removable interior pouch Adjustable leather handles Dust bag included
90
+ `Unveiled at the Spring-Summer 2023 fashion show, the Dior Toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with Macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the D of the CD Lock closure twists to adjust the sides and enhance the bag's silhouette. The leather handles can be adjusted using the small notches in order to be able to carry the large bag by hand or wear it over the shoulder. CD Lock and strap closures D.I.O.R. charms Removable interior pouch Adjustable leather handles Dust bag included
91
91
  Made in Italy` })));
92
92
  };
93
93
  const getStyle = (0, react_1.useCallback)((style) => {
package/package.json CHANGED
@@ -1,111 +1,111 @@
1
- {
2
- "name": "pb-sxp-ui",
3
- "version": "1.3.7",
4
- "description": "React enterprise-class UI components",
5
- "main": "dist/index.cjs",
6
- "module": "dist/index.js",
7
- "unpkg": "dist/pb-ui.min.js",
8
- "typings": "es/index.d.ts",
9
- "type": "module",
10
- "scripts": {
11
- "prebuild": "rimraf lib && rimraf es && rimraf dist",
12
- "build": "tsc --build tsconfig.es.json && tsc --build tsconfig.cjs.json",
13
- "postbuild": "tsc-alias -p tsconfig.es.json && tsc-alias -p tsconfig.cjs.json",
14
- "package": "npm run build && cross-env NODE_ENV=production rollup -c --configPlugin typescript",
15
- "start": "npm run build && cross-env NODE_ENV=development rollup -w -c",
16
- "lint": "eslint .",
17
- "lint:fix": "eslint --fix .",
18
- "dev": "rollup -w -c",
19
- "dev:package": "npm run build && rollup -w -c",
20
- "pub": "zx ./scripts/publish.mjs"
21
- },
22
- "files": [
23
- "dist",
24
- "lib",
25
- "es",
26
- "package.json",
27
- "README.md"
28
- ],
29
- "keywords": [
30
- "react",
31
- "react-component",
32
- "ui",
33
- "component",
34
- "components"
35
- ],
36
- "author": "frontend@chatlabs.cn",
37
- "license": "MIT",
38
- "dependencies": {
39
- "@emotion/css": "^11.11.2",
40
- "eslint": "^8.48.0",
41
- "eventemitter3": "^5.0.1",
42
- "less": "^4.2.0",
43
- "lodash": "^4.17.21",
44
- "pako": "^2.1.0",
45
- "qs": "^6.11.2",
46
- "swiper": "^11.0.3",
47
- "uuid": "^9.0.1"
48
- },
49
- "devDependencies": {
50
- "@babel/core": "^7.22.11",
51
- "@babel/plugin-transform-runtime": "^7.22.10",
52
- "@babel/preset-env": "^7.22.10",
53
- "@rollup/plugin-alias": "^5.0.0",
54
- "@rollup/plugin-babel": "^6.0.3",
55
- "@rollup/plugin-commonjs": "^25.0.4",
56
- "@rollup/plugin-eslint": "^9.0.4",
57
- "@rollup/plugin-image": "^3.0.2",
58
- "@rollup/plugin-json": "^6.0.0",
59
- "@rollup/plugin-node-resolve": "^15.2.0",
60
- "@rollup/plugin-typescript": "^11.1.2",
61
- "@rollup/plugin-url": "^8.0.1",
62
- "@svgr/rollup": "^8.1.0",
63
- "@types/crypto-js": "^4.1.3",
64
- "@types/lodash": "^4.14.198",
65
- "@types/node": "^20.5.3",
66
- "@types/pako": "^2.0.3",
67
- "@types/qs": "^6.9.8",
68
- "@types/react": "^18.2.21",
69
- "@types/react-dom": "^18.2.14",
70
- "@types/uuid": "^9.0.7",
71
- "@typescript-eslint/eslint-plugin": "^6.6.0",
72
- "@typescript-eslint/parser": "^6.6.0",
73
- "autoprefixer": "^10.4.15",
74
- "cross-env": "^7.0.3",
75
- "cssnano": "^6.0.1",
76
- "esbuild": "^0.19.2",
77
- "eslint-config-standard": "^17.1.0",
78
- "eslint-config-standard-react": "^13.0.0",
79
- "eslint-plugin-import": "^2.28.1",
80
- "eslint-plugin-n": "^16.0.2",
81
- "eslint-plugin-promise": "^6.1.1",
82
- "eslint-plugin-react": "^7.33.2",
83
- "eslint-plugin-react-hooks": "^4.6.0",
84
- "eslint-plugin-unused-imports": "^3.0.0",
85
- "postcss": "^8.4.28",
86
- "querystring": "^0.2.1",
87
- "react": "^18.2.0",
88
- "react-dom": "^18.2.0",
89
- "rimraf": "^5.0.1",
90
- "rollup": "^3.28.1",
91
- "rollup-plugin-esbuild": "^5.0.0",
92
- "rollup-plugin-postcss": "^4.0.2",
93
- "rollup-plugin-terser": "^7.0.2",
94
- "tsc-alias": "^1.8.7",
95
- "tslib": "^2.6.2",
96
- "typescript": "^5.1.6",
97
- "zx": "^7.2.3"
98
- },
99
- "peerDependencies": {
100
- "react": ">=16.9.0",
101
- "react-dom": ">=16.9.0"
102
- },
103
- "browserslist": [
104
- "defaults",
105
- "not ie < 8",
106
- "last 2 versions",
107
- "> 1%",
108
- "iOS 7",
109
- "last 3 iOS versions"
110
- ]
111
- }
1
+ {
2
+ "name": "pb-sxp-ui",
3
+ "version": "1.3.8",
4
+ "description": "React enterprise-class UI components",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.js",
7
+ "unpkg": "dist/pb-ui.min.js",
8
+ "typings": "es/index.d.ts",
9
+ "type": "module",
10
+ "scripts": {
11
+ "prebuild": "rimraf lib && rimraf es && rimraf dist",
12
+ "build": "tsc --build tsconfig.es.json && tsc --build tsconfig.cjs.json",
13
+ "postbuild": "tsc-alias -p tsconfig.es.json && tsc-alias -p tsconfig.cjs.json",
14
+ "package": "npm run build && cross-env NODE_ENV=production rollup -c --configPlugin typescript",
15
+ "start": "npm run build && cross-env NODE_ENV=development rollup -w -c",
16
+ "lint": "eslint .",
17
+ "lint:fix": "eslint --fix .",
18
+ "dev": "rollup -w -c",
19
+ "dev:package": "npm run build && rollup -w -c",
20
+ "pub": "zx ./scripts/publish.mjs"
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "lib",
25
+ "es",
26
+ "package.json",
27
+ "README.md"
28
+ ],
29
+ "keywords": [
30
+ "react",
31
+ "react-component",
32
+ "ui",
33
+ "component",
34
+ "components"
35
+ ],
36
+ "author": "frontend@chatlabs.cn",
37
+ "license": "MIT",
38
+ "dependencies": {
39
+ "@emotion/css": "^11.11.2",
40
+ "eslint": "^8.48.0",
41
+ "eventemitter3": "^5.0.1",
42
+ "less": "^4.2.0",
43
+ "lodash": "^4.17.21",
44
+ "pako": "^2.1.0",
45
+ "qs": "^6.11.2",
46
+ "swiper": "^11.0.3",
47
+ "uuid": "^9.0.1"
48
+ },
49
+ "devDependencies": {
50
+ "@babel/core": "^7.22.11",
51
+ "@babel/plugin-transform-runtime": "^7.22.10",
52
+ "@babel/preset-env": "^7.22.10",
53
+ "@rollup/plugin-alias": "^5.0.0",
54
+ "@rollup/plugin-babel": "^6.0.3",
55
+ "@rollup/plugin-commonjs": "^25.0.4",
56
+ "@rollup/plugin-eslint": "^9.0.4",
57
+ "@rollup/plugin-image": "^3.0.2",
58
+ "@rollup/plugin-json": "^6.0.0",
59
+ "@rollup/plugin-node-resolve": "^15.2.0",
60
+ "@rollup/plugin-typescript": "^11.1.2",
61
+ "@rollup/plugin-url": "^8.0.1",
62
+ "@svgr/rollup": "^8.1.0",
63
+ "@types/crypto-js": "^4.1.3",
64
+ "@types/lodash": "^4.14.198",
65
+ "@types/node": "^20.5.3",
66
+ "@types/pako": "^2.0.3",
67
+ "@types/qs": "^6.9.8",
68
+ "@types/react": "^18.2.21",
69
+ "@types/react-dom": "^18.2.14",
70
+ "@types/uuid": "^9.0.7",
71
+ "@typescript-eslint/eslint-plugin": "^6.6.0",
72
+ "@typescript-eslint/parser": "^6.6.0",
73
+ "autoprefixer": "^10.4.15",
74
+ "cross-env": "^7.0.3",
75
+ "cssnano": "^6.0.1",
76
+ "esbuild": "^0.19.2",
77
+ "eslint-config-standard": "^17.1.0",
78
+ "eslint-config-standard-react": "^13.0.0",
79
+ "eslint-plugin-import": "^2.28.1",
80
+ "eslint-plugin-n": "^16.0.2",
81
+ "eslint-plugin-promise": "^6.1.1",
82
+ "eslint-plugin-react": "^7.33.2",
83
+ "eslint-plugin-react-hooks": "^4.6.0",
84
+ "eslint-plugin-unused-imports": "^3.0.0",
85
+ "postcss": "^8.4.28",
86
+ "querystring": "^0.2.1",
87
+ "react": "^18.2.0",
88
+ "react-dom": "^18.2.0",
89
+ "rimraf": "^5.0.1",
90
+ "rollup": "^3.28.1",
91
+ "rollup-plugin-esbuild": "^5.0.0",
92
+ "rollup-plugin-postcss": "^4.0.2",
93
+ "rollup-plugin-terser": "^7.0.2",
94
+ "tsc-alias": "^1.8.7",
95
+ "tslib": "^2.6.2",
96
+ "typescript": "^5.1.6",
97
+ "zx": "^7.2.3"
98
+ },
99
+ "peerDependencies": {
100
+ "react": ">=16.9.0",
101
+ "react-dom": ">=16.9.0"
102
+ },
103
+ "browserslist": [
104
+ "defaults",
105
+ "not ie < 8",
106
+ "last 2 versions",
107
+ "> 1%",
108
+ "iOS 7",
109
+ "last 3 iOS versions"
110
+ ]
111
+ }