@pisell/private-materials 6.3.18 → 6.3.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.
Files changed (123) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +150 -150
  7. package/build/lowcode/render/default/view.js +1 -1
  8. package/build/lowcode/view.js +8 -8
  9. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  10. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  11. package/es/components/appointmentBooking/components/Services/index.js +36 -18
  12. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  13. package/es/components/appointmentBooking/hooks.js +6 -0
  14. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  15. package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  16. package/es/components/booking/components/voucher/index.d.ts +3 -0
  17. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  18. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  19. package/es/components/booking/info/service/editService/index.d.ts +7 -0
  20. package/es/components/booking/info/service/like/index.d.ts +0 -1
  21. package/es/components/booking/info2/index.d.ts +12 -0
  22. package/es/components/booking/info2/service/addService/index.d.ts +11 -0
  23. package/es/components/booking/locales.d.ts +837 -0
  24. package/es/components/booking/locales.js +12 -0
  25. package/es/components/booking/model.d.ts +116 -0
  26. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  27. package/es/components/eftpos/group/index.d.ts +0 -1
  28. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  29. package/es/components/eftpos/icon/device.d.ts +0 -1
  30. package/es/components/eftpos/receipt/index.d.ts +0 -1
  31. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  32. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  33. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  34. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  35. package/es/components/eftposPay/hooks.d.ts +1 -1
  36. package/es/components/eftposPay/store/index.d.ts +1 -1
  37. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  38. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  39. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  40. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  41. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  42. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  43. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  44. package/es/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
  45. package/es/components/pay/toC/PaymentMethods/BankDeposit/index.d.ts +10 -0
  46. package/es/components/pay/toC/PaymentMethods/CashManual/index.d.ts +10 -0
  47. package/es/components/pay/toC/PaymentMethods/CustomPayment/index.d.ts +10 -0
  48. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  49. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
  50. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.d.ts +10 -0
  51. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
  52. package/es/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
  53. package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.d.ts +10 -0
  54. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  55. package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
  56. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  57. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
  58. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  59. package/es/components/pay/toC/index.d.ts +3 -0
  60. package/es/components/schedules/utils.d.ts +1 -1
  61. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  62. package/es/components/ticketBooking/index.d.ts +7 -0
  63. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  64. package/es/hooks/usePaymentLogger.d.ts +22 -0
  65. package/es/utils/index.d.ts +1 -1
  66. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  67. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  68. package/lib/components/appointmentBooking/components/Services/index.js +13 -3
  69. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  70. package/lib/components/appointmentBooking/hooks.js +6 -0
  71. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  72. package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  73. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  74. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  75. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  76. package/lib/components/booking/info/service/editService/index.d.ts +7 -0
  77. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  78. package/lib/components/booking/info2/index.d.ts +12 -0
  79. package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
  80. package/lib/components/booking/locales.d.ts +837 -0
  81. package/lib/components/booking/locales.js +6 -0
  82. package/lib/components/booking/model.d.ts +116 -0
  83. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  84. package/lib/components/eftpos/group/index.d.ts +0 -1
  85. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  86. package/lib/components/eftpos/icon/device.d.ts +0 -1
  87. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  88. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  89. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  90. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  91. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  92. package/lib/components/eftposPay/hooks.d.ts +1 -1
  93. package/lib/components/eftposPay/store/index.d.ts +1 -1
  94. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  95. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  96. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  97. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  98. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  99. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  100. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  101. package/lib/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
  102. package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.d.ts +10 -0
  103. package/lib/components/pay/toC/PaymentMethods/CashManual/index.d.ts +10 -0
  104. package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.d.ts +10 -0
  105. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  106. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
  107. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.d.ts +10 -0
  108. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
  109. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
  110. package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.d.ts +10 -0
  111. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  112. package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
  113. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  114. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
  115. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  116. package/lib/components/pay/toC/index.d.ts +3 -0
  117. package/lib/components/schedules/utils.d.ts +1 -1
  118. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  119. package/lib/components/ticketBooking/index.d.ts +7 -0
  120. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  121. package/lib/hooks/usePaymentLogger.d.ts +22 -0
  122. package/lib/utils/index.d.ts +1 -1
  123. package/package.json +3 -3
