@pisell/private-materials 6.11.51 → 6.11.52
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +1 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +18 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/utils.d.ts +1 -1
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/pro/skuDetailModal/index.js +2 -8
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +1 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +17 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/utils.d.ts +1 -1
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/pro/skuDetailModal/index.js +2 -8
- package/package.json +3 -3
|
@@ -175,10 +175,10 @@ export declare const getProductTotalPrice: (item: any, options?: {
|
|
|
175
175
|
export declare const getDuration: (duration: number | {
|
|
176
176
|
type: string;
|
|
177
177
|
value: number;
|
|
178
|
-
}) => number |
|
|
178
|
+
}) => number | {
|
|
179
179
|
type: string;
|
|
180
180
|
value: number;
|
|
181
|
-
};
|
|
181
|
+
} | "flexible";
|
|
182
182
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
183
183
|
export declare const getIsEdit: (state: any) => boolean;
|
|
184
184
|
export {};
|
|
@@ -8,7 +8,7 @@ export declare const useCupAction: () => {
|
|
|
8
8
|
* @return {*}
|
|
9
9
|
*/
|
|
10
10
|
export declare const useBatchCupAction: () => {
|
|
11
|
-
run: (this: unknown, eco_cup_ids:
|
|
11
|
+
run: (this: unknown, eco_cup_ids: number[] | string[]) => Promise<boolean>;
|
|
12
12
|
loading: boolean;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
11
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "
|
|
12
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
13
13
|
[keys: string]: unknown;
|
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
|
15
15
|
onClose: () => void;
|
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "
|
|
14
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
|
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly" | "huifu">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -299,15 +299,15 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
299
299
|
name?: string | undefined;
|
|
300
300
|
symbol?: string | undefined;
|
|
301
301
|
amount?: string | number | undefined;
|
|
302
|
-
mode?: "
|
|
302
|
+
mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
|
|
303
303
|
order_id?: string | number | undefined;
|
|
304
|
-
eftpos?: "
|
|
305
|
-
action?: "
|
|
304
|
+
eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | "huifu" | undefined;
|
|
305
|
+
action?: "pay" | "amount" | "deviceList" | undefined;
|
|
306
306
|
key?: number | undefined;
|
|
307
307
|
step?: number | undefined;
|
|
308
308
|
title?: string | undefined;
|
|
309
309
|
subTitle?: string | undefined;
|
|
310
|
-
type?: "
|
|
310
|
+
type?: "step" | "unset" | undefined;
|
|
311
311
|
render?: boolean | undefined;
|
|
312
312
|
net?: boolean | undefined;
|
|
313
313
|
component?: string | undefined;
|
|
@@ -20,6 +20,7 @@ import useEngineContext, { usePlatform } from "../../../../hooks/useEngineContex
|
|
|
20
20
|
import dayjs from 'dayjs';
|
|
21
21
|
import useLogger from "../../../../hooks/useLogger";
|
|
22
22
|
import usePromotion from "../../../booking/hooks/usePromotion";
|
|
23
|
+
import { getUniqueId } from "@pisell/utils";
|
|
23
24
|
// 等待函数
|
|
24
25
|
var sleep = function sleep(ms) {
|
|
25
26
|
return new Promise(function (resolve) {
|
|
@@ -46,6 +47,7 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
46
47
|
var logger = useLogger();
|
|
47
48
|
var _usePromotion = usePromotion(),
|
|
48
49
|
formatProductList = _usePromotion.formatProductList;
|
|
50
|
+
var useCurrentId = useRef(getUniqueId());
|
|
49
51
|
var app = getApp();
|
|
50
52
|
|
|
51
53
|
// 日程时间段列表 HH:mm格式
|
|
@@ -71,7 +73,17 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
71
73
|
}
|
|
72
74
|
});
|
|
73
75
|
_context.next = 6;
|
|
74
|
-
return bookingTicket.loadProducts(params
|
|
76
|
+
return bookingTicket.loadProducts(params, {
|
|
77
|
+
callback: function callback(res) {
|
|
78
|
+
var _res$data;
|
|
79
|
+
console.log(res, '1234321');
|
|
80
|
+
if (res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && _res$data.list) {
|
|
81
|
+
var _res$data2;
|
|
82
|
+
setProducts(formatProductList(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.list));
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
subscriberId: useCurrentId
|
|
86
|
+
});
|
|
75
87
|
case 6:
|
|
76
88
|
_products = _context.sent;
|
|
77
89
|
logger.addLog({
|
|
@@ -110,6 +122,11 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
110
122
|
return _ref2.apply(this, arguments);
|
|
111
123
|
};
|
|
112
124
|
}());
|
|
125
|
+
useEffect(function () {
|
|
126
|
+
return function () {
|
|
127
|
+
bookingTicket.unsubscribeProductQuery(useCurrentId);
|
|
128
|
+
};
|
|
129
|
+
}, []);
|
|
113
130
|
|
|
114
131
|
// 注册任务函数并在 scheduleTimePoints 改变时添加定时任务
|
|
115
132
|
useEffect(function () {
|
|
@@ -47,7 +47,7 @@ declare type ScanData = {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
50
|
-
searchType: "
|
|
50
|
+
searchType: "product" | "walletPass" | "wallet" | "customer" | "local_product";
|
|
51
51
|
data: any;
|
|
52
52
|
scanCode: string;
|
|
53
53
|
} | null;
|
|
@@ -14,7 +14,7 @@ export declare const getSkuCardConfig: (finalConfig: ProductCardConfig) => {
|
|
|
14
14
|
paddingY: number;
|
|
15
15
|
paddingX: number;
|
|
16
16
|
isBorderVisible: boolean;
|
|
17
|
-
layoutDirection: "
|
|
17
|
+
layoutDirection: "row" | "column";
|
|
18
18
|
};
|
|
19
19
|
skuActionConfig: {
|
|
20
20
|
isOpen: boolean;
|
|
@@ -3,6 +3,6 @@ export interface ImageUploadProps {
|
|
|
3
3
|
value?: string;
|
|
4
4
|
onChange?: (val: string) => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const getBaseTime: (size: number) =>
|
|
6
|
+
export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
|
|
7
7
|
declare const ImageUpload: React.FC<ImageUploadProps>;
|
|
8
8
|
export default ImageUpload;
|
|
@@ -31,6 +31,7 @@ import { Context as BookingContext } from "../../components/booking/info/model";
|
|
|
31
31
|
import useToast from "../../hooks/useToast";
|
|
32
32
|
import useLogger from "../../hooks/useLogger";
|
|
33
33
|
import { filterVariantGroupByVariants } from "../../components/shoppingCart/utils";
|
|
34
|
+
import { cloneDeep } from 'lodash';
|
|
34
35
|
var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
35
36
|
var _context$appHelper, _store$getState, _context$engine, _bookingState$booking3, _bookingState$booking6, _bookingState$booking9, _productData$_extend2, _bookingState$booking13, _bookingState$booking14;
|
|
36
37
|
var onConfirm = _ref.onConfirm,
|
|
@@ -376,7 +377,7 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
376
377
|
});
|
|
377
378
|
// edit 模式:直接使用传入的 ProductData
|
|
378
379
|
openParamsRef.current = null;
|
|
379
|
-
_data =
|
|
380
|
+
_data = cloneDeep(data); // 自定义格式化组合规格
|
|
380
381
|
variantData = formatVariant(config, _data === null || _data === void 0 ? void 0 : _data.variant, _data);
|
|
381
382
|
if (variantData) {
|
|
382
383
|
_data.variant_group = (variantData === null || variantData === void 0 ? void 0 : variantData.variant_group) || [];
|
|
@@ -1128,13 +1129,6 @@ function setHiddenStockAlertForToday(params) {
|
|
|
1128
1129
|
window.localStorage.setItem(key, getLocalDayKey());
|
|
1129
1130
|
} catch (error) {}
|
|
1130
1131
|
}
|
|
1131
|
-
function safeClone(value) {
|
|
1132
|
-
try {
|
|
1133
|
-
// eslint-disable-next-line no-undef
|
|
1134
|
-
if (typeof structuredClone === 'function') return structuredClone(value);
|
|
1135
|
-
} catch (error) {}
|
|
1136
|
-
return JSON.parse(JSON.stringify(value));
|
|
1137
|
-
}
|
|
1138
1132
|
|
|
1139
1133
|
/**
|
|
1140
1134
|
* @description
|
|
@@ -175,10 +175,10 @@ export declare const getProductTotalPrice: (item: any, options?: {
|
|
|
175
175
|
export declare const getDuration: (duration: number | {
|
|
176
176
|
type: string;
|
|
177
177
|
value: number;
|
|
178
|
-
}) => number |
|
|
178
|
+
}) => number | {
|
|
179
179
|
type: string;
|
|
180
180
|
value: number;
|
|
181
|
-
};
|
|
181
|
+
} | "flexible";
|
|
182
182
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
183
183
|
export declare const getIsEdit: (state: any) => boolean;
|
|
184
184
|
export {};
|
|
@@ -8,7 +8,7 @@ export declare const useCupAction: () => {
|
|
|
8
8
|
* @return {*}
|
|
9
9
|
*/
|
|
10
10
|
export declare const useBatchCupAction: () => {
|
|
11
|
-
run: (this: unknown, eco_cup_ids:
|
|
11
|
+
run: (this: unknown, eco_cup_ids: number[] | string[]) => Promise<boolean>;
|
|
12
12
|
loading: boolean;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
11
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "
|
|
12
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
13
13
|
[keys: string]: unknown;
|
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
|
15
15
|
onClose: () => void;
|
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "
|
|
14
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
|
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly" | "huifu">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -299,15 +299,15 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
299
299
|
name?: string | undefined;
|
|
300
300
|
symbol?: string | undefined;
|
|
301
301
|
amount?: string | number | undefined;
|
|
302
|
-
mode?: "
|
|
302
|
+
mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
|
|
303
303
|
order_id?: string | number | undefined;
|
|
304
|
-
eftpos?: "
|
|
305
|
-
action?: "
|
|
304
|
+
eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | "huifu" | undefined;
|
|
305
|
+
action?: "pay" | "amount" | "deviceList" | undefined;
|
|
306
306
|
key?: number | undefined;
|
|
307
307
|
step?: number | undefined;
|
|
308
308
|
title?: string | undefined;
|
|
309
309
|
subTitle?: string | undefined;
|
|
310
|
-
type?: "
|
|
310
|
+
type?: "step" | "unset" | undefined;
|
|
311
311
|
render?: boolean | undefined;
|
|
312
312
|
net?: boolean | undefined;
|
|
313
313
|
component?: string | undefined;
|
|
@@ -39,6 +39,7 @@ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContex
|
|
|
39
39
|
var import_dayjs = __toESM(require("dayjs"));
|
|
40
40
|
var import_useLogger = __toESM(require("../../../../hooks/useLogger"));
|
|
41
41
|
var import_usePromotion = __toESM(require("../../../booking/hooks/usePromotion"));
|
|
42
|
+
var import_utils = require("@pisell/utils");
|
|
42
43
|
var useProducts = (notAvailableRef) => {
|
|
43
44
|
var _a;
|
|
44
45
|
const bookingTicket = (0, import_bookingTicket.useBookingTicket)();
|
|
@@ -51,6 +52,7 @@ var useProducts = (notAvailableRef) => {
|
|
|
51
52
|
const { getApp } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
52
53
|
const logger = (0, import_useLogger.default)();
|
|
53
54
|
const { formatProductList } = (0, import_usePromotion.default)();
|
|
55
|
+
const useCurrentId = (0, import_react.useRef)((0, import_utils.getUniqueId)());
|
|
54
56
|
const app = getApp();
|
|
55
57
|
const [scheduleTimePoints, setScheduleTimePoints] = (0, import_react.useState)([]);
|
|
56
58
|
const scheduledTaskQueueIdRef = (0, import_react.useRef)("booking-schedule-products");
|
|
@@ -66,7 +68,16 @@ var useProducts = (notAvailableRef) => {
|
|
|
66
68
|
params
|
|
67
69
|
}
|
|
68
70
|
});
|
|
69
|
-
const products2 = await bookingTicket.loadProducts(params
|
|
71
|
+
const products2 = await bookingTicket.loadProducts(params, {
|
|
72
|
+
callback: (res) => {
|
|
73
|
+
var _a3, _b;
|
|
74
|
+
console.log(res, "1234321");
|
|
75
|
+
if ((_a3 = res == null ? void 0 : res.data) == null ? void 0 : _a3.list) {
|
|
76
|
+
setProducts(formatProductList((_b = res == null ? void 0 : res.data) == null ? void 0 : _b.list));
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
subscriberId: useCurrentId
|
|
80
|
+
});
|
|
70
81
|
logger.addLog({
|
|
71
82
|
title: "useProducts: getProducts 返回",
|
|
72
83
|
metadata: {
|
|
@@ -90,6 +101,11 @@ var useProducts = (notAvailableRef) => {
|
|
|
90
101
|
isFirstLoadRef.current = false;
|
|
91
102
|
}
|
|
92
103
|
});
|
|
104
|
+
(0, import_react.useEffect)(() => {
|
|
105
|
+
return () => {
|
|
106
|
+
bookingTicket.unsubscribeProductQuery(useCurrentId);
|
|
107
|
+
};
|
|
108
|
+
}, []);
|
|
93
109
|
(0, import_react.useEffect)(() => {
|
|
94
110
|
var _a2, _b, _c;
|
|
95
111
|
if (platform === "shop") {
|
|
@@ -47,7 +47,7 @@ declare type ScanData = {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
50
|
-
searchType: "
|
|
50
|
+
searchType: "product" | "walletPass" | "wallet" | "customer" | "local_product";
|
|
51
51
|
data: any;
|
|
52
52
|
scanCode: string;
|
|
53
53
|
} | null;
|
|
@@ -14,7 +14,7 @@ export declare const getSkuCardConfig: (finalConfig: ProductCardConfig) => {
|
|
|
14
14
|
paddingY: number;
|
|
15
15
|
paddingX: number;
|
|
16
16
|
isBorderVisible: boolean;
|
|
17
|
-
layoutDirection: "
|
|
17
|
+
layoutDirection: "row" | "column";
|
|
18
18
|
};
|
|
19
19
|
skuActionConfig: {
|
|
20
20
|
isOpen: boolean;
|
|
@@ -3,6 +3,6 @@ export interface ImageUploadProps {
|
|
|
3
3
|
value?: string;
|
|
4
4
|
onChange?: (val: string) => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const getBaseTime: (size: number) =>
|
|
6
|
+
export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
|
|
7
7
|
declare const ImageUpload: React.FC<ImageUploadProps>;
|
|
8
8
|
export default ImageUpload;
|
|
@@ -50,6 +50,7 @@ var import_model = require("../../components/booking/info/model");
|
|
|
50
50
|
var import_useToast = __toESM(require("../../hooks/useToast"));
|
|
51
51
|
var import_useLogger = __toESM(require("../../hooks/useLogger"));
|
|
52
52
|
var import_utils3 = require("../../components/shoppingCart/utils");
|
|
53
|
+
var import_lodash = require("lodash");
|
|
53
54
|
var SkuDetailModal = ({ onConfirm, onRemove, onClose }, ref) => {
|
|
54
55
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
55
56
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
@@ -270,7 +271,7 @@ var SkuDetailModal = ({ onConfirm, onRemove, onClose }, ref) => {
|
|
|
270
271
|
metadata: {}
|
|
271
272
|
});
|
|
272
273
|
openParamsRef.current = null;
|
|
273
|
-
const _data =
|
|
274
|
+
const _data = (0, import_lodash.cloneDeep)(data);
|
|
274
275
|
const variantData = formatVariant(config, _data == null ? void 0 : _data.variant, _data);
|
|
275
276
|
if (variantData) {
|
|
276
277
|
_data.variant_group = (variantData == null ? void 0 : variantData.variant_group) || [];
|
|
@@ -863,13 +864,6 @@ function setHiddenStockAlertForToday(params) {
|
|
|
863
864
|
} catch (error) {
|
|
864
865
|
}
|
|
865
866
|
}
|
|
866
|
-
function safeClone(value) {
|
|
867
|
-
try {
|
|
868
|
-
if (typeof structuredClone === "function") return structuredClone(value);
|
|
869
|
-
} catch (error) {
|
|
870
|
-
}
|
|
871
|
-
return JSON.parse(JSON.stringify(value));
|
|
872
|
-
}
|
|
873
867
|
function getSelectedUnitPrice(params) {
|
|
874
868
|
var _a, _b;
|
|
875
869
|
const { productData, skuValue } = params;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.52",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"react-infinite-scroll-component": "^6.1.0",
|
|
68
68
|
"react-resizable": "^3.0.5",
|
|
69
69
|
"styled-components": "^6.0.0-rc.3",
|
|
70
|
+
"@pisell/utils": "3.0.2",
|
|
70
71
|
"@pisell/materials": "6.11.17",
|
|
71
|
-
"@pisell/date-picker": "3.0.8",
|
|
72
72
|
"@pisell/icon": "0.0.11",
|
|
73
|
-
"@pisell/
|
|
73
|
+
"@pisell/date-picker": "3.0.8"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"react": "^18.0.0",
|