@pisell/private-materials 3.4.12 → 3.4.13

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 (131) 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 +8 -8
  7. package/build/lowcode/view.js +2 -2
  8. package/es/components/booking/addons/model.d.ts +1 -10
  9. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  10. package/es/components/booking/components/browserSelect/index.js +1 -1
  11. package/es/components/booking/components/customSelect/index.d.ts +38 -0
  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/forms/single/RenderValueById.d.ts +7 -0
  15. package/es/components/booking/hooks/useClearCart.d.ts +2 -0
  16. package/es/components/booking/hooks/useQuotation.d.ts +5 -0
  17. package/es/components/booking/info/client/index.d.ts +4 -0
  18. package/es/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  19. package/es/components/booking/info/model.d.ts +1 -10
  20. package/es/components/booking/info/service/Lists.d.ts +2 -0
  21. package/es/components/booking/info/service/like/index.js +1 -1
  22. package/es/components/booking/info/service2/utils.d.ts +247 -0
  23. package/es/components/booking/info/utils.d.ts +50 -0
  24. package/es/components/booking/info2/index.d.ts +12 -0
  25. package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
  26. package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  27. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  28. package/es/components/booking/info2/service/editService/index.d.ts +7 -0
  29. package/es/components/booking/info2/service/index.d.ts +4 -0
  30. package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
  31. package/es/components/booking/locales.d.ts +822 -0
  32. package/es/components/booking/materiels/duration/index.d.ts +13 -0
  33. package/es/components/booking/materiels/startTime/index.d.ts +9 -0
  34. package/es/components/booking/model.d.ts +1 -9
  35. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  36. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  37. package/es/components/booking/notes/model.d.ts +1 -10
  38. package/es/components/booking/notes/model.js +5 -5
  39. package/es/components/booking/payments/model.d.ts +1 -10
  40. package/es/components/booking/payments/model.js +5 -5
  41. package/es/components/booking/utils.d.ts +174 -0
  42. package/es/components/listComponent/index.js +5 -5
  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.js +5 -5
  55. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  56. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  57. package/es/components/schedules/components/ResourceList/index.js +1 -1
  58. package/es/components/schedules/components/Search/index.js +5 -5
  59. package/es/components/schedules/model.d.ts +1 -9
  60. package/es/components/schedules/model.js +5 -5
  61. package/es/components/schedules/openHours/index.js +1 -1
  62. package/es/components/schedules/openHours/serve.js +2 -2
  63. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  64. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  65. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  66. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  67. package/es/components/schedules/products/serve.js +2 -2
  68. package/es/components/schedules/products/utils.js +5 -5
  69. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  70. package/es/components/schedules/resources/detail/index.js +10 -10
  71. package/es/components/schedules/resources/list/index.js +2 -2
  72. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  73. package/es/components/schedules/resources/serve.js +2 -2
  74. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  75. package/es/components/schedules/utils.js +4 -4
  76. package/es/components/selectModal/index.js +2 -2
  77. package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  78. package/es/components/shoppingCart/components/Cart/index.d.ts +3 -0
  79. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  80. package/es/components/ticketBooking/components/ticketBooking/index.js +3 -0
  81. package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  82. package/es/components/ticketBooking/utils/index.d.ts +25 -0
  83. package/es/components/wallet/Detail/model.d.ts +1 -13
  84. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  85. package/es/components/wallet/PointCard/model.d.ts +1 -13
  86. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  87. package/es/components/wallet/Voucher/model.d.ts +1 -13
  88. package/es/components/wallet/model.d.ts +1 -9
  89. package/es/hooks/useComponents.js +1 -1
  90. package/lib/components/booking/addons/model.d.ts +1 -10
  91. package/lib/components/booking/components/customSelect/index.d.ts +38 -0
  92. package/lib/components/booking/forms/model.d.ts +1 -10
  93. package/lib/components/booking/forms/single/RenderValueById.d.ts +7 -0
  94. package/lib/components/booking/hooks/useClearCart.d.ts +2 -0
  95. package/lib/components/booking/hooks/useQuotation.d.ts +5 -0
  96. package/lib/components/booking/info/client/index.d.ts +4 -0
  97. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  98. package/lib/components/booking/info/model.d.ts +1 -10
  99. package/lib/components/booking/info/service/Lists.d.ts +2 -0
  100. package/lib/components/booking/info/service2/utils.d.ts +247 -0
  101. package/lib/components/booking/info/utils.d.ts +50 -0
  102. package/lib/components/booking/info2/index.d.ts +12 -0
  103. package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
  104. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  105. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  106. package/lib/components/booking/info2/service/editService/index.d.ts +7 -0
  107. package/lib/components/booking/info2/service/index.d.ts +4 -0
  108. package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
  109. package/lib/components/booking/locales.d.ts +822 -0
  110. package/lib/components/booking/materiels/duration/index.d.ts +13 -0
  111. package/lib/components/booking/materiels/startTime/index.d.ts +9 -0
  112. package/lib/components/booking/model.d.ts +1 -9
  113. package/lib/components/booking/notes/model.d.ts +1 -10
  114. package/lib/components/booking/payments/model.d.ts +1 -10
  115. package/lib/components/booking/utils.d.ts +174 -0
  116. package/lib/components/pay/toC/model.d.ts +1 -9
  117. package/lib/components/schedules/model.d.ts +1 -9
  118. package/lib/components/schedules/utils.js +1 -1
  119. package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  120. package/lib/components/shoppingCart/components/Cart/index.d.ts +3 -0
  121. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  122. package/lib/components/ticketBooking/components/ticketBooking/index.js +3 -0
  123. package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  124. package/lib/components/ticketBooking/utils/index.d.ts +25 -0
  125. package/lib/components/wallet/Detail/model.d.ts +1 -13
  126. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  127. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  128. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  129. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  130. package/lib/components/wallet/model.d.ts +1 -9
  131. package/package.json +1 -1
