@pisell/private-materials 6.8.19 → 6.8.20

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.
@@ -1783,10 +1783,8 @@ var Footer = function Footer(props) {
1783
1783
  clearAllScanListenersTaskQueue = _useScanManager2.clearAllScanListenersTaskQueue;
1784
1784
  // 清空所有内容并重置购物车
1785
1785
  var handleClearAllAndReset = function handleClearAllAndReset() {
1786
- var _shopDiscount$clear;
1787
- // setTimeout(() => {
1788
- // (window as any)?.shopApi?.bookingTicket?.clearAllCart();
1789
- // }, 0);
1786
+ var _window8, _shopDiscount$clear;
1787
+ (_window8 = window) === null || _window8 === void 0 || (_window8 = _window8.shopApi) === null || _window8 === void 0 || (_window8 = _window8.bookingTicket) === null || _window8 === void 0 || _window8.clearAllCart();
1790
1788
  clearAllScanListenersTaskQueue();
1791
1789
  // 清空服务项目
1792
1790
  dispatch({
@@ -1286,7 +1286,8 @@ var Footer = (props) => {
1286
1286
  const shopDiscount = (0, import_useShopDiscountModule.useShopDiscountModule)();
1287
1287
  const { clearAllScanListenersTaskQueue } = (0, import_useScanManager.default)();
1288
1288
  const handleClearAllAndReset = () => {
1289
- var _a2;
1289
+ var _a2, _b2, _c2;
1290
+ (_b2 = (_a2 = window == null ? void 0 : window.shopApi) == null ? void 0 : _a2.bookingTicket) == null ? void 0 : _b2.clearAllCart();
1290
1291
  clearAllScanListenersTaskQueue();
1291
1292
  dispatch({
1292
1293
  type: "setService",
@@ -1324,7 +1325,7 @@ var Footer = (props) => {
1324
1325
  orderNote: ""
1325
1326
  }
1326
1327
  });
1327
- (_a2 = shopDiscount == null ? void 0 : shopDiscount.clear) == null ? void 0 : _a2.call(shopDiscount);
1328
+ (_c2 = shopDiscount == null ? void 0 : shopDiscount.clear) == null ? void 0 : _c2.call(shopDiscount);
1328
1329
  setEditOrderId(0);
1329
1330
  };
1330
1331
  const setEditCartMode = (order_id2, payData, closeModal = false) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.8.19",
3
+ "version": "6.8.20",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -76,10 +76,10 @@
76
76
  "react-infinite-scroll-component": "^6.1.0",
77
77
  "react-resizable": "^3.0.5",
78
78
  "styled-components": "^6.0.0-rc.3",
79
- "@pisell/date-picker": "3.0.7",
80
- "@pisell/icon": "0.0.11",
81
79
  "@pisell/materials": "6.8.6",
82
- "@pisell/utils": "3.0.2"
80
+ "@pisell/icon": "0.0.11",
81
+ "@pisell/utils": "3.0.2",
82
+ "@pisell/date-picker": "3.0.7"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "react": "^18.0.0",