@pisell/private-materials 3.3.58 → 3.3.59

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 (144) 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/render/default/view.js +4 -4
  7. package/build/lowcode/view.js +4 -4
  8. package/es/components/Sales/Summary/utils.d.ts +1 -1
  9. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/index.d.ts +1 -0
  13. package/es/components/booking/addons/model.d.ts +10 -1
  14. package/es/components/booking/addons/model.js +5 -5
  15. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  16. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  17. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  18. package/es/components/booking/components/browserSelect/index.js +1 -1
  19. package/es/components/booking/components/footer/index.d.ts +0 -1
  20. package/es/components/booking/components/footer/index.js +29 -14
  21. package/es/components/booking/forms/footer.d.ts +1 -0
  22. package/es/components/booking/forms/model.d.ts +10 -1
  23. package/es/components/booking/forms/model.js +5 -5
  24. package/es/components/booking/info/model.d.ts +10 -1
  25. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  26. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  27. package/es/components/booking/info/service/like/index.js +1 -1
  28. package/es/components/booking/materiels/startTime/index.js +1 -1
  29. package/es/components/booking/model.d.ts +9 -1
  30. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  31. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  32. package/es/components/booking/notes/model.d.ts +10 -1
  33. package/es/components/booking/notes/model.js +5 -5
  34. package/es/components/booking/payments/model.d.ts +10 -1
  35. package/es/components/booking/payments/model.js +5 -5
  36. package/es/components/eftposPay/amount.d.ts +1 -1
  37. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  38. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  39. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  40. package/es/components/eftposPay/device.d.ts +1 -1
  41. package/es/components/eftposPay/hooks.d.ts +2 -2
  42. package/es/components/eftposPay/index.d.ts +1 -0
  43. package/es/components/eftposPay/pay.d.ts +1 -0
  44. package/es/components/eftposPay/store/index.d.ts +4 -4
  45. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  46. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  47. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  48. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  49. package/es/components/listComponent/index.js +5 -5
  50. package/es/components/pay/toC/model.d.ts +9 -1
  51. package/es/components/productExtension/card/index.js +3 -3
  52. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  53. package/es/components/productExtension/fields/Forms/index.js +12 -12
  54. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  55. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  56. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  57. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  58. package/es/components/productExtension/server.js +2 -2
  59. package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
  60. package/es/components/ruleSetting/index.d.ts +1 -0
  61. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  62. package/es/components/schedules/calendar/index.js +4 -4
  63. package/es/components/schedules/calendar/serve.js +2 -2
  64. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  65. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  66. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  67. package/es/components/schedules/components/ResourceList/index.js +1 -1
  68. package/es/components/schedules/components/Search/index.js +5 -5
  69. package/es/components/schedules/model.d.ts +9 -1
  70. package/es/components/schedules/model.js +5 -5
  71. package/es/components/schedules/openHours/index.js +1 -1
  72. package/es/components/schedules/openHours/serve.js +2 -2
  73. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  74. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  75. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  76. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  77. package/es/components/schedules/products/serve.js +2 -2
  78. package/es/components/schedules/products/utils.js +5 -5
  79. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  80. package/es/components/schedules/resources/detail/index.js +10 -10
  81. package/es/components/schedules/resources/list/index.js +2 -2
  82. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  83. package/es/components/schedules/resources/serve.js +2 -2
  84. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  85. package/es/components/schedules/utils.js +4 -4
  86. package/es/components/selectModal/index.js +2 -2
  87. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  88. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  89. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  90. package/es/components/wallet/Detail/model.d.ts +13 -1
  91. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  92. package/es/components/wallet/PointCard/model.d.ts +13 -1
  93. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  94. package/es/components/wallet/Voucher/model.d.ts +13 -1
  95. package/es/components/wallet/model.d.ts +9 -1
  96. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  97. package/es/hooks/useComponents.js +1 -1
  98. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  99. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  100. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  101. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  102. package/lib/components/appointmentBooking/index.d.ts +1 -0
  103. package/lib/components/booking/addons/model.d.ts +10 -1
  104. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  105. package/lib/components/booking/components/footer/index.d.ts +0 -1
  106. package/lib/components/booking/components/footer/index.js +13 -1
  107. package/lib/components/booking/forms/footer.d.ts +1 -0
  108. package/lib/components/booking/forms/model.d.ts +10 -1
  109. package/lib/components/booking/info/model.d.ts +10 -1
  110. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  111. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  112. package/lib/components/booking/model.d.ts +9 -1
  113. package/lib/components/booking/notes/model.d.ts +10 -1
  114. package/lib/components/booking/payments/model.d.ts +10 -1
  115. package/lib/components/eftposPay/amount.d.ts +1 -1
  116. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  117. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  118. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  119. package/lib/components/eftposPay/device.d.ts +1 -1
  120. package/lib/components/eftposPay/hooks.d.ts +2 -2
  121. package/lib/components/eftposPay/index.d.ts +1 -0
  122. package/lib/components/eftposPay/pay.d.ts +1 -0
  123. package/lib/components/eftposPay/store/index.d.ts +4 -4
  124. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  125. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  126. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  127. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  128. package/lib/components/pay/toC/model.d.ts +9 -1
  129. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  130. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
  131. package/lib/components/ruleSetting/index.d.ts +1 -0
  132. package/lib/components/schedules/model.d.ts +9 -1
  133. package/lib/components/schedules/utils.js +1 -1
  134. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  135. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  136. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  137. package/lib/components/wallet/Detail/model.d.ts +13 -1
  138. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  139. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  140. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  141. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  142. package/lib/components/wallet/model.d.ts +9 -1
  143. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  144. package/package.json +4 -4
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './../../index.less';
2
3
  declare const Search: () => JSX.Element;
