pb-sxp-ui 1.3.8 → 1.4.1
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 +197 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +0 -4
- package/dist/index.js +197 -72
- 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 +197 -72
- 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/SxpPageRender/Modal/index.js +10 -4
- package/es/core/components/SxpPageRender/PictureGroup/index.js +11 -5
- package/es/core/components/SxpPageRender/index.d.ts +3 -0
- package/es/core/components/SxpPageRender/index.js +14 -9
- package/es/core/context/SxpDataSourceProvider.d.ts +2 -1
- package/es/core/context/SxpDataSourceProvider.js +22 -15
- package/es/core/hooks/useEventReport.js +9 -16
- package/es/materials/sxp/popup/AppointForm/Form.js +1 -1
- package/es/materials/sxp/popup/AppointForm/index.js +31 -8
- package/es/materials/sxp/popup/CommodityDetail/index.d.ts +3 -0
- package/es/materials/sxp/popup/CommodityDetail/index.js +15 -5
- package/es/materials/sxp/popup/CommodityDetail/settingRender.d.ts +13 -0
- package/es/materials/sxp/popup/CommodityDetail/settingRender.js +31 -0
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +3 -0
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +15 -4
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +13 -0
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +31 -0
- package/lib/core/components/SxpPageRender/Modal/index.js +10 -4
- package/lib/core/components/SxpPageRender/PictureGroup/index.js +11 -5
- package/lib/core/components/SxpPageRender/index.d.ts +3 -0
- package/lib/core/components/SxpPageRender/index.js +14 -9
- package/lib/core/context/SxpDataSourceProvider.d.ts +2 -1
- package/lib/core/context/SxpDataSourceProvider.js +22 -15
- package/lib/core/hooks/useEventReport.js +9 -16
- package/lib/materials/sxp/popup/AppointForm/Form.js +1 -1
- package/lib/materials/sxp/popup/AppointForm/index.js +30 -7
- package/lib/materials/sxp/popup/CommodityDetail/index.d.ts +3 -0
- package/lib/materials/sxp/popup/CommodityDetail/index.js +15 -5
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.d.ts +13 -0
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +31 -0
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +3 -0
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +15 -4
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +13 -0
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +31 -0
- package/package.json +111 -111
@@ -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 = () => {
|
@@ -145,7 +145,17 @@ const CommodityDetail = (_a) => {
|
|
145
145
|
clickableClass: getDotsAlign
|
146
146
|
}, loop: true, autoplay: {
|
147
147
|
delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
|
148
|
-
}, ref: ref },
|
148
|
+
}, ref: ref, className: (0, css_1.css)(Object.assign(Object.assign({ '.swiper-pagination': Object.assign(Object.assign({}, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom) && { bottom: swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom })), { fontSize: '14px' }) }, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
|
149
|
+
'.swiper-pagination-bullet': {
|
150
|
+
backgroundColor: swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor,
|
151
|
+
opacity: 1
|
152
|
+
}
|
153
|
+
})), ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsActiveColor) && {
|
154
|
+
'.swipe-item-active-bullet': {
|
155
|
+
backgroundColor: `${swiper === null || swiper === void 0 ? void 0 : swiper.dotsActiveColor}!important`,
|
156
|
+
opacity: 1
|
157
|
+
}
|
158
|
+
}))) },
|
149
159
|
react_1.default.createElement(react_1.default.Fragment, null, (_x = product === null || product === void 0 ? void 0 : product.homePage) === null || _x === void 0 ? void 0 : _x.map((src) => {
|
150
160
|
var _a;
|
151
161
|
return (react_1.default.createElement(react_2.SwiperSlide, { key: src },
|
@@ -232,5 +232,18 @@ declare const _default: ({
|
|
232
232
|
name: string[];
|
233
233
|
text?: undefined;
|
234
234
|
})[];
|
235
|
+
} | {
|
236
|
+
title: string;
|
237
|
+
child: ({
|
238
|
+
label: string;
|
239
|
+
name: string[];
|
240
|
+
type: string;
|
241
|
+
addonAfter?: undefined;
|
242
|
+
} | {
|
243
|
+
label: string;
|
244
|
+
name: string[];
|
245
|
+
type: string;
|
246
|
+
addonAfter: string;
|
247
|
+
})[];
|
235
248
|
})[];
|
236
249
|
export default _default;
|
@@ -328,5 +328,36 @@ exports.default = [
|
|
328
328
|
name: ['props', 'iframeBgColor']
|
329
329
|
}
|
330
330
|
]
|
331
|
+
},
|
332
|
+
{
|
333
|
+
title: '轮播指示器',
|
334
|
+
child: [
|
335
|
+
{
|
336
|
+
label: '背景色',
|
337
|
+
name: ['props', 'swiper', 'dotsBgColor'],
|
338
|
+
type: 'Color'
|
339
|
+
},
|
340
|
+
{
|
341
|
+
label: '选中色',
|
342
|
+
name: ['props', 'swiper', 'dotsActiveColor'],
|
343
|
+
type: 'Color'
|
344
|
+
},
|
345
|
+
{
|
346
|
+
label: '底边距',
|
347
|
+
name: ['props', 'swiper', 'dotsMarginBottom'],
|
348
|
+
type: 'Number',
|
349
|
+
addonAfter: 'px'
|
350
|
+
}
|
351
|
+
]
|
352
|
+
},
|
353
|
+
{
|
354
|
+
title: '关闭按钮',
|
355
|
+
child: [
|
356
|
+
{
|
357
|
+
label: '跟随弹窗滚动',
|
358
|
+
type: 'Switch',
|
359
|
+
name: ['props', 'enableFixedCloseButton']
|
360
|
+
}
|
361
|
+
]
|
331
362
|
}
|
332
363
|
];
|
@@ -21,6 +21,9 @@ export interface ICommodityDetailDiroNewProps {
|
|
21
21
|
dotsAlign: 'left' | 'center' | 'right';
|
22
22
|
delay: number;
|
23
23
|
translateY?: number;
|
24
|
+
dotsBgColor?: string;
|
25
|
+
dotsActiveColor?: string;
|
26
|
+
dotsMarginBottom?: number;
|
24
27
|
};
|
25
28
|
commodityStyles?: {
|
26
29
|
title: CSSProperties;
|
@@ -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) => {
|
@@ -125,11 +125,21 @@ Made in Italy` })));
|
|
125
125
|
react_1.default.createElement("div", { style: { position: 'relative' } },
|
126
126
|
product && ((_w = product === null || product === void 0 ? void 0 : product.homePage) === null || _w === void 0 ? void 0 : _w.length) > 0 && (react_1.default.createElement(react_2.Swiper, { height: height, modules: [modules_1.Pagination, modules_1.Autoplay], pagination: {
|
127
127
|
clickable: true,
|
128
|
-
bulletActiveClass: '
|
128
|
+
bulletActiveClass: 'swipe-item-active-bullet',
|
129
129
|
clickableClass: getDotsAlign
|
130
130
|
}, loop: true, autoplay: {
|
131
131
|
delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
|
132
|
-
}, ref: ref
|
132
|
+
}, ref: ref, className: (0, css_1.css)(Object.assign(Object.assign({ '.swiper-pagination': Object.assign(Object.assign({}, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom) && { bottom: swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom })), { fontSize: '14px' }) }, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
|
133
|
+
'.swiper-pagination-bullet': {
|
134
|
+
backgroundColor: swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor,
|
135
|
+
opacity: 1
|
136
|
+
}
|
137
|
+
})), ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsActiveColor) && {
|
138
|
+
'.swipe-item-active-bullet': {
|
139
|
+
backgroundColor: `${swiper === null || swiper === void 0 ? void 0 : swiper.dotsActiveColor}!important`,
|
140
|
+
opacity: 1
|
141
|
+
}
|
142
|
+
}))) }, (_x = product === null || product === void 0 ? void 0 : product.homePage) === null || _x === void 0 ? void 0 : _x.map((src) => {
|
133
143
|
var _a;
|
134
144
|
return (react_1.default.createElement(react_2.SwiperSlide, { key: src },
|
135
145
|
react_1.default.createElement("div", { style: {
|
@@ -187,7 +197,8 @@ Made in Italy` })));
|
|
187
197
|
__html: (0, tool_1.setFontForText)((_3 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _3 !== void 0 ? _3 : 'Shop now', buttonStyle)
|
188
198
|
} }))),
|
189
199
|
productInfoText({ isPost }))),
|
190
|
-
react_1.default.createElement(Modal_1.default, { visible: showModal, onClose: () => setShowModal(false) },
|
200
|
+
react_1.default.createElement(Modal_1.default, { visible: showModal, onClose: () => setShowModal(false) },
|
201
|
+
react_1.default.createElement("div", { style: { paddingTop: '20px' } }, productInfoText({ isPost: false }))),
|
191
202
|
react_1.default.createElement(Modal_1.default, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
|
192
203
|
react_1.default.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
|
193
204
|
react_1.default.createElement("iframe", { src: iframeUrl, style: {
|
@@ -220,5 +220,18 @@ declare const _default: ({
|
|
220
220
|
name: string[];
|
221
221
|
text?: undefined;
|
222
222
|
})[];
|
223
|
+
} | {
|
224
|
+
title: string;
|
225
|
+
child: ({
|
226
|
+
label: string;
|
227
|
+
name: string[];
|
228
|
+
type: string;
|
229
|
+
addonAfter?: undefined;
|
230
|
+
} | {
|
231
|
+
label: string;
|
232
|
+
name: string[];
|
233
|
+
type: string;
|
234
|
+
addonAfter: string;
|
235
|
+
})[];
|
223
236
|
})[];
|
224
237
|
export default _default;
|
@@ -311,5 +311,36 @@ exports.default = [
|
|
311
311
|
name: ['props', 'iframeBgColor']
|
312
312
|
}
|
313
313
|
]
|
314
|
+
},
|
315
|
+
{
|
316
|
+
title: '轮播指示器',
|
317
|
+
child: [
|
318
|
+
{
|
319
|
+
label: '背景色',
|
320
|
+
name: ['props', 'swiper', 'dotsBgColor'],
|
321
|
+
type: 'Color'
|
322
|
+
},
|
323
|
+
{
|
324
|
+
label: '选中色',
|
325
|
+
name: ['props', 'swiper', 'dotsActiveColor'],
|
326
|
+
type: 'Color'
|
327
|
+
},
|
328
|
+
{
|
329
|
+
label: '底边距',
|
330
|
+
name: ['props', 'swiper', 'dotsMarginBottom'],
|
331
|
+
type: 'Number',
|
332
|
+
addonAfter: 'px'
|
333
|
+
}
|
334
|
+
]
|
335
|
+
},
|
336
|
+
{
|
337
|
+
title: '关闭按钮',
|
338
|
+
child: [
|
339
|
+
{
|
340
|
+
label: '跟随弹窗滚动',
|
341
|
+
type: 'Switch',
|
342
|
+
name: ['props', 'enableFixedCloseButton']
|
343
|
+
}
|
344
|
+
]
|
314
345
|
}
|
315
346
|
];
|
package/package.json
CHANGED
@@ -1,111 +1,111 @@
|
|
1
|
-
{
|
2
|
-
"name": "pb-sxp-ui",
|
3
|
-
"version": "1.
|
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.4.1",
|
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
|
+
}
|