@pisell/private-materials 3.3.96 → 3.3.97

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 (125) 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 +13 -13
  7. package/build/lowcode/render/default/view.js +2 -2
  8. package/build/lowcode/view.js +8 -8
  9. package/es/components/booking/addons/model.d.ts +1 -10
  10. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  11. package/es/components/booking/components/browserSelect/index.js +1 -1
  12. package/es/components/booking/forms/model.d.ts +1 -10
  13. package/es/components/booking/forms/model.js +5 -5
  14. package/es/components/booking/info/index.d.ts +0 -1
  15. package/es/components/booking/info/model.d.ts +1 -10
  16. package/es/components/booking/info/service/Lists.d.ts +1 -0
  17. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  18. package/es/components/booking/info/service/like/index.js +1 -1
  19. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  20. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  21. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  22. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  23. package/es/components/booking/materiels/startTime/index.js +1 -1
  24. package/es/components/booking/model.d.ts +1 -9
  25. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  26. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  27. package/es/components/booking/notes/model.d.ts +1 -10
  28. package/es/components/booking/notes/model.js +5 -5
  29. package/es/components/booking/payments/model.d.ts +1 -10
  30. package/es/components/booking/payments/model.js +5 -5
  31. package/es/components/booking/utils.d.ts +2 -2
  32. package/es/components/eftposPay/amount.d.ts +1 -1
  33. package/es/components/eftposPay/app.d.ts +1 -0
  34. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  35. package/es/components/eftposPay/device.d.ts +1 -1
  36. package/es/components/eftposPay/hooks.d.ts +2 -2
  37. package/es/components/eftposPay/payo/config.js +30 -3
  38. package/es/components/eftposPay/store/index.d.ts +4 -4
  39. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  40. package/es/components/index.d.ts +20 -0
  41. package/es/components/listComponent/index.js +5 -5
  42. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  43. package/es/components/pay/toC/model.d.ts +1 -9
  44. package/es/components/productExtension/card/index.js +3 -3
  45. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  46. package/es/components/productExtension/fields/Forms/index.js +12 -12
  47. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  48. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  49. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  50. package/es/components/productExtension/server.js +2 -2
  51. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  52. package/es/components/schedules/calendar/index.js +4 -4
  53. package/es/components/schedules/calendar/serve.js +2 -2
  54. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  55. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  56. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  57. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  58. package/es/components/schedules/components/ResourceList/index.js +1 -1
  59. package/es/components/schedules/components/Search/index.js +5 -5
  60. package/es/components/schedules/model.d.ts +1 -9
  61. package/es/components/schedules/model.js +5 -5
  62. package/es/components/schedules/openHours/index.js +1 -1
  63. package/es/components/schedules/openHours/serve.js +2 -2
  64. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  65. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  66. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  67. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  68. package/es/components/schedules/products/index.d.ts +1 -0
  69. package/es/components/schedules/products/serve.js +2 -2
  70. package/es/components/schedules/products/utils.js +5 -5
  71. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  72. package/es/components/schedules/resources/detail/index.js +10 -10
  73. package/es/components/schedules/resources/list/index.js +2 -2
  74. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  75. package/es/components/schedules/resources/serve.js +2 -2
  76. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  77. package/es/components/schedules/utils.d.ts +1 -1
  78. package/es/components/schedules/utils.js +4 -4
  79. package/es/components/selectModal/index.js +2 -2
  80. package/es/components/wallet/Detail/model.d.ts +1 -13
  81. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  82. package/es/components/wallet/PointCard/model.d.ts +1 -13
  83. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  84. package/es/components/wallet/Voucher/model.d.ts +1 -13
  85. package/es/components/wallet/model.d.ts +1 -9
  86. package/es/hooks/useComponents.js +1 -1
  87. package/es/utils/index.d.ts +1 -1
  88. package/lib/components/booking/addons/model.d.ts +1 -10
  89. package/lib/components/booking/forms/model.d.ts +1 -10
  90. package/lib/components/booking/info/index.d.ts +0 -1
  91. package/lib/components/booking/info/model.d.ts +1 -10
  92. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  93. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  94. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  95. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  96. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  97. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  98. package/lib/components/booking/model.d.ts +1 -9
  99. package/lib/components/booking/notes/model.d.ts +1 -10
  100. package/lib/components/booking/payments/model.d.ts +1 -10
  101. package/lib/components/booking/utils.d.ts +2 -2
  102. package/lib/components/eftposPay/amount.d.ts +1 -1
  103. package/lib/components/eftposPay/app.d.ts +1 -0
  104. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  105. package/lib/components/eftposPay/device.d.ts +1 -1
  106. package/lib/components/eftposPay/hooks.d.ts +2 -2
  107. package/lib/components/eftposPay/payo/config.js +22 -2
  108. package/lib/components/eftposPay/store/index.d.ts +4 -4
  109. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  110. package/lib/components/index.d.ts +20 -0
  111. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  112. package/lib/components/pay/toC/model.d.ts +1 -9
  113. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  114. package/lib/components/schedules/model.d.ts +1 -9
  115. package/lib/components/schedules/products/index.d.ts +1 -0
  116. package/lib/components/schedules/utils.d.ts +1 -1
  117. package/lib/components/schedules/utils.js +1 -1
  118. package/lib/components/wallet/Detail/model.d.ts +1 -13
  119. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  120. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  121. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  122. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  123. package/lib/components/wallet/model.d.ts +1 -9
  124. package/lib/utils/index.d.ts +1 -1
  125. package/package.json +3 -3
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -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,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
2
3
  export default Lists;
