@pisell/private-materials 6.8.17 → 6.8.19
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/components/footer/index.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/checkout/PaymentModal.js +12 -8
- package/es/components/checkout/PaymentProvider.d.ts +13 -0
- package/es/components/checkout/export.d.ts +9 -0
- package/es/components/checkout/index.d.ts +5 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/checkout/PaymentModal.js +12 -8
- package/lib/components/checkout/PaymentProvider.d.ts +13 -0
- package/lib/components/checkout/export.d.ts +9 -0
- package/lib/components/checkout/index.d.ts +5 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/index.d.ts +0 -1
- package/package.json +3 -3
|
@@ -234,14 +234,18 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
234
234
|
_context.next = 5;
|
|
235
235
|
return checkoutModule === null || checkoutModule === void 0 ? void 0 : checkoutModule.addPaymentItemAsync({
|
|
236
236
|
amount: result.amount,
|
|
237
|
-
/** 支付类型,跟支付列表上对应的支付方式保持一致 */
|
|
238
|
-
code: cashPaymentMethod
|
|
239
|
-
/** 支付类型id,跟支付列表上对应的支付方式保持一致 */
|
|
240
|
-
custom_payment_id: cashPaymentMethod
|
|
241
|
-
/** 支付类型名称,跟支付列表上对应的支付方式保持一致 */
|
|
242
|
-
name: cashPaymentMethod
|
|
243
|
-
/** 支付类型type,跟支付列表上对应的支付方式保持一致 */
|
|
244
|
-
type: cashPaymentMethod
|
|
237
|
+
// /** 支付类型,跟支付列表上对应的支付方式保持一致 */
|
|
238
|
+
// code: cashPaymentMethod?.code,
|
|
239
|
+
// /** 支付类型id,跟支付列表上对应的支付方式保持一致 */
|
|
240
|
+
// custom_payment_id: cashPaymentMethod?.id,
|
|
241
|
+
// /** 支付类型名称,跟支付列表上对应的支付方式保持一致 */
|
|
242
|
+
// name: cashPaymentMethod?.name,
|
|
243
|
+
// /** 支付类型type,跟支付列表上对应的支付方式保持一致 */
|
|
244
|
+
// type: cashPaymentMethod?.type,
|
|
245
|
+
code: "CUSTOM_10361",
|
|
246
|
+
"type": "custom",
|
|
247
|
+
"name": "Cash - Cafe",
|
|
248
|
+
"custom_payment_id": 10361,
|
|
245
249
|
/** 代金券、充值卡、积分卡等wallet pass id */
|
|
246
250
|
voucher_id: 0,
|
|
247
251
|
rounding_amount: result.roundingAmount
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PaymentModalProps } from './PaymentModal';
|
|
3
|
+
interface PaymentContextType {
|
|
4
|
+
openPaymentModal: (props: PaymentModalProps) => void;
|
|
5
|
+
closePaymentModal: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const PaymentProvider: React.FC<{
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const usePaymentModal: () => PaymentContextType;
|
|
11
|
+
export declare const openPaymentModal: (props: PaymentModalProps) => void;
|
|
12
|
+
export declare const closePaymentModal: () => void;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default } from "./index";
|
|
2
|
+
export { default as Checkout } from "./index";
|
|
3
|
+
export { default as AmountSummary } from "./components/AmountSummary/index";
|
|
4
|
+
export { default as WalletPassModule } from "./components/WalletPassModule/index";
|
|
5
|
+
export { default as PaymentOptionsModule } from "./components/PaymentOptionsModule/index";
|
|
6
|
+
export { default as CashPaymentModule } from "./components/CashPaymentModule/index";
|
|
7
|
+
export { default as AdditionalModule } from "./components/AdditionalModule/index";
|
|
8
|
+
export type { CheckoutProps, PaymentData, PaymentItem, PaymentResult, ModuleConfig, StatusConfig, CheckoutCallbacks, AmountSummaryProps, WalletPassModuleProps, CashPaymentModuleProps, PaymentOptionsModuleProps, AdditionalModuleProps, } from "./types";
|
|
9
|
+
export { checkoutStyles, calculateModalHeight } from "./styles";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as PaymentModal } from './PaymentModal';
|
|
2
|
+
export { PaymentProvider, usePaymentModal } from './PaymentProvider';
|
|
3
|
+
export type { PaymentModalProps, PaymentModalData } from './PaymentModal';
|
|
4
|
+
export { default as PaymentResultToast, PaymentResultToastProvider, usePaymentResultToast, showPaymentResultToastSuccess, showPaymentResultToastFailed, showPaymentResultToastWalletPassFailed, showPaymentResultToast, closePaymentResultToast, setTillButton } from './components/PaymentResultToast';
|
|
5
|
+
export type { ShowPaymentResultToastConfig, PaymentResultToastContextType, PaymentResultToastProps, PaymentResultToastConfig, ActionButtonProps, ActionButtonGroupList, StatusClassName } from './components/PaymentResultToast';
|
|
@@ -182,14 +182,18 @@ var PaymentContent = (0, import_react.forwardRef)(
|
|
|
182
182
|
});
|
|
183
183
|
await (checkoutModule == null ? void 0 : checkoutModule.addPaymentItemAsync({
|
|
184
184
|
amount: result.amount,
|
|
185
|
-
/** 支付类型,跟支付列表上对应的支付方式保持一致 */
|
|
186
|
-
code: cashPaymentMethod
|
|
187
|
-
/** 支付类型id,跟支付列表上对应的支付方式保持一致 */
|
|
188
|
-
custom_payment_id: cashPaymentMethod
|
|
189
|
-
/** 支付类型名称,跟支付列表上对应的支付方式保持一致 */
|
|
190
|
-
name: cashPaymentMethod
|
|
191
|
-
/** 支付类型type,跟支付列表上对应的支付方式保持一致 */
|
|
192
|
-
type: cashPaymentMethod
|
|
185
|
+
// /** 支付类型,跟支付列表上对应的支付方式保持一致 */
|
|
186
|
+
// code: cashPaymentMethod?.code,
|
|
187
|
+
// /** 支付类型id,跟支付列表上对应的支付方式保持一致 */
|
|
188
|
+
// custom_payment_id: cashPaymentMethod?.id,
|
|
189
|
+
// /** 支付类型名称,跟支付列表上对应的支付方式保持一致 */
|
|
190
|
+
// name: cashPaymentMethod?.name,
|
|
191
|
+
// /** 支付类型type,跟支付列表上对应的支付方式保持一致 */
|
|
192
|
+
// type: cashPaymentMethod?.type,
|
|
193
|
+
code: "CUSTOM_10361",
|
|
194
|
+
"type": "custom",
|
|
195
|
+
"name": "Cash - Cafe",
|
|
196
|
+
"custom_payment_id": 10361,
|
|
193
197
|
/** 代金券、充值卡、积分卡等wallet pass id */
|
|
194
198
|
voucher_id: 0,
|
|
195
199
|
rounding_amount: result.roundingAmount
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PaymentModalProps } from './PaymentModal';
|
|
3
|
+
interface PaymentContextType {
|
|
4
|
+
openPaymentModal: (props: PaymentModalProps) => void;
|
|
5
|
+
closePaymentModal: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const PaymentProvider: React.FC<{
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const usePaymentModal: () => PaymentContextType;
|
|
11
|
+
export declare const openPaymentModal: (props: PaymentModalProps) => void;
|
|
12
|
+
export declare const closePaymentModal: () => void;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default } from "./index";
|
|
2
|
+
export { default as Checkout } from "./index";
|
|
3
|
+
export { default as AmountSummary } from "./components/AmountSummary/index";
|
|
4
|
+
export { default as WalletPassModule } from "./components/WalletPassModule/index";
|
|
5
|
+
export { default as PaymentOptionsModule } from "./components/PaymentOptionsModule/index";
|
|
6
|
+
export { default as CashPaymentModule } from "./components/CashPaymentModule/index";
|
|
7
|
+
export { default as AdditionalModule } from "./components/AdditionalModule/index";
|
|
8
|
+
export type { CheckoutProps, PaymentData, PaymentItem, PaymentResult, ModuleConfig, StatusConfig, CheckoutCallbacks, AmountSummaryProps, WalletPassModuleProps, CashPaymentModuleProps, PaymentOptionsModuleProps, AdditionalModuleProps, } from "./types";
|
|
9
|
+
export { checkoutStyles, calculateModalHeight } from "./styles";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as PaymentModal } from './PaymentModal';
|
|
2
|
+
export { PaymentProvider, usePaymentModal } from './PaymentProvider';
|
|
3
|
+
export type { PaymentModalProps, PaymentModalData } from './PaymentModal';
|
|
4
|
+
export { default as PaymentResultToast, PaymentResultToastProvider, usePaymentResultToast, showPaymentResultToastSuccess, showPaymentResultToastFailed, showPaymentResultToastWalletPassFailed, showPaymentResultToast, closePaymentResultToast, setTillButton } from './components/PaymentResultToast';
|
|
5
|
+
export type { ShowPaymentResultToastConfig, PaymentResultToastContextType, PaymentResultToastProps, PaymentResultToastConfig, ActionButtonProps, ActionButtonGroupList, StatusClassName } from './components/PaymentResultToast';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.19",
|
|
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",
|
|
79
80
|
"@pisell/icon": "0.0.11",
|
|
80
|
-
"@pisell/utils": "3.0.2",
|
|
81
81
|
"@pisell/materials": "6.8.6",
|
|
82
|
-
"@pisell/
|
|
82
|
+
"@pisell/utils": "3.0.2"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": "^18.0.0",
|