@pisell/private-materials 6.6.1 → 6.6.2

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.
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<any>;
7
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
8
  };
9
9
  export default useSendModal;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -17,7 +17,7 @@ export declare const useWalletPass: (props: {
17
17
  cardData: any;
18
18
  handleSelectWallet: (value: number[]) => void;
19
19
  selectedWalletIds: any[];
20
- expiredWalletIds: any;
20
+ expiredWalletIds: any[];
21
21
  expiredWalletData: any;
22
22
  disabledWalletData: any[];
23
23
  clearAllSelectedWallet: () => void;
@@ -313,18 +313,19 @@ var AddSerivce = function AddSerivce(props) {
313
313
  cacheItem.autoClose = false;
314
314
  }
315
315
  if (!cacheItem.autoClose) {
316
- _context2.next = 36;
316
+ _context2.next = 37;
317
317
  break;
318
318
  }
319
319
  cacheItem.autoClose = false;
320
320
  cacheItem._serviceKey = genServiceKey(cacheItem);
321
+ cacheItem._holderKey = genHolderKey(cacheItem);
321
322
  if (!isMultiDay) {
322
- _context2.next = 29;
323
+ _context2.next = 30;
323
324
  break;
324
325
  }
325
- _context2.next = 29;
326
+ _context2.next = 30;
326
327
  return getMultiDayCacheItem();
327
- case 29:
328
+ case 30:
328
329
  _addService2 = addService(_toConsumableArray(stateRef.current.service.value), cacheItem, stateRef.current, isMultiDay), _list = _addService2.list, quantity = _addService2.quantity;
329
330
  if (!notShowToast) {
330
331
  handleAddToast(cacheItem.title, quantity || 1);
@@ -345,7 +346,8 @@ var AddSerivce = function AddSerivce(props) {
345
346
  price: s === null || s === void 0 ? void 0 : s.price,
346
347
  _id: s === null || s === void 0 ? void 0 : s._id,
347
348
  _key: s === null || s === void 0 ? void 0 : s._key,
348
- _serviceKey: s === null || s === void 0 ? void 0 : s._serviceKey
349
+ _serviceKey: s === null || s === void 0 ? void 0 : s._serviceKey,
350
+ _holderKey: s === null || s === void 0 ? void 0 : s._holderKey
349
351
  };
350
352
  });
351
353
  sendData = {
@@ -377,17 +379,17 @@ var AddSerivce = function AddSerivce(props) {
377
379
  changeService: false
378
380
  }
379
381
  });
380
- _context2.next = 42;
382
+ _context2.next = 43;
381
383
  break;
382
- case 36:
384
+ case 37:
383
385
  (_window$openBookingEd = (_window = window).openBookingEditModal) === null || _window$openBookingEd === void 0 || _window$openBookingEd.call(_window);
384
386
  if (!isMultiDay) {
385
- _context2.next = 40;
387
+ _context2.next = 41;
386
388
  break;
387
389
  }
388
- _context2.next = 40;
390
+ _context2.next = 41;
389
391
  return getMultiDayCacheItem(true);
390
- case 40:
392
+ case 41:
391
393
  dispatch({
392
394
  type: 'setService',
393
395
  payload: {
@@ -398,7 +400,7 @@ var AddSerivce = function AddSerivce(props) {
398
400
  }
399
401
  });
400
402
  onEdit === null || onEdit === void 0 || onEdit(cacheItem);
401
- case 42:
403
+ case 43:
402
404
  case "end":
403
405
  return _context2.stop();
404
406
  }
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<any>;
7
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
8
  };
9
9
  export default useSendModal;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -17,7 +17,7 @@ export declare const useWalletPass: (props: {
17
17
  cardData: any;
18
18
  handleSelectWallet: (value: number[]) => void;
19
19
  selectedWalletIds: any[];
20
- expiredWalletIds: any;
20
+ expiredWalletIds: any[];
21
21
  expiredWalletData: any;
22
22
  disabledWalletData: any[];
23
23
  clearAllSelectedWallet: () => void;
@@ -265,6 +265,7 @@ var AddSerivce = (props) => {
265
265
  if (cacheItem.autoClose) {
266
266
  cacheItem.autoClose = false;
267
267
  cacheItem._serviceKey = (0, import_utils6.genServiceKey)(cacheItem);
268
+ cacheItem._holderKey = (0, import_utils6.genHolderKey)(cacheItem);
268
269
  if (isMultiDay) {
269
270
  await getMultiDayCacheItem();
270
271
  }
@@ -295,7 +296,8 @@ var AddSerivce = (props) => {
295
296
  price: s == null ? void 0 : s.price,
296
297
  _id: s == null ? void 0 : s._id,
297
298
  _key: s == null ? void 0 : s._key,
298
- _serviceKey: s == null ? void 0 : s._serviceKey
299
+ _serviceKey: s == null ? void 0 : s._serviceKey,
300
+ _holderKey: s == null ? void 0 : s._holderKey
299
301
  };
300
302
  });
301
303
  const sendData = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.6.1",
3
+ "version": "6.6.2",
4
4
  "scripts": {
5
5
  "dev": "father dev",
6
6
  "build": "father build",