pb-sxp-ui 1.0.46 → 1.0.47
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/LICENSE +21 -21
- package/README.md +111 -111
- package/dist/index.cjs +15 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -14
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +15 -14
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/DiyPortalPreview/index.js +5 -3
- package/es/core/components/SxpPageCore/index.d.ts +1 -0
- package/es/core/components/SxpPageCore/index.js +2 -2
- package/es/core/components/SxpPageRender/index.d.ts +1 -0
- package/es/core/components/SxpPageRender/index.js +3 -3
- package/es/materials/sxp/popup/CommodityDetail/index.js +4 -4
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/lib/core/components/DiyPortalPreview/index.js +5 -3
- package/lib/core/components/SxpPageCore/index.d.ts +1 -0
- package/lib/core/components/SxpPageCore/index.js +2 -2
- package/lib/core/components/SxpPageRender/index.d.ts +1 -0
- package/lib/core/components/SxpPageRender/index.js +3 -3
- package/lib/materials/sxp/popup/CommodityDetail/index.js +4 -4
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/package.json +115 -115
@@ -1,4 +1,5 @@
|
|
1
1
|
import React, { memo, useMemo } from 'react';
|
2
|
+
import { css } from '@emotion/css';
|
2
3
|
import Nudge from '../SxpPageRender/Nudge';
|
3
4
|
import RenderCard from '../SxpPageRender/RenderCard';
|
4
5
|
import ExpandableText from '../SxpPageRender/ExpandableText';
|
@@ -112,15 +113,16 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
|
|
112
113
|
renderBottom(rec, index),
|
113
114
|
renderLikeButton(rec, index)));
|
114
115
|
};
|
115
|
-
return (React.createElement("div", {
|
116
|
+
return (React.createElement("div", { className: css({
|
116
117
|
width: '100%',
|
117
118
|
height: containerHeight,
|
118
119
|
display: 'flex',
|
119
120
|
boxSizing: 'border-box',
|
120
121
|
gap: 16,
|
121
122
|
pointerEvents: 'none',
|
122
|
-
userSelect: 'none'
|
123
|
-
|
123
|
+
userSelect: 'none',
|
124
|
+
transform: 'scale(0.7) translateX(-22%) translateY(-140px)'
|
125
|
+
}) }, data === null || data === void 0 ? void 0 : data.map((rec, index) => {
|
124
126
|
return renderView(rec, index);
|
125
127
|
})));
|
126
128
|
};
|
@@ -8,7 +8,7 @@ const RESOLVER = {};
|
|
8
8
|
Object.values(_materials_).forEach((v) => {
|
9
9
|
RESOLVER[v.extend.type] = v;
|
10
10
|
});
|
11
|
-
const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, loadingImage, appDomain }) => {
|
11
|
+
const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, loadingImage, appDomain, licenseUrl }) => {
|
12
12
|
var _a, _b, _c, _d, _e, _f;
|
13
13
|
const utmVal = useMemo(() => {
|
14
14
|
var _a;
|
@@ -19,7 +19,7 @@ const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, l
|
|
19
19
|
React.createElement(SxpDataSourceProvider, { utmVal: utmVal, dataSources: data === null || data === void 0 ? void 0 : data.data_sources, sxpParameter: data === null || data === void 0 ? void 0 : data.sxp_parameter, maxSize: (_b = (_a = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _a === void 0 ? void 0 : _a.personalized_recommend) !== null && _b !== void 0 ? _b : maxSize, defaultSize: (_d = (_c = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _c === void 0 ? void 0 : _c.default_recommend) !== null && _d !== void 0 ? _d : defaultSize, hashTagSize: (_f = (_e = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _e === void 0 ? void 0 : _e.hash_tag_size) !== null && _f !== void 0 ? _f : hashTagSize, loadingImage: loadingImage, appDomain: appDomain, render: ({ rtcList, tagList }) => {
|
20
20
|
var _a;
|
21
21
|
return (React.createElement(React.Fragment, null,
|
22
|
-
React.createElement(SxpPageRender, Object.assign({}, (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf, { tagList: tagList, data: rtcList, resolver: RESOLVER })),
|
22
|
+
React.createElement(SxpPageRender, Object.assign({}, (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf, { tagList: tagList, data: rtcList, resolver: RESOLVER, licenseUrl: licenseUrl })),
|
23
23
|
React.createElement(Popup, null)));
|
24
24
|
} })));
|
25
25
|
};
|
@@ -22,7 +22,7 @@ import { useEventReport } from '../../../core/hooks/useEventReport';
|
|
22
22
|
import withBindDataSource from '../../../core/hoc/withBindDataSource';
|
23
23
|
import { getFeUserId } from '../../../core/utils/localStore';
|
24
24
|
import Tagbar from './Tagbar';
|
25
|
-
const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [] }) => {
|
25
|
+
const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [], licenseUrl }) => {
|
26
26
|
var _a, _b, _c, _d, _e, _f, _g;
|
27
27
|
const { schema } = useEditor();
|
28
28
|
const [activeIndex, setActiveIndex] = useState(0);
|
@@ -76,7 +76,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
76
76
|
if (!firstRef.current && !videoRef) {
|
77
77
|
firstRef.current = true;
|
78
78
|
const player = TCPlayer('player-container-id', {
|
79
|
-
licenseUrl
|
79
|
+
licenseUrl,
|
80
80
|
controls: false,
|
81
81
|
autoplay: false,
|
82
82
|
loop: false,
|
@@ -89,7 +89,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
89
89
|
setVideoRef(player);
|
90
90
|
});
|
91
91
|
}
|
92
|
-
}, [videoRef]);
|
92
|
+
}, [videoRef, licenseUrl]);
|
93
93
|
useEffect(() => {
|
94
94
|
if (!isInit)
|
95
95
|
handleH5EnterLink();
|
@@ -59,10 +59,10 @@ const CommodityDetail = (_a) => {
|
|
59
59
|
React.createElement("div", { className: 'pb-commondity-content-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title, hidden: !!product && !(product === null || product === void 0 ? void 0 : product.title) }, (_b = product === null || product === void 0 ? void 0 : product.title) !== null && _b !== void 0 ? _b : 'Pendant in Yellow Gold with Diamonds, Medium'),
|
60
60
|
React.createElement("div", { className: 'pb-commondity-content-price', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price, hidden: !!product && !(product === null || product === void 0 ? void 0 : product.price) }, priceText),
|
61
61
|
React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
|
62
|
-
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: (_c = product === null || product === void 0 ? void 0 : product.info) !== null && _c !== void 0 ? _c : `The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
63
|
-
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
64
|
-
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
65
|
-
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|
62
|
+
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: (_c = product === null || product === void 0 ? void 0 : product.info) !== null && _c !== void 0 ? _c : `The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
63
|
+
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
64
|
+
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
65
|
+
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|
66
66
|
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 }))));
|
67
67
|
};
|
68
68
|
const renderBtn = () => {
|
@@ -84,7 +84,7 @@ const CommodityDetailDiroNew = (_a) => {
|
|
84
84
|
const productInfoText = ({ isPost }) => {
|
85
85
|
return (React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
|
86
86
|
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) ||
|
87
|
-
`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
|
87
|
+
`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
88
|
Made in Italy` })));
|
89
89
|
};
|
90
90
|
return (React.createElement("div", { className: 'pb-commondityDiroNew' },
|
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const tslib_1 = require("tslib");
|
4
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
5
|
+
const css_1 = require("@emotion/css");
|
5
6
|
const Nudge_1 = tslib_1.__importDefault(require("../SxpPageRender/Nudge"));
|
6
7
|
const RenderCard_1 = tslib_1.__importDefault(require("../SxpPageRender/RenderCard"));
|
7
8
|
const ExpandableText_1 = tslib_1.__importDefault(require("../SxpPageRender/ExpandableText"));
|
@@ -115,15 +116,16 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
|
|
115
116
|
renderBottom(rec, index),
|
116
117
|
renderLikeButton(rec, index)));
|
117
118
|
};
|
118
|
-
return (react_1.default.createElement("div", {
|
119
|
+
return (react_1.default.createElement("div", { className: (0, css_1.css)({
|
119
120
|
width: '100%',
|
120
121
|
height: containerHeight,
|
121
122
|
display: 'flex',
|
122
123
|
boxSizing: 'border-box',
|
123
124
|
gap: 16,
|
124
125
|
pointerEvents: 'none',
|
125
|
-
userSelect: 'none'
|
126
|
-
|
126
|
+
userSelect: 'none',
|
127
|
+
transform: 'scale(0.7) translateX(-22%) translateY(-140px)'
|
128
|
+
}) }, data === null || data === void 0 ? void 0 : data.map((rec, index) => {
|
127
129
|
return renderView(rec, index);
|
128
130
|
})));
|
129
131
|
};
|
@@ -11,7 +11,7 @@ const RESOLVER = {};
|
|
11
11
|
Object.values(_materials_).forEach((v) => {
|
12
12
|
RESOLVER[v.extend.type] = v;
|
13
13
|
});
|
14
|
-
const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, loadingImage, appDomain }) => {
|
14
|
+
const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, loadingImage, appDomain, licenseUrl }) => {
|
15
15
|
var _a, _b, _c, _d, _e, _f;
|
16
16
|
const utmVal = (0, react_1.useMemo)(() => {
|
17
17
|
var _a;
|
@@ -22,7 +22,7 @@ const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, l
|
|
22
22
|
react_1.default.createElement(SxpDataSourceProvider_1.default, { utmVal: utmVal, dataSources: data === null || data === void 0 ? void 0 : data.data_sources, sxpParameter: data === null || data === void 0 ? void 0 : data.sxp_parameter, maxSize: (_b = (_a = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _a === void 0 ? void 0 : _a.personalized_recommend) !== null && _b !== void 0 ? _b : maxSize, defaultSize: (_d = (_c = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _c === void 0 ? void 0 : _c.default_recommend) !== null && _d !== void 0 ? _d : defaultSize, hashTagSize: (_f = (_e = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _e === void 0 ? void 0 : _e.hash_tag_size) !== null && _f !== void 0 ? _f : hashTagSize, loadingImage: loadingImage, appDomain: appDomain, render: ({ rtcList, tagList }) => {
|
23
23
|
var _a;
|
24
24
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
25
|
-
react_1.default.createElement(SxpPageRender_1.default, Object.assign({}, (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf, { tagList: tagList, data: rtcList, resolver: RESOLVER })),
|
25
|
+
react_1.default.createElement(SxpPageRender_1.default, Object.assign({}, (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf, { tagList: tagList, data: rtcList, resolver: RESOLVER, licenseUrl: licenseUrl })),
|
26
26
|
react_1.default.createElement(Popup_1.default, null)));
|
27
27
|
} })));
|
28
28
|
};
|
@@ -25,7 +25,7 @@ const useEventReport_1 = require("../../../core/hooks/useEventReport");
|
|
25
25
|
const withBindDataSource_1 = tslib_1.__importDefault(require("../../../core/hoc/withBindDataSource"));
|
26
26
|
const localStore_1 = require("../../../core/utils/localStore");
|
27
27
|
const Tagbar_1 = tslib_1.__importDefault(require("./Tagbar"));
|
28
|
-
const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [] }) => {
|
28
|
+
const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [], licenseUrl }) => {
|
29
29
|
var _a, _b, _c, _d, _e, _f, _g;
|
30
30
|
const { schema } = (0, hooks_1.useEditor)();
|
31
31
|
const [activeIndex, setActiveIndex] = (0, react_1.useState)(0);
|
@@ -79,7 +79,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
79
79
|
if (!firstRef.current && !videoRef) {
|
80
80
|
firstRef.current = true;
|
81
81
|
const player = TCPlayer('player-container-id', {
|
82
|
-
licenseUrl
|
82
|
+
licenseUrl,
|
83
83
|
controls: false,
|
84
84
|
autoplay: false,
|
85
85
|
loop: false,
|
@@ -92,7 +92,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
92
92
|
setVideoRef(player);
|
93
93
|
});
|
94
94
|
}
|
95
|
-
}, [videoRef]);
|
95
|
+
}, [videoRef, licenseUrl]);
|
96
96
|
(0, react_1.useEffect)(() => {
|
97
97
|
if (!isInit)
|
98
98
|
handleH5EnterLink();
|
@@ -61,10 +61,10 @@ const CommodityDetail = (_a) => {
|
|
61
61
|
react_1.default.createElement("div", { className: 'pb-commondity-content-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title, hidden: !!product && !(product === null || product === void 0 ? void 0 : product.title) }, (_b = product === null || product === void 0 ? void 0 : product.title) !== null && _b !== void 0 ? _b : 'Pendant in Yellow Gold with Diamonds, Medium'),
|
62
62
|
react_1.default.createElement("div", { className: 'pb-commondity-content-price', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price, hidden: !!product && !(product === null || product === void 0 ? void 0 : product.price) }, priceText),
|
63
63
|
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) === '') },
|
64
|
-
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: (_c = product === null || product === void 0 ? void 0 : product.info) !== null && _c !== void 0 ? _c : `The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
65
|
-
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
66
|
-
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
67
|
-
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|
64
|
+
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: (_c = product === null || product === void 0 ? void 0 : product.info) !== null && _c !== void 0 ? _c : `The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
65
|
+
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
66
|
+
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
67
|
+
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|
68
68
|
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 }))));
|
69
69
|
};
|
70
70
|
const renderBtn = () => {
|
@@ -86,7 +86,7 @@ const CommodityDetailDiroNew = (_a) => {
|
|
86
86
|
const productInfoText = ({ isPost }) => {
|
87
87
|
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) === '') },
|
88
88
|
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) ||
|
89
|
-
`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
|
+
`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
90
|
Made in Italy` })));
|
91
91
|
};
|
92
92
|
return (react_1.default.createElement("div", { className: 'pb-commondityDiroNew' },
|
package/package.json
CHANGED
@@ -1,115 +1,115 @@
|
|
1
|
-
{
|
2
|
-
"name": "pb-sxp-ui",
|
3
|
-
"version": "1.0.
|
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
|
-
"antd",
|
31
|
-
"react",
|
32
|
-
"react-component",
|
33
|
-
"ui",
|
34
|
-
"component",
|
35
|
-
"components"
|
36
|
-
],
|
37
|
-
"author": "frontend@chatlabs.cn",
|
38
|
-
"license": "MIT",
|
39
|
-
"dependencies": {
|
40
|
-
"@ant-design/pro-components": "^2.6.35",
|
41
|
-
"@emotion/css": "^11.11.2",
|
42
|
-
"antd": "^5.15.3",
|
43
|
-
"eslint": "^8.48.0",
|
44
|
-
"eventemitter3": "^5.0.1",
|
45
|
-
"hls.js": "^1.5.8",
|
46
|
-
"less": "^4.2.0",
|
47
|
-
"lodash": "^4.17.21",
|
48
|
-
"pako": "^2.1.0",
|
49
|
-
"qs": "^6.11.2",
|
50
|
-
"swiper": "^11.0.3",
|
51
|
-
"uuid": "^9.0.1"
|
52
|
-
},
|
53
|
-
"devDependencies": {
|
54
|
-
"@babel/core": "^7.22.11",
|
55
|
-
"@babel/plugin-transform-runtime": "^7.22.10",
|
56
|
-
"@babel/preset-env": "^7.22.10",
|
57
|
-
"@rollup/plugin-alias": "^5.0.0",
|
58
|
-
"@rollup/plugin-babel": "^6.0.3",
|
59
|
-
"@rollup/plugin-commonjs": "^25.0.4",
|
60
|
-
"@rollup/plugin-eslint": "^9.0.4",
|
61
|
-
"@rollup/plugin-image": "^3.0.2",
|
62
|
-
"@rollup/plugin-json": "^6.0.0",
|
63
|
-
"@rollup/plugin-node-resolve": "^15.2.0",
|
64
|
-
"@rollup/plugin-typescript": "^11.1.2",
|
65
|
-
"@rollup/plugin-url": "^8.0.1",
|
66
|
-
"@svgr/rollup": "^8.1.0",
|
67
|
-
"@types/crypto-js": "^4.1.3",
|
68
|
-
"@types/lodash": "^4.14.198",
|
69
|
-
"@types/node": "^20.5.3",
|
70
|
-
"@types/pako": "^2.0.3",
|
71
|
-
"@types/qs": "^6.9.8",
|
72
|
-
"@types/react": "^18.2.21",
|
73
|
-
"@types/react-dom": "^18.2.14",
|
74
|
-
"@types/uuid": "^9.0.7",
|
75
|
-
"@typescript-eslint/eslint-plugin": "^6.6.0",
|
76
|
-
"@typescript-eslint/parser": "^6.6.0",
|
77
|
-
"autoprefixer": "^10.4.15",
|
78
|
-
"cross-env": "^7.0.3",
|
79
|
-
"cssnano": "^6.0.1",
|
80
|
-
"esbuild": "^0.19.2",
|
81
|
-
"eslint-config-standard": "^17.1.0",
|
82
|
-
"eslint-config-standard-react": "^13.0.0",
|
83
|
-
"eslint-plugin-import": "^2.28.1",
|
84
|
-
"eslint-plugin-n": "^16.0.2",
|
85
|
-
"eslint-plugin-promise": "^6.1.1",
|
86
|
-
"eslint-plugin-react": "^7.33.2",
|
87
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
88
|
-
"eslint-plugin-unused-imports": "^3.0.0",
|
89
|
-
"postcss": "^8.4.28",
|
90
|
-
"querystring": "^0.2.1",
|
91
|
-
"react": "^18.2.0",
|
92
|
-
"react-dom": "^18.2.0",
|
93
|
-
"rimraf": "^5.0.1",
|
94
|
-
"rollup": "^3.28.1",
|
95
|
-
"rollup-plugin-esbuild": "^5.0.0",
|
96
|
-
"rollup-plugin-postcss": "^4.0.2",
|
97
|
-
"rollup-plugin-terser": "^7.0.2",
|
98
|
-
"tsc-alias": "^1.8.7",
|
99
|
-
"tslib": "^2.6.2",
|
100
|
-
"typescript": "^5.1.6",
|
101
|
-
"zx": "^7.2.3"
|
102
|
-
},
|
103
|
-
"peerDependencies": {
|
104
|
-
"react": ">=16.9.0",
|
105
|
-
"react-dom": ">=16.9.0"
|
106
|
-
},
|
107
|
-
"browserslist": [
|
108
|
-
"defaults",
|
109
|
-
"not ie < 8",
|
110
|
-
"last 2 versions",
|
111
|
-
"> 1%",
|
112
|
-
"iOS 7",
|
113
|
-
"last 3 iOS versions"
|
114
|
-
]
|
115
|
-
}
|
1
|
+
{
|
2
|
+
"name": "pb-sxp-ui",
|
3
|
+
"version": "1.0.47",
|
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
|
+
"antd",
|
31
|
+
"react",
|
32
|
+
"react-component",
|
33
|
+
"ui",
|
34
|
+
"component",
|
35
|
+
"components"
|
36
|
+
],
|
37
|
+
"author": "frontend@chatlabs.cn",
|
38
|
+
"license": "MIT",
|
39
|
+
"dependencies": {
|
40
|
+
"@ant-design/pro-components": "^2.6.35",
|
41
|
+
"@emotion/css": "^11.11.2",
|
42
|
+
"antd": "^5.15.3",
|
43
|
+
"eslint": "^8.48.0",
|
44
|
+
"eventemitter3": "^5.0.1",
|
45
|
+
"hls.js": "^1.5.8",
|
46
|
+
"less": "^4.2.0",
|
47
|
+
"lodash": "^4.17.21",
|
48
|
+
"pako": "^2.1.0",
|
49
|
+
"qs": "^6.11.2",
|
50
|
+
"swiper": "^11.0.3",
|
51
|
+
"uuid": "^9.0.1"
|
52
|
+
},
|
53
|
+
"devDependencies": {
|
54
|
+
"@babel/core": "^7.22.11",
|
55
|
+
"@babel/plugin-transform-runtime": "^7.22.10",
|
56
|
+
"@babel/preset-env": "^7.22.10",
|
57
|
+
"@rollup/plugin-alias": "^5.0.0",
|
58
|
+
"@rollup/plugin-babel": "^6.0.3",
|
59
|
+
"@rollup/plugin-commonjs": "^25.0.4",
|
60
|
+
"@rollup/plugin-eslint": "^9.0.4",
|
61
|
+
"@rollup/plugin-image": "^3.0.2",
|
62
|
+
"@rollup/plugin-json": "^6.0.0",
|
63
|
+
"@rollup/plugin-node-resolve": "^15.2.0",
|
64
|
+
"@rollup/plugin-typescript": "^11.1.2",
|
65
|
+
"@rollup/plugin-url": "^8.0.1",
|
66
|
+
"@svgr/rollup": "^8.1.0",
|
67
|
+
"@types/crypto-js": "^4.1.3",
|
68
|
+
"@types/lodash": "^4.14.198",
|
69
|
+
"@types/node": "^20.5.3",
|
70
|
+
"@types/pako": "^2.0.3",
|
71
|
+
"@types/qs": "^6.9.8",
|
72
|
+
"@types/react": "^18.2.21",
|
73
|
+
"@types/react-dom": "^18.2.14",
|
74
|
+
"@types/uuid": "^9.0.7",
|
75
|
+
"@typescript-eslint/eslint-plugin": "^6.6.0",
|
76
|
+
"@typescript-eslint/parser": "^6.6.0",
|
77
|
+
"autoprefixer": "^10.4.15",
|
78
|
+
"cross-env": "^7.0.3",
|
79
|
+
"cssnano": "^6.0.1",
|
80
|
+
"esbuild": "^0.19.2",
|
81
|
+
"eslint-config-standard": "^17.1.0",
|
82
|
+
"eslint-config-standard-react": "^13.0.0",
|
83
|
+
"eslint-plugin-import": "^2.28.1",
|
84
|
+
"eslint-plugin-n": "^16.0.2",
|
85
|
+
"eslint-plugin-promise": "^6.1.1",
|
86
|
+
"eslint-plugin-react": "^7.33.2",
|
87
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
88
|
+
"eslint-plugin-unused-imports": "^3.0.0",
|
89
|
+
"postcss": "^8.4.28",
|
90
|
+
"querystring": "^0.2.1",
|
91
|
+
"react": "^18.2.0",
|
92
|
+
"react-dom": "^18.2.0",
|
93
|
+
"rimraf": "^5.0.1",
|
94
|
+
"rollup": "^3.28.1",
|
95
|
+
"rollup-plugin-esbuild": "^5.0.0",
|
96
|
+
"rollup-plugin-postcss": "^4.0.2",
|
97
|
+
"rollup-plugin-terser": "^7.0.2",
|
98
|
+
"tsc-alias": "^1.8.7",
|
99
|
+
"tslib": "^2.6.2",
|
100
|
+
"typescript": "^5.1.6",
|
101
|
+
"zx": "^7.2.3"
|
102
|
+
},
|
103
|
+
"peerDependencies": {
|
104
|
+
"react": ">=16.9.0",
|
105
|
+
"react-dom": ">=16.9.0"
|
106
|
+
},
|
107
|
+
"browserslist": [
|
108
|
+
"defaults",
|
109
|
+
"not ie < 8",
|
110
|
+
"last 2 versions",
|
111
|
+
"> 1%",
|
112
|
+
"iOS 7",
|
113
|
+
"last 3 iOS versions"
|
114
|
+
]
|
115
|
+
}
|