3
4
  export default Search;
@@ -8,7 +8,7 @@ var useComponents = function useComponents(params) {
8
8
  var _utils$getComponents;
9
9
  var _ref = appHelper || {},
10
10
  utils = _ref.utils;
11
- return (utils === null || utils === void 0 || (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
11
+ return (utils === null || utils === void 0 ? void 0 : (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
12
12
  }, [components]);
13
13
  return Cpt;
14
14
  };
@@ -25,7 +25,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
25
25
  * @return {*}
26
26
  * @Author: xiangfeng.xue
27
27
  */
28
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
28
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
29
29
  /**
30
30
  * 计算所有价格明细
31
31
  * @param items - 购物车商品数组
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: ({ onNext }: any) => JSX.Element;
3
4
  export default CartItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DepositModal: (props: any) => JSX.Element;
3
4
  export default DepositModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AppointmentBooking: () => JSX.Element;
3
4
  export default AppointmentBooking;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 底部
@@ -51,6 +51,8 @@ var import_utils3 = require("./utils");
51
51
  var import_voucher = __toESM(require("../voucher"));
52
52
  var import__ = require("../../../../index");
53
53
  var import_useIsBooking4Shop = require("../../hooks/useIsBooking4Shop");
54
+ var import_utils4 = require("@pisell/utils");
55
+ var import_dayjs = __toESM(require("dayjs"));
54
56
  var Footer = (props) => {
55
57
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
56
58
  const { state, buttons, dispatch, source } = props;
@@ -222,7 +224,10 @@ var Footer = (props) => {
222
224
  const isHasDayProducts = handleDaySubmit();
223
225
  if (isHasDayProducts) return;
224
226
  }
225
- const res = await handleSave({ type: "checkout" });
227
+ const res = await handleSave({
228
+ type: "checkout",
229
+ messageShow: !(isTerminal == null ? void 0 : isTerminal())
230
+ });
226
231
  goCheckout((res == null ? void 0 : res.order_id) || state.bookingId);
227
232
  return;
228
233
  }
@@ -288,6 +293,13 @@ var Footer = (props) => {
288
293
  let callbackData = null;
289
294
  let values = (0, import_utils3.formatValues)({ ...state, ...saveOtherValue });
290
295
  const api = state.bookingId ? editApi : createApi;
296
+ (0, import_utils4.sendWarningLog)({
297
+ title: "saveBooking",
298
+ content: [
299
+ { key: "下单前数据", value: JSON.stringify(values) },
300
+ { key: "日期", value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm") }
301
+ ]
302
+ });
291
303
  if (addonsEdit) {
292
304
  await handleSaveAddons();
293
305
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface FooterProps {
2
3
  state: any;
3
4
  reload: () => void;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
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,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import './index.less';
3
4
  interface AddServiceProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -104,4 +105,11 @@ export declare const walkInData: {
104
105
  id: number;
105
106
  nickname: string;
106
107
  };
107
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
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 +1,10 @@
1
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -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: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 支付状态未知页面
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
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;
@@ -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<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "loading" | "fail" | "warn" | "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<"payo" | "tyro" | "windcave" | "stripe">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  import './index.less';
3
4
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayProps } from './const';
2
3
  import './index.less';
3
4
  /**
@@ -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: "loading" | "success" | "warn" | "fail" | "question";
177
+ status: "success" | "loading" | "fail" | "warn" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,9 +295,9 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
298
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | undefined;
301
301
  action?: "amount" | "deviceList" | "pay" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "loading" | "fail" | "warn" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ api, onChange, formatAmount, }: {
2
3
  api: any;
3
4
  onChange: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ContinueButton: () => JSX.Element;
3
4
  export default ContinueButton;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Information: () => JSX.Element;
3
4
  export default Information;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingOptions: (props: {
3
2
  onChangeBookingOption?: ((bookingOption: any) => void) | undefined;
4
3
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  platform: 'pc' | 'h5' | '' | undefined;
3
4
  order: any;
@@ -28,4 +29,11 @@ export interface PayGroup {
28
29
  pay_number?: string;
29
30
  _order: any;
30
31
  }
31
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type BoolConfigVal = 0 | 1;
4
3
  export interface ProductCardConfig {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface RuleSettingProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem, ScheduleItem } from "./type";
2
3
  import dayjs from "dayjs";
3
4
  export interface FormState {
@@ -68,4 +69,11 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -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 = {};
31
30
  constructor() {
31
+ this.request = {};
32
32
  }
33
33
  setRequest(val) {
34
34
  this.request = val;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProductProps } from '../../type';
2
3
  declare const Product: (props: ProductProps) => JSX.Element;
3
4
  export default Product;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface AddServiceProps {
3
4
  onEdit?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const TicketBooking: () => JSX.Element;
4
3
  export default TicketBooking;
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
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 +1,14 @@
1
- export declare const Provider: any, Context: any;
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 +1,13 @@
1
- export declare const Provider: any, Context: any;
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 +1,29 @@
1
- export declare const Provider: any, Context: any;
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 +1,13 @@
1
- export declare const Provider: any, Context: any;
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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from './serve';
2
3
  export interface WalletCardItemProps {
3
4
  id: string;
@@ -26,4 +27,11 @@ export interface WalletListProps {
26
27
  currentSearchListItemCode?: string;
27
28
  [key: string]: any;
28
29
  }
29
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './../../index.less';
2
3
  declare const Search: () => JSX.Element;
3
4
  export default Search;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.3.58",
3
+ "version": "3.3.59",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
- "@pisell/materials": "3.3.22",
63
- "@pisell/icon": "0.0.11",
64
62
  "@pisell/utils": "1.0.42",
65
- "@pisell/date-picker": "3.0.2"
63
+ "@pisell/date-picker": "3.0.2",
64
+ "@pisell/icon": "0.0.11",
65
+ "@pisell/materials": "3.3.22"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",