@@ -0,0 +1,13 @@
1
+ import { SelectProps } from 'antd';
2
+ interface DurationProps extends SelectProps {
3
+ locale?: string;
4
+ slice?: number;
5
+ selectProps?: SelectProps;
6
+ timeObjChange?: any;
7
+ duration?: any;
8
+ usableTime?: any;
9
+ startDate?: any;
10
+ timeObj?: any;
11
+ }
12
+ declare const Duration: (props: DurationProps) => JSX.Element;
13
+ export default Duration;
@@ -0,0 +1,9 @@
1
+ import { SelectProps } from "antd";
2
+ interface StartTimeProps extends SelectProps {
3
+ locale?: string;
4
+ slice?: number;
5
+ selectProps?: SelectProps;
6
+ timeObjChange?: any;
7
+ }
8
+ declare const StartTime: (props: StartTimeProps) => JSX.Element;
9
+ export default StartTime;
@@ -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;
@@ -0,0 +1,174 @@
1
+ import dayjs from 'dayjs';
2
+ declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
3
+ declare class Request {
4
+ private request;
5
+ constructor();
6
+ setRequest(val: any): void;
7
+ getRequest(): {
8
+ get: RType;
9
+ post: RType;
10
+ put: RType;
11
+ remove: RType;
12
+ custom: RType;
13
+ };
14
+ }
15
+ export declare const request: Request;
16
+ /**
17
+ * @title: 格式化持续时长用于展示
18
+ * @description:
19
+ * @param {number} service_times
20
+ * @return {*}
21
+ * @Author: zhiwei.Wang
22
+ * @Date: 2024-04-26 14:00
23
+ */
24
+ export declare const getDiscountTime: (service_times: number, isDay?: boolean) => string;
25
+ /**
26
+ * @title: 时间切片
27
+ * @description:
28
+ * @param {any} config
29
+ * @param {string} locale
30
+ * @return {*}
31
+ * @Author: zhiwei.Wang
32
+ * @Date: 2024-04-26 13:59
33
+ */
34
+ export declare const sliceDayIntoFiveMinutes: (config: any, locale: string, isDay?: boolean) => {
35
+ timeSlices: {
36
+ label: string;
37
+ value: string;
38
+ }[];
39
+ durationSlicesBasedOnTime: {
40
+ label: string;
41
+ value: number;
42
+ }[];
43
+ };
44
+ export declare const getNowTime: () => string;
45
+ export declare const isNowTime: (time: string) => boolean;
46
+ /**
47
+ * @title: 获取服务的开始时间, 如果是now 转换为当前的时间
48
+ * @description:
49
+ * @param {string} start_time
50
+ * @return {*}
51
+ * @Author: zhiwei.Wang
52
+ * @Date: 2024-04-26 14:03
53
+ */
54
+ export declare const getServeStartTime: (start_time: string) => string;
55
+ /**
56
+ * @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
57
+ * @description:
58
+ * @param {any} item
59
+ * @param {any} currentDate
60
+ * @return {*}
61
+ * @Author: zhiwei.Wang
62
+ * @Date: 2024-04-26 14:04
63
+ */
64
+ export declare const getServiceTime: (item: any, currentDate: any) => string;
65
+ export declare const findNextSlice: ({ timeSlices, index, date, }: {
66
+ timeSlices: any[];
67
+ index?: number | undefined;
68
+ date?: string | undefined;
69
+ }) => any;
70
+ export declare const findNextDuration: (current: any, array: any, defaultValue?: any) => any;
71
+ export declare const formatProductListByCategory: (list: any, filterItem: any) => unknown[];
72
+ export declare const getResourceTimeIsUsable: (item: any, cacheItem: any) => any;
73
+ /**
74
+ * @title: 查找是否有可用的time
75
+ * @description:
76
+ * @param {any} resourceItem
77
+ * @return {*}
78
+ * @Author: zhiwei.Wang
79
+ * @Date: 2024-01-09 13:57
80
+ */
81
+ export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
82
+ /**
83
+ * @title: 获取店铺的营业结束时间
84
+ * @description:
85
+ * @return {*}
86
+ * @Author: zhiwei.Wang
87
+ * @Date: 2024-02-23 10:00
88
+ */
89
+ export declare const getShopOpeningHours: () => string;
90
+ /**
91
+ * @title: 对灵活时长进行处理
92
+ * @description:
93
+ * @return {*}
94
+ * @Author: zhiwei.Wang
95
+ * @Date: 2024-02-23 10:00
96
+ */
97
+ export declare const flexibleObj: {
98
+ create: (num: number) => any;
99
+ getValue: (str: string | number) => number;
100
+ isFlexible: (str: string | number) => boolean;
101
+ add: (current: number | string, duration: number) => any;
102
+ };
103
+ /**
104
+ * @title: 获取结束时间
105
+ * @description: 取 endDate | 店铺营业时间 最小的那一个
106
+ * @param {any} startDate
107
+ * @param {string} duration
108
+ * @param {any} endDate
109
+ * @return {*}
110
+ * @Author: zhiwei.Wang
111
+ * @Date: 2024-02-23 10:01
112
+ */
113
+ export declare const getEndDate: (startDate: any, duration: string | number, endDate: any) => any;
114
+ export declare const getServiceTimes: (service: any) => {
115
+ startDate: dayjs.Dayjs;
116
+ endDate: dayjs.Dayjs;
117
+ };
118
+ export declare const getErrorList: (resource: any, cacheItem: any, isDay?: boolean) => {
119
+ label: any;
120
+ type: string;
121
+ }[];
122
+ /**
123
+ * @title: 格式化资源, 添加自定义参数
124
+ * @description:
125
+ * @param {any} resourceItem
126
+ * @return {*}
127
+ * @Author: zhiwei.Wang
128
+ * @Date: 2024-01-09 13:40
129
+ */
130
+ export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
131
+ export declare const getLastServer: (list: any) => any;
132
+ export declare const getCacheParams: () => any;
133
+ export declare const deleteCacheParams: () => void;
134
+ /**
135
+ * @title: 获取跨日预约的时长
136
+ * @description:
137
+ * @param {any} cacheItem
138
+ * @return {*}
139
+ * @Author: WangHan
140
+ * @Date: 2024-12-01 22:43
141
+ */
142
+ export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
143
+ export declare const isSessionProduct: (cacheItem: any) => boolean;
144
+ export declare const getIsEject: (item: any, type: 'select' | 'detail') => boolean;
145
+ export declare const getIsOnlySession: (item: any) => boolean;
146
+ /**
147
+ * @title: 创建一个服务商品
148
+ * @description:
149
+ * @param {any} state
150
+ * @param {any} item
151
+ * @return {*}
152
+ * @Author: zhiwei.Wang
153
+ * @Date: 2024-01-26 14:09
154
+ */
155
+ export declare const getServerItemExtend: (state: any, cacheItem: any, timeObj: any) => any;
156
+ export declare const getProductTotalPrice: (item: any) => number;
157
+ /**
158
+ * @title: 判断 duration
159
+ * @description: 用于处理不同格式的duration
160
+ * @param {number} duration
161
+ * @return {*}
162
+ * @Author: zhiwei.Wang
163
+ * @Date: 2024-02-23 10:02
164
+ */
165
+ export declare const getDuration: (duration: number | {
166
+ type: string;
167
+ value: number;
168
+ }) => number | "flexible" | {
169
+ type: string;
170
+ value: number;
171
+ };
172
+ export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
+ export declare const getIsEdit: (state: any) => boolean;
174
+ export {};
@@ -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,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;
@@ -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;
@@ -0,0 +1,3 @@
1
+ import { ProductProps } from '../../type';
2
+ declare const Product: (props: ProductProps) => JSX.Element;
3
+ export default Product;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Cart: () => JSX.Element;
3
+ export default Cart;
@@ -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;
@@ -249,6 +249,9 @@ var TicketBooking = () => {
249
249
  (type, orderId) => {
250
250
  _initFn(() => {
251
251
  });
252
+ setState({
253
+ createCount: state.createCount + 1
254
+ });
252
255
  }
253
256
  );
