@pisell/private-materials 6.4.41 → 6.4.42

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 (59) 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 +146 -146
  7. package/build/lowcode/render/default/view.js +1 -1
  8. package/build/lowcode/view.js +8 -8
  9. package/es/components/Sales/Summary/utils.d.ts +1 -1
  10. package/es/components/booking/addons/model.d.ts +10 -1
  11. package/es/components/booking/forms/model.d.ts +10 -1
  12. package/es/components/booking/info/model.d.ts +10 -1
  13. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  14. package/es/components/booking/info/service2/utils.d.ts +1 -1
  15. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  16. package/es/components/booking/model.d.ts +9 -1
  17. package/es/components/booking/notes/model.d.ts +10 -1
  18. package/es/components/booking/payments/model.d.ts +10 -1
  19. package/es/components/booking/utils.d.ts +2 -2
  20. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  21. package/es/components/eftposPay/amount.d.ts +1 -1
  22. package/es/components/eftposPay/device.d.ts +1 -1
  23. package/es/components/eftposPay/hooks.d.ts +2 -2
  24. package/es/components/eftposPay/store/index.d.ts +6 -6
  25. package/es/components/pay/toC/model.d.ts +9 -1
  26. package/es/components/schedules/model.d.ts +9 -1
  27. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
  28. package/es/components/wallet/Detail/model.d.ts +13 -1
  29. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  30. package/es/components/wallet/PointCard/model.d.ts +13 -1
  31. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  32. package/es/components/wallet/Voucher/model.d.ts +13 -1
  33. package/es/components/wallet/model.d.ts +9 -1
  34. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  35. package/lib/components/booking/addons/model.d.ts +10 -1
  36. package/lib/components/booking/forms/model.d.ts +10 -1
  37. package/lib/components/booking/info/model.d.ts +10 -1
  38. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  39. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  40. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  41. package/lib/components/booking/model.d.ts +9 -1
  42. package/lib/components/booking/notes/model.d.ts +10 -1
  43. package/lib/components/booking/payments/model.d.ts +10 -1
  44. package/lib/components/booking/utils.d.ts +2 -2
  45. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  46. package/lib/components/eftposPay/amount.d.ts +1 -1
  47. package/lib/components/eftposPay/device.d.ts +1 -1
  48. package/lib/components/eftposPay/hooks.d.ts +2 -2
  49. package/lib/components/eftposPay/store/index.d.ts +6 -6
  50. package/lib/components/pay/toC/model.d.ts +9 -1
  51. package/lib/components/schedules/model.d.ts +9 -1
  52. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
  53. package/lib/components/wallet/Detail/model.d.ts +13 -1
  54. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  55. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  56. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  57. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  58. package/lib/components/wallet/model.d.ts +9 -1
  59. package/package.json +3 -3
@@ -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,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
+ }>;
@@ -46,7 +46,7 @@ var useCustomer = (props) => {
46
46
  if (!pisellos) {
47
47
  return;
48
48
  }
49
- pisellos.effects.on("customer:onUpdate", (state) => {
49
+ const unlisten1 = pisellos.effects.on("customer:onUpdate", (state) => {
50
50
  setCustomers(state.customerList);
51
51
  setHasMore(state.hasMore);
52
52
  setPagination((prev) => ({
@@ -56,23 +56,23 @@ var useCustomer = (props) => {
56
56
  pageSize: state.pageSize
57
57
  }));
58
58
  });
59
- pisellos.effects.on("customer:onSelected", (customer) => {
59
+ const unlisten2 = pisellos.effects.on("customer:onSelected", (customer) => {
60
60
  var _a;
61
61
  setSelectedCustomer(customer);
62
62
  (_a = props.changeCustomerToGlobalState) == null ? void 0 : _a.call(props, customer);
63
63
  });
64
- pisellos.effects.on(
64
+ const unlisten3 = pisellos.effects.on(
65
65
  "customer:onPaginationChange",
66
66
  (paginationInfo) => {
67
67
  setPagination(paginationInfo);
68
68
  }
69
69
  );
70
70
  return () => {
71
- pisellos.effects.off("customer:onUpdate");
72
- pisellos.effects.off("customer:onSelected");
73
- pisellos.effects.off("customer:onPaginationChange");
71
+ unlisten1();
72
+ unlisten2();
73
+ unlisten3();
74
74
  };
75
- }, [bookingTicket]);
75
+ }, []);
76
76
  const loadCustomers = (0, import_ahooks.useMemoizedFn)(
77
77
  async (params) => {
78
78
  try {
@@ -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
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.4.41",
3
+ "version": "6.4.42",
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
  "react-resizable": "^3.0.5",
61
61
  "styled-components": "^6.0.0-rc.3",
62
62
  "@pisell/icon": "0.0.11",
63
- "@pisell/date-picker": "3.0.7",
64
63
  "@pisell/utils": "3.0.2",
65
- "@pisell/materials": "6.4.8"
64
+ "@pisell/materials": "6.4.8",
65
+ "@pisell/date-picker": "3.0.7"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",