@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.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 底部
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -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 === null || cashPaymentMethod === void 0 ? void 0 : cashPaymentMethod.code,
239
- /** 支付类型id,跟支付列表上对应的支付方式保持一致 */
240
- custom_payment_id: cashPaymentMethod === null || cashPaymentMethod === void 0 ? void 0 : cashPaymentMethod.id,
241
- /** 支付类型名称,跟支付列表上对应的支付方式保持一致 */
242
- name: cashPaymentMethod === null || cashPaymentMethod === void 0 ? void 0 : cashPaymentMethod.name,
243
- /** 支付类型type,跟支付列表上对应的支付方式保持一致 */
244
- type: cashPaymentMethod === null || cashPaymentMethod === void 0 ? void 0 : cashPaymentMethod.type,
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';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter/types';
4
3
  export declare const _formatBookingDetail: (data: any, modalState: any) => any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductDisplayConfig, ProductDisplayPresetKey } from './components/ProductDisplayAdapter/types';
3
2
  import './index.less';
4
3
  interface TicketBookingProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 底部
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -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 == null ? void 0 : cashPaymentMethod.code,
187
- /** 支付类型id,跟支付列表上对应的支付方式保持一致 */
188
- custom_payment_id: cashPaymentMethod == null ? void 0 : cashPaymentMethod.id,
189
- /** 支付类型名称,跟支付列表上对应的支付方式保持一致 */
190
- name: cashPaymentMethod == null ? void 0 : cashPaymentMethod.name,
191
- /** 支付类型type,跟支付列表上对应的支付方式保持一致 */
192
- type: cashPaymentMethod == null ? void 0 : cashPaymentMethod.type,
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';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter/types';
4
3
  export declare const _formatBookingDetail: (data: any, modalState: any) => any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductDisplayConfig, ProductDisplayPresetKey } from './components/ProductDisplayAdapter/types';
3
2
  import './index.less';
4
3
  interface TicketBookingProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.8.17",
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/date-picker": "3.0.7"
82
+ "@pisell/utils": "3.0.2"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "react": "^18.0.0",