pb-sxp-ui 1.0.58 → 1.0.60
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 +28 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +28 -13
- 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 +28 -13
- 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/Popup/index.js +4 -3
- package/es/materials/sxp/popup/AppointForm/index.d.ts +1 -0
- package/es/materials/sxp/popup/AppointForm/index.js +4 -2
- package/es/materials/sxp/popup/CommodityDetail/index.js +4 -4
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/es/materials/sxp/popup/Prompt/index.d.ts +3 -0
- package/es/materials/sxp/popup/Prompt/index.js +16 -2
- package/lib/core/components/SxpPageRender/Popup/index.js +4 -3
- package/lib/materials/sxp/popup/AppointForm/index.d.ts +1 -0
- package/lib/materials/sxp/popup/AppointForm/index.js +4 -2
- package/lib/materials/sxp/popup/CommodityDetail/index.js +4 -4
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/lib/materials/sxp/popup/Prompt/index.d.ts +3 -0
- package/lib/materials/sxp/popup/Prompt/index.js +16 -2
- package/package.json +115 -115
package/dist/index.js
CHANGED
@@ -1106,7 +1106,7 @@ function useEventReport() {
|
|
1106
1106
|
}
|
1107
1107
|
|
1108
1108
|
const AppointForm$1 = (_a) => {
|
1109
|
-
var { columns, style, title, textStyle, submitBgColor, submitColor, submitText, layoutType, isExternalLink, onClick, onClose } = _a, props = __rest(_a, ["columns", "style", "title", "textStyle", "submitBgColor", "submitColor", "submitText", "layoutType", "isExternalLink", "onClick", "onClose"]);
|
1109
|
+
var { columns, style, title, textStyle, submitBgColor, submitColor, submitText, layoutType, isExternalLink, isPopup, onClick, onClose } = _a, props = __rest(_a, ["columns", "style", "title", "textStyle", "submitBgColor", "submitColor", "submitText", "layoutType", "isExternalLink", "isPopup", "onClick", "onClose"]);
|
1110
1110
|
const { submitForm, popupDetailData } = useSxpDataSource();
|
1111
1111
|
const { jumpToWeb } = useEventReport();
|
1112
1112
|
const formRef = useRef();
|
@@ -1171,7 +1171,9 @@ const AppointForm$1 = (_a) => {
|
|
1171
1171
|
const position = popupDetailData === null || popupDetailData === void 0 ? void 0 : popupDetailData.index;
|
1172
1172
|
jumpToWeb(data, product, cta, position);
|
1173
1173
|
}
|
1174
|
-
|
1174
|
+
if (!isPopup) {
|
1175
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
1176
|
+
}
|
1175
1177
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
1176
1178
|
}
|
1177
1179
|
}), 1000);
|
@@ -8427,10 +8429,10 @@ const CommodityDetail$1 = (_a) => {
|
|
8427
8429
|
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'),
|
8428
8430
|
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),
|
8429
8431
|
React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
|
8430
|
-
React.createElement(ExpandableText$1, { 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
|
8431
|
-
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
8432
|
-
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
8433
|
-
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|
8432
|
+
React.createElement(ExpandableText$1, { 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
|
8433
|
+
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
8434
|
+
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
8435
|
+
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|
8434
8436
|
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 }))));
|
8435
8437
|
};
|
8436
8438
|
const renderBtn = () => {
|
@@ -8608,10 +8610,22 @@ const getMediaValueByMode = (obj) => {
|
|
8608
8610
|
};
|
8609
8611
|
|
8610
8612
|
const Prompt$1 = (_a) => {
|
8611
|
-
var { content, btnText, style, icon, onClick } = _a, props = __rest(_a, ["content", "btnText", "style", "icon", "onClick"]);
|
8613
|
+
var { content, btnText, style, icon, isPopup, isExternalLink, onClose, onClick } = _a, props = __rest(_a, ["content", "btnText", "style", "icon", "isPopup", "isExternalLink", "onClose", "onClick"]);
|
8614
|
+
const { popupDetailData } = useSxpDataSource();
|
8615
|
+
const { jumpToWeb } = useEventReport();
|
8612
8616
|
const iconSrc = typeof icon === 'string' ? icon : getMediaValueByMode(icon);
|
8613
8617
|
const handleOk = () => {
|
8614
|
-
|
8618
|
+
var _a, _b, _c;
|
8619
|
+
if (isExternalLink) {
|
8620
|
+
const data = popupDetailData;
|
8621
|
+
const product = (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.bindProduct;
|
8622
|
+
const cta = (_c = (_b = data === null || data === void 0 ? void 0 : data.video) === null || _b === void 0 ? void 0 : _b.bindProduct) === null || _c === void 0 ? void 0 : _c.bindCta;
|
8623
|
+
const position = popupDetailData === null || popupDetailData === void 0 ? void 0 : popupDetailData.index;
|
8624
|
+
jumpToWeb(data, product, cta, position);
|
8625
|
+
}
|
8626
|
+
if (!isPopup) {
|
8627
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
8628
|
+
}
|
8615
8629
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
8616
8630
|
};
|
8617
8631
|
return (React.createElement("div", Object.assign({ className: `pb-prompt ${css(Object.assign({}, style))}` }, props),
|
@@ -8888,7 +8902,7 @@ const CommodityDetailDiroNew$1 = (_a) => {
|
|
8888
8902
|
const productInfoText = ({ isPost }) => {
|
8889
8903
|
return (React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
|
8890
8904
|
React.createElement(ExpandableText$1, { 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) ||
|
8891
|
-
`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
|
8905
|
+
`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
|
8892
8906
|
Made in Italy` })));
|
8893
8907
|
};
|
8894
8908
|
return (React.createElement("div", { className: 'pb-commondityDiroNew' },
|
@@ -13557,7 +13571,7 @@ var index$1 = memo(DiyPortalPreview);
|
|
13557
13571
|
* @Author: binruan@chatlabs.com
|
13558
13572
|
* @Date: 2023-10-31 10:56:01
|
13559
13573
|
* @LastEditors: binruan@chatlabs.com
|
13560
|
-
* @LastEditTime: 2024-05-
|
13574
|
+
* @LastEditTime: 2024-05-14 10:12:52
|
13561
13575
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
|
13562
13576
|
*
|
13563
13577
|
*/
|
@@ -13603,13 +13617,14 @@ const Popup = () => {
|
|
13603
13617
|
const renderPopupDetail = useMemo(() => {
|
13604
13618
|
var _a, _b, _c;
|
13605
13619
|
return (_c = (_b = (_a = schema === null || schema === void 0 ? void 0 : schema.sxpPageConf) === null || _a === void 0 ? void 0 : _a.globalConfig) === null || _b === void 0 ? void 0 : _b.popupList) === null || _c === void 0 ? void 0 : _c.map((value, index) => {
|
13606
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
13620
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
13607
13621
|
if ((value === null || value === void 0 ? void 0 : value.id) === (popup === null || popup === void 0 ? void 0 : popup.id)) {
|
13608
13622
|
const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
|
13609
13623
|
const Component = withBindDataSource(t);
|
13610
13624
|
const isExternalLink = ((_d = (_c = (_b = value === null || value === void 0 ? void 0 : value.item) === null || _b === void 0 ? void 0 : _b.event) === null || _c === void 0 ? void 0 : _c.onClick) === null || _d === void 0 ? void 0 : _d.linkType) === 'externalLink';
|
13611
|
-
const
|
13612
|
-
|
13625
|
+
const isPopup = ((_g = (_f = (_e = value === null || value === void 0 ? void 0 : value.item) === null || _e === void 0 ? void 0 : _e.event) === null || _f === void 0 ? void 0 : _f.onClick) === null || _g === void 0 ? void 0 : _g.linkType) === 'popup';
|
13626
|
+
const defaulSetting = (_h = t === null || t === void 0 ? void 0 : t.extend) === null || _h === void 0 ? void 0 : _h.defaulSetting;
|
13627
|
+
return (React.createElement(Component, Object.assign({ key: index, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_j = value === null || value === void 0 ? void 0 : value.item) === null || _j === void 0 ? void 0 : _j.style), { width: '100%', height: '80vh', overflow: 'auto' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_k = value === null || value === void 0 ? void 0 : value.item) === null || _k === void 0 ? void 0 : _k.textStyle), bindDatas: (_m = (_l = value === null || value === void 0 ? void 0 : value.item) === null || _l === void 0 ? void 0 : _l.bindDatas) !== null && _m !== void 0 ? _m : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_o = value === null || value === void 0 ? void 0 : value.item) === null || _o === void 0 ? void 0 : _o.props, { event: ((_p = value === null || value === void 0 ? void 0 : value.item) === null || _p === void 0 ? void 0 : _p.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, isExternalLink: isExternalLink, isPopup: isPopup, onClose: handleClose })));
|
13613
13628
|
}
|
13614
13629
|
else {
|
13615
13630
|
return React.createElement(React.Fragment, null);
|