@@ -200,6 +200,8 @@ var locales_default = {
200
200
  "pisell2.text.deposit-delete-message": "It cannot be restored after deletion. Please confirm the operation.",
201
201
  "pisell2.text.deposit-paid": "Deposit paid",
202
202
  "pisell2.text.stock": "Stock",
203
+ "pisell2.appointment.unuse.stock": "Not enough stock",
204
+ "pisell2.appointment.unuse.capacity": (count) => `Only ${count} spots available. Please reduce quantity.`,
203
205
  "pisell2.text.payment-link": "Payment link",
204
206
  "pisell2.text.send-mail": "Send email",
205
207
  "pisell2.text.copy-to-clipboard": "Copy to clipboard",
@@ -508,6 +510,8 @@ var locales_default = {
508
510
  "pisell2.text.deposit-delete-message": "删除后不可恢复,请确认操作",
509
511
  "pisell2.text.deposit-paid": "已付定金",
510
512
  "pisell2.text.stock": "库存",
513
+ "pisell2.appointment.unuse.stock": "库存不足",
514
+ "pisell2.appointment.unuse.capacity": (count) => `仅可预约 ${count} 个,请减少数量`,
511
515
  "pisell2.text.payment-link": "付款链接",
512
516
  "pisell2.text.send-mail": "发送邮件",
513
517
  "pisell2.text.copy-to-clipboard": "复制到剪切板",
@@ -816,6 +820,8 @@ var locales_default = {
816
820
  "pisell2.text.deposit-delete-message": "刪除後不可恢復,請確認操作",
817
821
  "pisell2.text.deposit-paid": "已付定金",
818
822
  "pisell2.text.stock": "庫存",
823
+ "pisell2.appointment.unuse.stock": "庫存不足",
824
+ "pisell2.appointment.unuse.capacity": (count) => `僅可預約 ${count} 個,請減少數量`,
819
825
  "pisell2.text.payment-link": "付款鏈接",
820
826
  "pisell2.text.send-mail": "發送郵件",
821
827
  "pisell2.text.copy-to-clipboard": "複製到剪切板",
@@ -0,0 +1,116 @@
1
+ /// <reference types="react" />
2
+ export interface FormState {
3
+ amountSymbol: string;
4
+ apis: {
5
+ getClients: (par?: any) => any;
6
+ getClientsEs: (par?: any) => any;
7
+ getServices: (par?: any) => any;
8
+ getResources: (par?: any) => any;
9
+ getProducts: (par?: any) => any;
10
+ getPets: (par?: any) => any;
11
+ getForms: (par?: any) => any;
12
+ getFormData: (par?: any) => any;
13
+ getAddonsByOrderId: (par?: any) => any;
14
+ saveAddonsByOrderId: (par?: any) => any;
15
+ getNotesByOrder: (par?: any) => any;
16
+ saveBookingFormData: (par?: any) => any;
17
+ getPetsData: (par?: any) => any;
18
+ };
19
+ client: {
20
+ showModal: boolean;
21
+ value: any;
22
+ clients: any[];
23
+ clientsParams: {
24
+ skip: number;
25
+ num: number;
26
+ search: string;
27
+ };
28
+ edit: boolean;
29
+ };
30
+ date: {
31
+ value: any;
32
+ end_date: any;
33
+ edit: boolean;
34
+ };
35
+ service: {
36
+ addModal: boolean;
37
+ editModal: boolean;
38
+ services: any[];
39
+ resources: any[];
40
+ resourcesOrigin: any[];
41
+ reloadResourceModal: false;
42
+ value: any[];
43
+ cacheItem: any;
44
+ edit: boolean;
45
+ addTimeModal: boolean;
46
+ changeService: any;
47
+ };
48
+ pet: {
49
+ showModal: boolean;
50
+ pets: any[];
51
+ value: any[];
52
+ formData: any;
53
+ originValue: any;
54
+ edit: boolean;
55
+ };
56
+ addons: {
57
+ showModal: boolean;
58
+ value: any[];
59
+ productList: any[];
60
+ originData: any[];
61
+ edit: boolean;
62
+ };
63
+ notes: {
64
+ orderNote: string;
65
+ internalNotes: any[];
66
+ edit: boolean;
67
+ };
68
+ form: {
69
+ value: any;
70
+ forms: any[];
71
+ edit: boolean;
72
+ };
73
+ setGlobalState: () => void;
74
+ disabledEdit: boolean;
75
+ bookingConfig: any;
76
+ action: any;
77
+ bookingId: string | number;
78
+ bookingDetail: any;
79
+ channelDisabledEdit: boolean;
80
+ renderType?: 'eventBooking' | 'dayBooking';
81
+ modalOpen?: boolean;
82
+ isTerminal?: boolean;
83
+ isFranchisee?: boolean;
84
+ addTimeProducts: any[];
85
+ eventOtherParams?: {
86
+ relation_id: number;
87
+ number: number;
88
+ registration_type: 'single' | 'all' | 'extra_include';
89
+ start_date: string;
90
+ start_time: string;
91
+ end_date: string;
92
+ end_time: string;
93
+ productIds: number[];
94
+ };
95
+ disableEventBookingEdit?: boolean;
96
+ /** 关闭自动打开选择服务弹窗 */
97
+ closeAutoOpenService?: boolean;
98
+ /** 是否terminal创建booking页面 */
99
+ isBookingCreatePage?: boolean;
100
+ loading: boolean;
101
+ isTerminalDayBookingPage?: boolean;
102
+ activeCartId?: any[];
103
+ isDayBooking: boolean;
104
+ }
105
+ export declare const walkInData: {
106
+ id: number;
107
+ nickname: string;
108
+ };
109
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
110
+ state: FormState;
111
+ } & {
112
+ dispatch: (params: {
113
+ type: string;
114
+ payload: any;
115
+ }) => void;
116
+ }>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './titlebar.less';
3
2
  declare enum EPopupTitleBarVariantType {
4
3
  BackTitleClose = "back-title-cancel",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string;
@@ -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<"stripe" | "tyro" | "windcave" | "payo" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "tyro" | "windcave" | "payo" | "linkly" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const InformationOptionsModal: (props: any) => JSX.Element;
4
3
  export default InformationOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DayItem: (props: any) => JSX.Element;
4
3
  export default DayItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { CalendarItemProps } from '../../../../../type';
4
3
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface ApplePayRef {
4
+ init: (res: any) => void;
5
+ }
6
+ export interface ApplePayProps {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<ApplePayProps & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface BankDepositRef {
4
+ init: (res: any) => Promise<any>;
5
+ }
6
+ export interface BankDepositProps {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<BankDepositProps & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface CashManualRef {
4
+ init: (res: any) => Promise<any>;
5
+ }
6
+ export interface CashManualProps {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<CashManualProps & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface CustomPaymentRef {
4
+ init: (res: any) => Promise<any>;
5
+ }
6
+ export interface CustomPaymentProps {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<CustomPaymentProps & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface GlobePayAliPayH5Ref {
4
+ init: (res: any) => void;
5
+ }
6
+ export interface GlobePayAliPayH5Props {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<GlobePayAliPayH5Props & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface GlobePayPaypalH5Ref {
4
+ init: (res: any) => void;
5
+ }
6
+ export interface GlobePayPaypalH5Props {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<GlobePayPaypalH5Props & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface GlobePayQrcodeRef {
4
+ init: (res: any) => void;
5
+ }
6
+ export interface GlobePayQrcodeProps {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<GlobePayQrcodeProps & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface GlobePayWxH5Ref {
4
+ init: (res: any) => void;
5
+ }
6
+ export interface GlobePayWxH5Props {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<GlobePayWxH5Props & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface GooglePayRef {
3
+ init: (res: any) => void;
4
+ }
5
+ export interface GooglePayProps {
6
+ onChange?: (values: any) => void;
7
+ }
8
+ declare const _default: React.ForwardRefExoticComponent<GooglePayProps & React.RefAttributes<any>>;
9
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface OfflinePaymentRef {
4
+ init: (res: any) => Promise<any>;
5
+ }
6
+ export interface OfflinePaymentProps {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<OfflinePaymentProps & React.RefAttributes<any>>;
10
+ export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
4
3
  export default SetupForm;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface StripePayRef {
4
+ init: (res: any) => void;
5
+ }
6
+ export interface StripePayProps {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<StripePayProps & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface SuperPayAliPayH5Ref {
4
+ init: (res: any) => void;
5
+ }
6
+ export interface SuperPayAliPayH5Props {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<SuperPayAliPayH5Props & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface SuperPayWxPayH5Ref {
4
+ init: (res: any) => void;
5
+ }
6
+ export interface SuperPayWxPayH5Props {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<SuperPayWxPayH5Props & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface PaymentMethodsRef {
3
+ onPay: (props: any) => void;
4
+ }
5
+ interface PaymentMethodsProps {
6
+ payCallback: (props: any) => void;
7
+ }
8
+ declare const _default: React.ForwardRefExoticComponent<PaymentMethodsProps & React.RefAttributes<unknown>>;
9
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const _default: any;
3
+ export default _default;
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
17
17
  export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
18
18
  export declare const saveConfirm: () => Promise<{
19
19
  destroy: () => void;
20
- update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -0,0 +1,9 @@
1
+ import './index.less';
2
+ interface AddServiceProps {
3
+ onEdit?: any;
4
+ dispatch?: any;
5
+ state?: any;
6
+ renderMode?: 'current' | 'drawer';
7
+ }
8
+ declare const AddSerivce: (props: AddServiceProps) => JSX.Element | null;
9
+ export default AddSerivce;
@@ -0,0 +1,7 @@
1
+ import './index.less';
2
+ interface TicketBookingProps {
3
+ productExtensionType: string[];
4
+ bookingConfigParams: Record<string, any>;
5
+ }
6
+ declare const _default: (props: TicketBookingProps) => JSX.Element;
7
+ export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
@@ -0,0 +1,22 @@
1
+ interface LogData {
2
+ key: string;
3
+ value: any;
4
+ }
5
+ interface UsePaymentLoggerOptions {
6
+ orderId: string;
7
+ step?: string;
8
+ }
9
+ /**
10
+ * @title: 支付日志记录器 Hook
11
+ * @description: 用于记录支付过程中的关键信息
12
+ * @param {UsePaymentLoggerOptions} options - 配置选项
13
+ * @return {object} 返回日志记录相关方法
14
+ * @Author: AI Assistant
15
+ */
16
+ declare const usePaymentLogger: (options: UsePaymentLoggerOptions) => {
17
+ logs: import("react").MutableRefObject<LogData[]>;
18
+ addLog: (logData: LogData) => void;
19
+ sendLogs: (title?: string, err?: any) => void;
20
+ };
21
+ export default usePaymentLogger;
22
+ export type { LogData, UsePaymentLoggerOptions };
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
18
18
  export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
19
19
  export declare const saveConfirm: () => Promise<{
20
20
  destroy: () => void;
21
- update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
21
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
22
22
  }>;
23
23
  export { modal };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.3.18",
3
+ "version": "6.3.19",
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": "3.0.1",
63
- "@pisell/materials": "6.3.6",
64
63
  "@pisell/icon": "0.0.11",
65
- "@pisell/date-picker": "3.0.4"
64
+ "@pisell/date-picker": "3.0.4",
65
+ "@pisell/materials": "6.3.6"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",