@@ -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;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
2
3
  export default Lists;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface HolderProps extends SelectProps {
3
4
  selectProps?: SelectProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  interface StartTimeProps extends SelectProps {
3
4
  locale?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -105,11 +104,4 @@ export declare const walkInData: {
105
104
  id: number;
106
105
  nickname: string;
107
106
  };
108
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
109
- state: FormState;
110
- } & {
111
- dispatch: (params: {
112
- type: string;
113
- payload: any;
114
- }) => void;
115
- }>;
107
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | "flexible" | {
168
+ }) => number | {
169
169
  type: string;
170
170
  value: number;
171
- };
171
+ } | "flexible";
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps, RouteType } from './const';
2
3
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
3
4
  action: RouteType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusType } from '../../const';
2
3
  declare const _default: (props: {
3
4
  status: StatusType;
@@ -10,7 +10,7 @@ import './device.less';
10
10
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
11
  api: PayProps['api'];
12
12
  className?: string | undefined;
13
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
14
  [keys: string]: unknown;
15
15
  } | undefined, other?: any) => void) | undefined;
16
16
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
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<"tyro" | "windcave" | "stripe" | "payo" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -237,7 +237,16 @@ var POS = ({
237
237
  };
238
238
  var Action = ({ onChange }) => {
239
239
  const dispatch = (0, import_store.useDispatch)();
240
- const { mode, client } = (0, import_store.useContextData)();
240
+ const { mode, client, order_id, number, device } = (0, import_store.useContextData)();
241
+ const [isShowCancel, setIsShowCancel] = (0, import_react.useState)(false);
242
+ (0, import_react.useEffect)(() => {
243
+ const timer = setTimeout(() => {
244
+ setIsShowCancel(true);
245
+ }, 30 * 1e3);
246
+ return () => {
247
+ clearTimeout(timer);
248
+ };
249
+ }, []);
241
250
  const onManually = () => {
242
251
  dispatch(
243
252
  (0, import_store.updateState)({
@@ -249,7 +258,18 @@ var Action = ({ onChange }) => {
249
258
  );
250
259
  dispatch((0, import_store.updateComponent)("Manual", true));
251
260
  };
252
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item-btns" }, client === import_const.ClientEnum.Merchant ? /* @__PURE__ */ import_react.default.createElement(
261
+ const onCancel = () => {
262
+ onChange("fail", { number, uniquePaymentNumber: number, device, order_id });
263
+ };
264
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item-btns" }, client === import_const.ClientEnum.User && isShowCancel && /* @__PURE__ */ import_react.default.createElement(
265
+ import_antd.Button,
266
+ {
267
+ block: true,
268
+ className: "pisell-lowcode__eft-pay-step-item-btn",
269
+ onClick: onCancel
270
+ },
271
+ import_utils.locales.getText("page.eftpos-pay.text.cancel")
272
+ ), client === import_const.ClientEnum.Merchant ? /* @__PURE__ */ import_react.default.createElement(
253
273
  import_antd.Button,
254
274
  {
255
275
  block: true,
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "loading" | "warn" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -297,18 +297,18 @@ 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?: "tyro" | "windcave" | "stripe" | "payo" | "linkly" | undefined;
300
+ eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "unset" | "step" | undefined;
306
+ type?: "step" | "unset" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: () => JSX.Element;
2
3
  export default Deposit;
@@ -0,0 +1,20 @@
1
+ import Login from './login';
2
+ import BookingInfo from './booking/info/index';
3
+ import Booking from './booking';
4
+ import BookingNotes from './booking/notes';
5
+ import BookingAddons from './booking/addons';
6
+ import BookingForms from './booking/forms';
7
+ import Schedules from './schedules';
8
+ import ProductExtension from './productExtension';
9
+ import RuleSetting from './ruleSetting';
10
+ import TaxSelect from './taxSelect';
11
+ import ToCPay from './pay/toC';
12
+ import Wallet from './wallet';
13
+ import WalletList from './walletList';
14
+ import WorkspaceListDetail from './workSpaceListDetail/';
15
+ import WorkspaceList from './workSpaceList';
16
+ import PisellSelectCustomerModal from './pisellSelectCustomerModal';
17
+ import SubTotal from './subTotal';
18
+ import EditBookingModal from './booking/editBookingModal';
19
+ import StepController from './stepController';
20
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -29,11 +28,4 @@ export interface PayGroup {
29
28
  pay_number?: string;
30
29
  _order: any;
31
30
  }
32
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
33
- state: FormState;
34
- } & {
35
- dispatch: (params: {
36
- type: string;
37
- payload: any;
38
- }) => void;
39
- }>;
31
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type CurrentDayProps = {
3
4
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Products: () => JSX.Element;
3
4
  export default Products;
@@ -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").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -27,8 +27,8 @@ __export(utils_exports, {
27
27
  module.exports = __toCommonJS(utils_exports);
28
28
  var import_utils = require("@pisell/utils");
29
29
  var Request = class {
30
+ request = {};
30
31
  constructor() {
31
- this.request = {};
32
32
  }
33
33
  setRequest(val) {
34
34
  this.request = val;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- addWalletCard: any;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- walletDetailState: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- setup?: 'menu' | 'list' | 'detail' | string;
5
- }
6
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
- state: RechargeState;
8
- } & {
9
- dispatch: (params: {
10
- type: string;
11
- payload: any;
12
- }) => void;
13
- }>;
14
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,29 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- selectedGiftOptionId: string | null;
4
- cardList: Array<{
5
- id: string;
6
- name: string;
7
- price: number;
8
- }>;
9
- selectedItem: {
10
- id?: string;
11
- gift_price?: number;
12
- price?: number;
13
- name?: string;
14
- variant_id?: string;
15
- };
16
- productId?: string;
17
- detailId?: string;
18
- total: string | number;
19
- rechargeModalOpen: boolean;
20
- }
21
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
- state: RechargeState;
23
- } & {
24
- dispatch: (params: {
25
- type: string;
26
- payload: any;
27
- }) => void;
28
- }>;
29
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: 0;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
30
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
- global_wallet: WalletListProps;
32
- } & {
33
- dispatch: (params: {
34
- type: string;
35
- payload: any;
36
- }) => void;
37
- }>;
29
+ export declare const Provider: any, Context: any;
@@ -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").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
+ update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").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": "3.3.96",
3
+ "version": "3.3.97",
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.0",
63
- "@pisell/materials": "3.3.35",
64
63
  "@pisell/icon": "0.0.11",
65
- "@pisell/date-picker": "3.0.4"
64
+ "@pisell/date-picker": "3.0.4",
65
+ "@pisell/materials": "3.3.35"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",