pb-sxp-ui 1.20.14 → 1.20.15
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 +940 -212
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +73 -72
- package/dist/index.js +940 -213
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +7 -7
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +7 -7
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +940 -212
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +7 -7
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/DiyStoryPreview/index.js +10 -4
- package/es/core/components/StructurePage/index.d.ts +89 -0
- package/es/core/components/StructurePage/index.js +700 -0
- package/es/core/components/SxpPageRender/fakeData.js +1 -1
- package/es/core/components/SxpPageRender/index.js +10 -4
- package/es/core/context/SxpDataSourceProvider.js +4 -1
- package/es/core/hooks/useVisibleHeight.js +7 -7
- package/es/core/index.d.ts +2 -0
- package/es/core/index.js +1 -0
- package/es/core/utils/materials.d.ts +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/materials/sxp/MultiPosts/index.js +4 -4
- package/es/materials/sxp/popup/CommodityDetail/index.js +4 -4
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/lib/core/components/DiyStoryPreview/index.js +10 -4
- package/lib/core/components/StructurePage/index.d.ts +89 -0
- package/lib/core/components/StructurePage/index.js +702 -0
- package/lib/core/components/SxpPageRender/fakeData.js +1 -1
- package/lib/core/components/SxpPageRender/index.js +10 -4
- package/lib/core/context/SxpDataSourceProvider.js +4 -1
- package/lib/core/hooks/useVisibleHeight.js +7 -7
- package/lib/core/index.d.ts +2 -0
- package/lib/core/index.js +6 -1
- package/lib/core/utils/materials.d.ts +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/materials/sxp/MultiPosts/index.js +4 -4
- package/lib/materials/sxp/popup/CommodityDetail/index.js +4 -4
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/package.json +111 -111
|
@@ -876,7 +876,7 @@ exports.fakeRecList = [
|
|
|
876
876
|
position: '19',
|
|
877
877
|
video: {
|
|
878
878
|
itemId: 'VIDEOLDVqS1698395618208',
|
|
879
|
-
title: '
|
|
879
|
+
title: ' of excellence, Tiffany & Co. diamond designs combine time-honored craftsmanship, elegant silhouettes and our breathtakingly beautiful diamonds—the perfect complement to the most special days. This is the season of stories yet to be written. Start yours at Tiffany & Co.',
|
|
880
880
|
tags: [
|
|
881
881
|
'Holiday',
|
|
882
882
|
'love',
|
|
@@ -726,10 +726,16 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight, containerWidt
|
|
|
726
726
|
react_1.default.createElement(react_2.Swiper, { style: {
|
|
727
727
|
marginTop: tagHeight
|
|
728
728
|
}, ref: swiperRef, onSlideChange: () => {
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
swiperRef.current.swiper.allowTouchMove =
|
|
732
|
-
|
|
729
|
+
var _a;
|
|
730
|
+
if ((_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) {
|
|
731
|
+
swiperRef.current.swiper.allowTouchMove = false;
|
|
732
|
+
setTimeout(() => {
|
|
733
|
+
var _a;
|
|
734
|
+
if ((_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) {
|
|
735
|
+
swiperRef.current.swiper.allowTouchMove = true;
|
|
736
|
+
}
|
|
737
|
+
}, 500);
|
|
738
|
+
}
|
|
733
739
|
}, onActiveIndexChange: (swiper) => {
|
|
734
740
|
var _a, _b;
|
|
735
741
|
setActiveIndex(swiper.activeIndex);
|
|
@@ -33,6 +33,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
33
33
|
const [popupDetailData, setPopupDetailData] = (0, react_1.useState)();
|
|
34
34
|
const [waterFallData, setWaterFallData] = (0, react_1.useState)();
|
|
35
35
|
const [openHashtag, setOpenHashtag] = (0, react_1.useState)(isOpenHashTag);
|
|
36
|
+
if (typeof window !== 'undefined') {
|
|
37
|
+
window.setPopupDetailData = setPopupDetailData;
|
|
38
|
+
}
|
|
36
39
|
const [cacheRtcList, setCacheRtcList] = (0, react_1.useState)([]);
|
|
37
40
|
const [cacheActiveIndex, setCacheActiveIndex] = (0, react_1.useState)(0);
|
|
38
41
|
const [isFromHashtag, setIsFromHashtag] = (0, react_1.useState)(false);
|
|
@@ -456,7 +459,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
456
459
|
query.pageNum = pageNum;
|
|
457
460
|
result = isDiyH5
|
|
458
461
|
? yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v3/recommend/direct/page/view', { method: 'POST', body: query }))
|
|
459
|
-
: yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('recommend/direct_page', { method: 'POST', body: query }));
|
|
462
|
+
: yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/recommend/direct_page', { method: 'POST', body: query }));
|
|
460
463
|
if (!(result === null || result === void 0 ? void 0 : result.success)) {
|
|
461
464
|
return undefined;
|
|
462
465
|
}
|
|
@@ -46,13 +46,13 @@ function useVisibleHeight() {
|
|
|
46
46
|
styleElement.id = 'onetrust-pc-sdk';
|
|
47
47
|
styleElement.setAttribute('type', 'text/css');
|
|
48
48
|
document.head.appendChild(styleElement);
|
|
49
|
-
const css = `
|
|
50
|
-
#onetrust-pc-sdk {
|
|
51
|
-
height: ${finalHeight}px !important;
|
|
52
|
-
}
|
|
53
|
-
#onetrust-pc-sdk #ot-pc-content{
|
|
54
|
-
bottom: ${b}px !important;
|
|
55
|
-
}
|
|
49
|
+
const css = `
|
|
50
|
+
#onetrust-pc-sdk {
|
|
51
|
+
height: ${finalHeight}px !important;
|
|
52
|
+
}
|
|
53
|
+
#onetrust-pc-sdk #ot-pc-content{
|
|
54
|
+
bottom: ${b}px !important;
|
|
55
|
+
}
|
|
56
56
|
`;
|
|
57
57
|
styleElement.textContent = css;
|
|
58
58
|
}
|
package/lib/core/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { EditorCore } from './context/EditorContext';
|
|
2
2
|
export type { IEditorCoreRef } from './context/EditorContext';
|
|
3
3
|
export type { MaterialComponet } from './create';
|
|
4
|
+
export { default as StructurePage } from './components/StructurePage';
|
|
5
|
+
export type { IStructurePageProps, IPostData, IProductData, IMultiCtaData, IApiResponse } from './components/StructurePage';
|
package/lib/core/index.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EditorCore = void 0;
|
|
6
|
+
exports.StructurePage = exports.EditorCore = void 0;
|
|
4
7
|
var EditorContext_1 = require("./context/EditorContext");
|
|
5
8
|
Object.defineProperty(exports, "EditorCore", { enumerable: true, get: function () { return EditorContext_1.EditorCore; } });
|
|
9
|
+
var StructurePage_1 = require("./components/StructurePage");
|
|
10
|
+
Object.defineProperty(exports, "StructurePage", { enumerable: true, get: function () { return __importDefault(StructurePage_1).default; } });
|
|
@@ -19,7 +19,7 @@ export declare const getPriceText: ({ product, enableFormattedPrice, globalConfi
|
|
|
19
19
|
product: ProductInfoType | undefined | null;
|
|
20
20
|
enableFormattedPrice: boolean | undefined;
|
|
21
21
|
globalConfig: ISxpPageRenderProps['globalConfig'];
|
|
22
|
-
isHiddenDef?: boolean;
|
|
22
|
+
isHiddenDef?: boolean | undefined;
|
|
23
23
|
style?: IfontType | any;
|
|
24
24
|
}) => string | null;
|
|
25
25
|
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -10,4 +10,5 @@ export { default as SxpDataSourceProvider } from './core/context/SxpDataSourcePr
|
|
|
10
10
|
export { default as SxpPageCore } from './core/components/SxpPageCore';
|
|
11
11
|
export { default as EditorDataProvider } from './core/context/EditorDataProvider';
|
|
12
12
|
export { useEditorDataProvider } from './core/context/EditorDataProvider';
|
|
13
|
+
export { default as StructurePage } from './core/components/StructurePage';
|
|
13
14
|
export default Pagebuilder;
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useEditorDataProvider = exports.EditorDataProvider = exports.SxpPageCore = exports.SxpDataSourceProvider = exports.Modal = exports.DiyStoryPreview = exports.DiyPortalPreview = exports.SxpPageRender = exports.materials = exports.core = void 0;
|
|
3
|
+
exports.StructurePage = exports.useEditorDataProvider = exports.EditorDataProvider = exports.SxpPageCore = exports.SxpDataSourceProvider = exports.Modal = exports.DiyStoryPreview = exports.DiyPortalPreview = exports.SxpPageRender = exports.materials = exports.core = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const Pagebuilder_1 = require("./core/Pagebuilder");
|
|
6
6
|
require("./index.css");
|
|
@@ -22,4 +22,6 @@ var EditorDataProvider_1 = require("./core/context/EditorDataProvider");
|
|
|
22
22
|
Object.defineProperty(exports, "EditorDataProvider", { enumerable: true, get: function () { return tslib_1.__importDefault(EditorDataProvider_1).default; } });
|
|
23
23
|
var EditorDataProvider_2 = require("./core/context/EditorDataProvider");
|
|
24
24
|
Object.defineProperty(exports, "useEditorDataProvider", { enumerable: true, get: function () { return EditorDataProvider_2.useEditorDataProvider; } });
|
|
25
|
+
var StructurePage_1 = require("./core/components/StructurePage");
|
|
26
|
+
Object.defineProperty(exports, "StructurePage", { enumerable: true, get: function () { return tslib_1.__importDefault(StructurePage_1).default; } });
|
|
25
27
|
exports.default = Pagebuilder_1.Pagebuilder;
|
|
@@ -16,10 +16,10 @@ const MultiPosts = (_a) => {
|
|
|
16
16
|
const traceInfo = ((_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.traceInfo) || ((_c = recData === null || recData === void 0 ? void 0 : recData.product) === null || _c === void 0 ? void 0 : _c.traceInfo) || '';
|
|
17
17
|
const getPropsVal = (0, react_1.useCallback)((index, str) => {
|
|
18
18
|
try {
|
|
19
|
-
return new Function('props', 'str', `if (str) {
|
|
20
|
-
return props?.button${index + 1}${str}
|
|
21
|
-
} else {
|
|
22
|
-
return props?.button${index + 1}
|
|
19
|
+
return new Function('props', 'str', `if (str) {
|
|
20
|
+
return props?.button${index + 1}${str}
|
|
21
|
+
} else {
|
|
22
|
+
return props?.button${index + 1}
|
|
23
23
|
}`)(props, str);
|
|
24
24
|
}
|
|
25
25
|
catch (_a) { }
|
|
@@ -155,10 +155,10 @@ const CommodityDetail = (_a) => {
|
|
|
155
155
|
__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)
|
|
156
156
|
} }),
|
|
157
157
|
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) === '') },
|
|
158
|
-
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
|
|
159
|
-
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
|
160
|
-
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
|
161
|
-
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|
|
158
|
+
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
|
|
159
|
+
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
|
160
|
+
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
|
161
|
+
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|
|
162
162
|
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 }))));
|
|
163
163
|
};
|
|
164
164
|
const renderBtn = () => {
|
|
@@ -151,7 +151,7 @@ const CommodityDetailDiroNew = (_a) => {
|
|
|
151
151
|
const productInfoText = ({ isPost }) => {
|
|
152
152
|
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) === '') },
|
|
153
153
|
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) ||
|
|
154
|
-
`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
|
|
154
|
+
`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
|
|
155
155
|
Made in Italy` })));
|
|
156
156
|
};
|
|
157
157
|
const getStyle = (0, react_1.useCallback)((style) => {
|
package/package.json
CHANGED
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pb-sxp-ui",
|
|
3
|
-
"version": "1.20.
|
|
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.20.15",
|
|
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
|
+
}
|