@pisell/private-materials 3.0.152 → 3.0.154

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.
@@ -88,6 +88,6 @@ export var isBooking4Shop = function isBooking4Shop(shopId, renderType) {
88
88
  if (renderType === 'eventBooking') {
89
89
  return false;
90
90
  }
91
- var booking4Shops = [1350, 1401, 3013, 7154];
91
+ var booking4Shops = [1350, 1401, 3013, 7154, 7572];
92
92
  return booking4Shops.includes(shopId);
93
93
  };
@@ -222,7 +222,7 @@ var Info = function Info(_ref) {
222
222
  },
223
223
  is_eject: isEject ? 1 : 0
224
224
  },
225
- callback: function callback(e) {
225
+ callback: function callback(e, extension_type, detail) {
226
226
  // 防止选择商品弹窗多次触发callback
227
227
  if (lock) {
228
228
  return;
@@ -233,7 +233,7 @@ var Info = function Info(_ref) {
233
233
  setTimeout(function () {
234
234
  lock = false;
235
235
  }, 2000);
236
- var cacheItem = _objectSpread(_objectSpread({}, item), {}, {
236
+ var cacheItem = _objectSpread(_objectSpread({}, detail || item), {}, {
237
237
  product_id: item.id,
238
238
  _id: getUniqueId(),
239
239
  _key: e.key,
@@ -301,7 +301,6 @@ var Info = function Info(_ref) {
301
301
  return isIncludes(item.title);
302
302
  } : undefined);
303
303
  }, [search, (_state$service2 = state.service) === null || _state$service2 === void 0 ? void 0 : _state$service2.services]);
304
- console.log('state.service.renderList', renderList);
305
304
  var isService = useMemo(function () {
306
305
  return state.service.value.length > 0;
307
306
  }, [state.service.value]);
@@ -83,7 +83,7 @@ var isBooking4Shop = (shopId, renderType) => {
83
83
  if (renderType === "eventBooking") {
84
84
  return false;
85
85
  }
86
- const booking4Shops = [1350, 1401, 3013, 7154];
86
+ const booking4Shops = [1350, 1401, 3013, 7154, 7572];
87
87
  return booking4Shops.includes(shopId);
88
88
  };
89
89
  // Annotate the CommonJS export names for ESM import in node:
@@ -179,7 +179,7 @@ var Info = ({ onEdit }) => {
179
179
  },
180
180
  is_eject: isEject ? 1 : 0
181
181
  },
182
- callback: (e) => {
182
+ callback: (e, extension_type, detail) => {
183
183
  var _a2;
184
184
  if (lock) {
185
185
  return;
@@ -189,7 +189,7 @@ var Info = ({ onEdit }) => {
189
189
  lock = false;
190
190
  }, 2e3);
191
191
  let cacheItem = {
192
- ...item,
192
+ ...detail || item,
193
193
  product_id: item.id,
194
194
  _id: (0, import_utils4.getUniqueId)(),
195
195
  _key: e.key,
@@ -252,7 +252,6 @@ var Info = ({ onEdit }) => {
252
252
  search ? (item) => isIncludes(item.title) : void 0
253
253
  );
254
254
  }, [search, (_a = state.service) == null ? void 0 : _a.services]);
255
- console.log("state.service.renderList", renderList);
256
255
  const isService = (0, import_react.useMemo)(() => {
257
256
  return state.service.value.length > 0;
258
257
  }, [state.service.value]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.152",
3
+ "version": "3.0.154",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -60,9 +60,9 @@
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
62
  "@pisell/utils": "1.0.42",
63
+ "@pisell/materials": "3.0.48",
63
64
  "@pisell/date-picker": "1.0.100",
64
- "@pisell/icon": "0.0.11",
65
- "@pisell/materials": "3.0.48"
65
+ "@pisell/icon": "0.0.11"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",