@pisell/private-materials 6.4.27 → 6.4.29

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 (71) 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/Sales/Summary/utils.d.ts +1 -1
  10. package/es/components/booking/addons/model.d.ts +1 -10
  11. package/es/components/booking/components/actionButtons/index.js +2 -0
  12. package/es/components/booking/components/footer/index.d.ts +1 -0
  13. package/es/components/booking/components/footer/index.js +2 -0
  14. package/es/components/booking/forms/model.d.ts +1 -10
  15. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  16. package/es/components/booking/info/model.d.ts +1 -10
  17. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  18. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  19. package/es/components/booking/info/service2/utils.d.ts +1 -1
  20. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  21. package/es/components/booking/model.d.ts +1 -9
  22. package/es/components/booking/notes/model.d.ts +1 -10
  23. package/es/components/booking/payments/model.d.ts +1 -10
  24. package/es/components/booking/utils.d.ts +2 -2
  25. package/es/components/eftposPay/amount.d.ts +1 -1
  26. package/es/components/eftposPay/device.d.ts +1 -1
  27. package/es/components/eftposPay/hooks.d.ts +2 -2
  28. package/es/components/eftposPay/store/index.d.ts +3 -3
  29. package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
  30. package/es/components/pay/toC/model.d.ts +1 -9
  31. package/es/components/schedules/model.d.ts +1 -9
  32. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  33. package/es/components/wallet/Detail/model.d.ts +1 -13
  34. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  35. package/es/components/wallet/PointCard/model.d.ts +1 -13
  36. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  37. package/es/components/wallet/Voucher/model.d.ts +1 -13
  38. package/es/components/wallet/model.d.ts +1 -9
  39. package/es/plus/clinetSearch/Add/index.js +1 -1
  40. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  41. package/lib/components/booking/addons/model.d.ts +1 -10
  42. package/lib/components/booking/components/actionButtons/index.js +2 -0
  43. package/lib/components/booking/components/footer/index.d.ts +1 -0
  44. package/lib/components/booking/components/footer/index.js +2 -0
  45. package/lib/components/booking/forms/model.d.ts +1 -10
  46. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  47. package/lib/components/booking/info/model.d.ts +1 -10
  48. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  49. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  50. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  51. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  52. package/lib/components/booking/model.d.ts +1 -9
  53. package/lib/components/booking/notes/model.d.ts +1 -10
  54. package/lib/components/booking/payments/model.d.ts +1 -10
  55. package/lib/components/booking/utils.d.ts +2 -2
  56. package/lib/components/eftposPay/amount.d.ts +1 -1
  57. package/lib/components/eftposPay/device.d.ts +1 -1
  58. package/lib/components/eftposPay/hooks.d.ts +2 -2
  59. package/lib/components/eftposPay/store/index.d.ts +3 -3
  60. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
  61. package/lib/components/pay/toC/model.d.ts +1 -9
  62. package/lib/components/schedules/model.d.ts +1 -9
  63. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  64. package/lib/components/wallet/Detail/model.d.ts +1 -13
  65. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  66. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  67. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  68. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  69. package/lib/components/wallet/model.d.ts +1 -9
  70. package/lib/plus/clinetSearch/Add/index.js +1 -1
  71. package/package.json +12 -12
@@ -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" | "warn" | "loading" | "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<"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
  };
@@ -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" | "warn" | "loading" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "pay" | "refund" | "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;
@@ -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" | "warn" | "loading" | "fail" | "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
  import './index.less';
2
3
  declare const ToBPayCache: (props: {
3
4
  open: boolean;
@@ -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;
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
44
+ searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
@@ -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;
@@ -75,7 +75,7 @@ var AddClient = (0, import_react.forwardRef)((props, ref) => {
75
75
  _addClient.run({
76
76
  customer: {
77
77
  accepts_marketing: 0,
78
- register_channel: "shop",
78
+ register_channel: "pos",
79
79
  tax_exempt: 1,
80
80
  ...rest,
81
81
  first_name: rest.first_name || "",
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.4.27",
3
+ "version": "6.4.29",
4
+ "scripts": {
5
+ "dev": "father dev",
6
+ "build": "father build",
7
+ "lowcode:dev": "build-scripts start --config ./build.lowcode.js",
8
+ "lowcode:build": " build-scripts build --config ./build.lowcode.js"
9
+ },
4
10
  "main": "./lib/index.js",
5
11
  "module": "./es/index.js",
6
12
  "types": "./lib/index.d.ts",
@@ -50,6 +56,10 @@
50
56
  "@dnd-kit/modifiers": "^6.0.1",
51
57
  "@dnd-kit/sortable": "^7.0.2",
52
58
  "@dnd-kit/utilities": "^3.2.1",
59
+ "@pisell/date-picker": "workspace:*",
60
+ "@pisell/icon": "workspace:*",
61
+ "@pisell/materials": "workspace:*",
62
+ "@pisell/utils": "workspace:*",
53
63
  "ahooks": "^3.7.6",
54
64
  "antd": "^5.6.3",
55
65
  "classnames": "^2.3.2",
@@ -58,11 +68,7 @@
58
68
  "rc-virtual-list": "^3.11.3",
59
69
  "react-infinite-scroll-component": "^6.1.0",
60
70
  "react-resizable": "^3.0.5",
61
- "styled-components": "^6.0.0-rc.3",
62
- "@pisell/date-picker": "3.0.7",
63
- "@pisell/icon": "0.0.11",
64
- "@pisell/materials": "6.4.4",
65
- "@pisell/utils": "3.0.2"
71
+ "styled-components": "^6.0.0-rc.3"
66
72
  },
67
73
  "peerDependencies": {
68
74
  "react": "^18.0.0",
@@ -70,11 +76,5 @@
70
76
  },
71
77
  "componentConfig": {
72
78
  "materialSchema": "https://unpkg.com/@pisell/materials@1.0.1/build/lowcode/assets-prod.json"
73
- },
74
- "scripts": {
75
- "dev": "father dev",
76
- "build": "father build",
77
- "lowcode:dev": "build-scripts start --config ./build.lowcode.js",
78
- "lowcode:build": " build-scripts build --config ./build.lowcode.js"
79
79
  }
80
80
  }