pb-sxp-ui 1.0.34 → 1.0.36
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 +23 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +23 -17
- 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 +23 -17
- 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.d.ts +3 -1
- package/es/core/components/DiyPortalPreview/index.js +10 -8
- package/es/core/components/SxpPageRender/VideoWidget/index.js +4 -0
- 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.d.ts +3 -1
- package/lib/core/components/DiyPortalPreview/index.js +10 -8
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +4 -0
- 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,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISxpPageRenderProps } from '../SxpPageRender';
|
3
|
-
declare const _default: React.NamedExoticComponent<ISxpPageRenderProps
|
3
|
+
declare const _default: React.NamedExoticComponent<ISxpPageRenderProps & {
|
4
|
+
appDomain?: string | undefined;
|
5
|
+
}>;
|
4
6
|
export default _default;
|
@@ -14,9 +14,9 @@ const RESOLVER = {};
|
|
14
14
|
Object.values(_materials_).forEach((v) => {
|
15
15
|
RESOLVER[v.extend.type] = v;
|
16
16
|
});
|
17
|
-
const
|
18
|
-
|
19
|
-
|
17
|
+
const defaultUnLikeIconPath = '/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png';
|
18
|
+
const defaultLikeIconPath = '/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png';
|
19
|
+
const DiyPortalPreview = ({ data, globalConfig, tipText, nudge, tempMap, descStyle, hashTagStyle, containerHeight = 664, containerWidth = 375, appDomain }) => {
|
20
20
|
const height = useMemo(() => {
|
21
21
|
return (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo) ? containerHeight - 45 : containerHeight;
|
22
22
|
}, [globalConfig, containerHeight]);
|
@@ -62,8 +62,10 @@ const DiyPortalPreview = ({ data, globalConfig, tipText, nudge, tempMap, descSty
|
|
62
62
|
}
|
63
63
|
return null;
|
64
64
|
};
|
65
|
+
const likeIcon = useIconLink(defaultLikeIconPath, appDomain);
|
66
|
+
const unlikeIcon = useIconLink(defaultUnLikeIconPath, appDomain);
|
65
67
|
const renderLikeButton = (rec, index) => {
|
66
|
-
var _a, _b;
|
68
|
+
var _a, _b, _c, _d;
|
67
69
|
if (!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLike))
|
68
70
|
return;
|
69
71
|
let top = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconY) !== null && _a !== void 0 ? _a : 400;
|
@@ -71,15 +73,15 @@ const DiyPortalPreview = ({ data, globalConfig, tipText, nudge, tempMap, descSty
|
|
71
73
|
top += 40;
|
72
74
|
}
|
73
75
|
if (rec.video) {
|
74
|
-
return (React.createElement(LikeButton, { key: rec.position, activeIcon: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIcon, unActicveIcon: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unlikeIcon, position: index, active: rec.isCollected, recData: rec, className: 'clc-sxp-like-button', style: {
|
76
|
+
return (React.createElement(LikeButton, { key: rec.position, activeIcon: (_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIcon) !== null && _b !== void 0 ? _b : likeIcon, unActicveIcon: (_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unlikeIcon) !== null && _c !== void 0 ? _c : unlikeIcon, position: index, active: rec.isCollected, recData: rec, className: 'clc-sxp-like-button', style: {
|
75
77
|
top,
|
76
|
-
right: (
|
78
|
+
right: (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconX) !== null && _d !== void 0 ? _d : 0
|
77
79
|
} }));
|
78
80
|
}
|
79
81
|
return null;
|
80
82
|
};
|
81
|
-
const mutedIcon = useIconLink('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png');
|
82
|
-
const unmutedIcon = useIconLink('/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png');
|
83
|
+
const mutedIcon = useIconLink('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png', appDomain);
|
84
|
+
const unmutedIcon = useIconLink('/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png', appDomain);
|
83
85
|
const renderView = (rec, index) => {
|
84
86
|
var _a, _b, _c, _d;
|
85
87
|
return (React.createElement("div", { style: { position: 'relative' } },
|
@@ -146,6 +146,10 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
146
146
|
const hls = new Hls();
|
147
147
|
hls.loadSource(videoSrc);
|
148
148
|
hls.attachMedia(videoRef.current);
|
149
|
+
hls.on(Hls.Events.MANIFEST_PARSED, function () {
|
150
|
+
var _a;
|
151
|
+
(_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
|
152
|
+
});
|
149
153
|
}
|
150
154
|
else if (videoRef.current.canPlayType('application/vnd.apple.mpegurl')) {
|
151
155
|
videoRef.current.src = videoSrc;
|
@@ -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' },
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISxpPageRenderProps } from '../SxpPageRender';
|
3
|
-
declare const _default: React.NamedExoticComponent<ISxpPageRenderProps
|
3
|
+
declare const _default: React.NamedExoticComponent<ISxpPageRenderProps & {
|
4
|
+
appDomain?: string | undefined;
|
5
|
+
}>;
|
4
6
|
export default _default;
|
@@ -17,9 +17,9 @@ const RESOLVER = {};
|
|
17
17
|
Object.values(_materials_).forEach((v) => {
|
18
18
|
RESOLVER[v.extend.type] = v;
|
19
19
|
});
|
20
|
-
const
|
21
|
-
|
22
|
-
|
20
|
+
const defaultUnLikeIconPath = '/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png';
|
21
|
+
const defaultLikeIconPath = '/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png';
|
22
|
+
const DiyPortalPreview = ({ data, globalConfig, tipText, nudge, tempMap, descStyle, hashTagStyle, containerHeight = 664, containerWidth = 375, appDomain }) => {
|
23
23
|
const height = (0, react_1.useMemo)(() => {
|
24
24
|
return (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo) ? containerHeight - 45 : containerHeight;
|
25
25
|
}, [globalConfig, containerHeight]);
|
@@ -65,8 +65,10 @@ const DiyPortalPreview = ({ data, globalConfig, tipText, nudge, tempMap, descSty
|
|
65
65
|
}
|
66
66
|
return null;
|
67
67
|
};
|
68
|
+
const likeIcon = (0, useIconLink_1.useIconLink)(defaultLikeIconPath, appDomain);
|
69
|
+
const unlikeIcon = (0, useIconLink_1.useIconLink)(defaultUnLikeIconPath, appDomain);
|
68
70
|
const renderLikeButton = (rec, index) => {
|
69
|
-
var _a, _b;
|
71
|
+
var _a, _b, _c, _d;
|
70
72
|
if (!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLike))
|
71
73
|
return;
|
72
74
|
let top = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconY) !== null && _a !== void 0 ? _a : 400;
|
@@ -74,15 +76,15 @@ const DiyPortalPreview = ({ data, globalConfig, tipText, nudge, tempMap, descSty
|
|
74
76
|
top += 40;
|
75
77
|
}
|
76
78
|
if (rec.video) {
|
77
|
-
return (react_1.default.createElement(LikeButton_1.default, { key: rec.position, activeIcon: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIcon, unActicveIcon: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unlikeIcon, position: index, active: rec.isCollected, recData: rec, className: 'clc-sxp-like-button', style: {
|
79
|
+
return (react_1.default.createElement(LikeButton_1.default, { key: rec.position, activeIcon: (_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIcon) !== null && _b !== void 0 ? _b : likeIcon, unActicveIcon: (_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unlikeIcon) !== null && _c !== void 0 ? _c : unlikeIcon, position: index, active: rec.isCollected, recData: rec, className: 'clc-sxp-like-button', style: {
|
78
80
|
top,
|
79
|
-
right: (
|
81
|
+
right: (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconX) !== null && _d !== void 0 ? _d : 0
|
80
82
|
} }));
|
81
83
|
}
|
82
84
|
return null;
|
83
85
|
};
|
84
|
-
const mutedIcon = (0, useIconLink_1.useIconLink)('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png');
|
85
|
-
const unmutedIcon = (0, useIconLink_1.useIconLink)('/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png');
|
86
|
+
const mutedIcon = (0, useIconLink_1.useIconLink)('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png', appDomain);
|
87
|
+
const unmutedIcon = (0, useIconLink_1.useIconLink)('/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png', appDomain);
|
86
88
|
const renderView = (rec, index) => {
|
87
89
|
var _a, _b, _c, _d;
|
88
90
|
return (react_1.default.createElement("div", { style: { position: 'relative' } },
|
@@ -149,6 +149,10 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
149
149
|
const hls = new hls_js_1.default();
|
150
150
|
hls.loadSource(videoSrc);
|
151
151
|
hls.attachMedia(videoRef.current);
|
152
|
+
hls.on(hls_js_1.default.Events.MANIFEST_PARSED, function () {
|
153
|
+
var _a;
|
154
|
+
(_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
|
155
|
+
});
|
152
156
|
}
|
153
157
|
else if (videoRef.current.canPlayType('application/vnd.apple.mpegurl')) {
|
154
158
|
videoRef.current.src = videoSrc;
|
@@ -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.36",
|
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
|
+
}
|