pb-sxp-ui 1.0.53 → 1.0.55

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.
Files changed (37) hide show
  1. package/dist/index.cjs +112 -62
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +112 -62
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.cjs +3 -3
  6. package/dist/index.min.cjs.map +1 -1
  7. package/dist/index.min.js +3 -3
  8. package/dist/index.min.js.map +1 -1
  9. package/dist/pb-ui.js +112 -62
  10. package/dist/pb-ui.js.map +1 -1
  11. package/dist/pb-ui.min.js +3 -3
  12. package/dist/pb-ui.min.js.map +1 -1
  13. package/es/core/components/SxpPageCore/index.d.ts +1 -0
  14. package/es/core/components/SxpPageCore/index.js +2 -2
  15. package/es/core/components/SxpPageRender/Popup/index.js +1 -1
  16. package/es/core/components/SxpPageRender/VideoWidget/index.js +10 -2
  17. package/es/core/components/SxpPageRender/index.js +16 -2
  18. package/es/core/context/SxpDataSourceProvider.d.ts +7 -0
  19. package/es/core/context/SxpDataSourceProvider.js +15 -2
  20. package/es/materials/sxp/popup/AppointForm/index.d.ts +1 -0
  21. package/es/materials/sxp/popup/AppointForm/index.js +14 -9
  22. package/es/materials/sxp/popup/CommodityDetail/index.js +8 -1
  23. package/es/materials/sxp/popup/CommodityDetailDiro/index.js +8 -1
  24. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +8 -1
  25. package/lib/core/components/SxpPageCore/index.d.ts +1 -0
  26. package/lib/core/components/SxpPageCore/index.js +2 -2
  27. package/lib/core/components/SxpPageRender/Popup/index.js +1 -1
  28. package/lib/core/components/SxpPageRender/VideoWidget/index.js +10 -2
  29. package/lib/core/components/SxpPageRender/index.js +16 -2
  30. package/lib/core/context/SxpDataSourceProvider.d.ts +7 -0
  31. package/lib/core/context/SxpDataSourceProvider.js +15 -2
  32. package/lib/materials/sxp/popup/AppointForm/index.d.ts +1 -0
  33. package/lib/materials/sxp/popup/AppointForm/index.js +14 -9
  34. package/lib/materials/sxp/popup/CommodityDetail/index.js +8 -1
  35. package/lib/materials/sxp/popup/CommodityDetailDiro/index.js +8 -1
  36. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +8 -1
  37. package/package.json +1 -1
@@ -15,7 +15,7 @@ const CommodityDetailDiro = (_a) => {
15
15
  var { style, isDefault, rec, viewTime, isPost, bottom_image, index } = _a, props = tslib_1.__rest(_a, ["style", "isDefault", "rec", "viewTime", "isPost", "bottom_image", "index"]);
16
16
  const [spread, setSpread] = (0, react_1.useState)(true);
17
17
  const { sxpParameter } = (0, hooks_1.useSxpDataSource)();
18
- const { popupDetailData, bffEventReport, isPreview, swiperRef, waterFallData } = (0, hooks_1.useSxpDataSource)();
18
+ const { popupDetailData, bffEventReport, isPreview, swiperRef, bffFbReport } = (0, hooks_1.useSxpDataSource)();
19
19
  const { jumpToWeb, productView } = (0, useEventReport_1.useEventReport)();
20
20
  const scrollRef = (0, react_1.useRef)(null);
21
21
  const touchRef = (0, react_1.useRef)(null);
@@ -37,6 +37,13 @@ const CommodityDetailDiro = (_a) => {
37
37
  window.location.href = window.getJointUtmLink(product.link);
38
38
  }
39
39
  };
40
+ (0, react_1.useEffect)(() => {
41
+ if (!isPost) {
42
+ bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
43
+ eventName: 'ProductView'
44
+ });
45
+ }
46
+ }, [isPost, bffFbReport]);
40
47
  (0, react_1.useEffect)(() => {
41
48
  const initTime = () => {
42
49
  curTimeRef.current = new Date();
@@ -16,7 +16,7 @@ const CommodityDetailDiroNew = (_a) => {
16
16
  var { style, isDefault, rec, viewTime, isPost, bottom_image, tipText, swiper, commodityStyles, buttonStyle, index } = _a, props = tslib_1.__rest(_a, ["style", "isDefault", "rec", "viewTime", "isPost", "bottom_image", "tipText", "swiper", "commodityStyles", "buttonStyle", "index"]);
17
17
  const [spread, setSpread] = (0, react_1.useState)(true);
18
18
  const { sxpParameter } = (0, hooks_1.useSxpDataSource)();
19
- const { popupDetailData, bffEventReport, isPreview, swiperRef, waterFallData } = (0, hooks_1.useSxpDataSource)();
19
+ const { popupDetailData, bffEventReport, isPreview, swiperRef, bffFbReport } = (0, hooks_1.useSxpDataSource)();
20
20
  const { jumpToWeb, productView } = (0, useEventReport_1.useEventReport)();
21
21
  const scrollRef = (0, react_1.useRef)(null);
22
22
  const touchRef = (0, react_1.useRef)(null);
@@ -39,6 +39,13 @@ const CommodityDetailDiroNew = (_a) => {
39
39
  window.location.href = window.getJointUtmLink(product.link);
40
40
  }
41
41
  };
42
+ (0, react_1.useEffect)(() => {
43
+ if (!isPost) {
44
+ bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
45
+ eventName: 'ProductView'
46
+ });
47
+ }
48
+ }, [isPost, bffFbReport]);
42
49
  (0, react_1.useEffect)(() => {
43
50
  const initTime = () => {
44
51
  curTimeRef.current = new Date();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",