254
257
  (_f = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _f.mountFunction(
@@ -0,0 +1,12 @@
1
+ import type { Dayjs } from 'dayjs';
2
+ import './index.less';
3
+ interface ITimeBarProps {
4
+ globalState: any;
5
+ setGlobalState: any;
6
+ onDateChange: (date: Dayjs, dateString?: string) => void;
7
+ onDateTimeChange: (date: Dayjs, timeString: string) => void;
8
+ setIntervalTime: (value: boolean) => void;
9
+ locale: string;
10
+ }
11
+ declare const TimeBar: (props: ITimeBarProps) => JSX.Element;
12
+ export default TimeBar;
@@ -0,0 +1,25 @@
1
+ import type { Dayjs } from 'dayjs';
2
+ /** dayjs对象格式化为字符串时间 */
3
+ export declare const formatDateToStr: (date: Dayjs[]) => string | string[];
4
+ export declare const getDefaultStartParam: () => string | string[];
5
+ export declare const formatBookingList: (bookingList: any[]) => any[];
6
+ export declare const getNextTimeSlice: (sliceMinutes: number) => Dayjs;
7
+ export declare const getDisabledEdit: ({ shop_discount, bookings, payment_status }: any) => boolean;
8
+ export declare const restoreProductOtherData: (data: any) => {
9
+ product_id: any;
10
+ option: never[];
11
+ bundle: any;
12
+ product_variant_id: number;
13
+ quantity: number;
14
+ } | undefined;
15
+ export declare const isSameProduct: (a: any, b: any) => boolean;
16
+ export declare const addService: (list: any[], addItem: any, state: any) => {
17
+ list: any[];
18
+ quantity: any;
19
+ };
20
+ export declare const addServiceScroll: (rowKey: string, cacheItem: any) => void;
21
+ export declare const getCartProductOverlay: (state: any) => any;
22
+ export declare const getIsOverlayProduct: (item: any, state: any) => any;
23
+ export declare const getIsShowNumber: (item: any, state: any) => any;
24
+ export declare const genServiceKey: (item: any) => string;
25
+ export declare const createSimpleCacheItem: (item: any, e: any, state: any) => any;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.4.12",
3
+ "version": "3.4.13",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",