@pisell/private-materials 3.4.50 → 3.4.51

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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/Sales/Summary/utils.d.ts +1 -1
  8. package/es/components/booking/addons/model.d.ts +1 -10
  9. package/es/components/booking/forms/model.d.ts +1 -10
  10. package/es/components/booking/info/model.d.ts +1 -10
  11. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  12. package/es/components/booking/info/service2/utils.d.ts +1 -1
  13. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  14. package/es/components/booking/model.d.ts +1 -9
  15. package/es/components/booking/notes/model.d.ts +1 -10
  16. package/es/components/booking/payments/model.d.ts +1 -10
  17. package/es/components/booking/utils.d.ts +2 -2
  18. package/es/components/eftposPay/amount.d.ts +1 -1
  19. package/es/components/eftposPay/device.d.ts +1 -1
  20. package/es/components/eftposPay/hooks.d.ts +2 -2
  21. package/es/components/eftposPay/store/index.d.ts +6 -6
  22. package/es/components/pay/toC/index.js +5 -3
  23. package/es/components/pay/toC/model.d.ts +1 -9
  24. package/es/components/pay/toC/status.d.ts +1 -0
  25. package/es/components/pay/toC/status.js +3 -0
  26. package/es/components/schedules/model.d.ts +1 -9
  27. package/es/components/wallet/Detail/model.d.ts +1 -13
  28. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  29. package/es/components/wallet/PointCard/model.d.ts +1 -13
  30. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  31. package/es/components/wallet/Voucher/model.d.ts +1 -13
  32. package/es/components/wallet/model.d.ts +1 -9
  33. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  34. package/lib/components/booking/addons/model.d.ts +1 -10
  35. package/lib/components/booking/forms/model.d.ts +1 -10
  36. package/lib/components/booking/info/model.d.ts +1 -10
  37. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  38. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  39. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  40. package/lib/components/booking/model.d.ts +1 -9
  41. package/lib/components/booking/notes/model.d.ts +1 -10
  42. package/lib/components/booking/payments/model.d.ts +1 -10
  43. package/lib/components/booking/utils.d.ts +2 -2
  44. package/lib/components/eftposPay/amount.d.ts +1 -1
  45. package/lib/components/eftposPay/device.d.ts +1 -1
  46. package/lib/components/eftposPay/hooks.d.ts +2 -2
  47. package/lib/components/eftposPay/store/index.d.ts +6 -6
  48. package/lib/components/pay/toC/index.js +3 -1
  49. package/lib/components/pay/toC/model.d.ts +1 -9
  50. package/lib/components/pay/toC/status.d.ts +1 -0
  51. package/lib/components/pay/toC/status.js +5 -0
  52. package/lib/components/schedules/model.d.ts +1 -9
  53. package/lib/components/wallet/Detail/model.d.ts +1 -13
  54. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  55. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  56. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  57. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  58. package/lib/components/wallet/model.d.ts +1 -9
  59. package/package.json +3 -3
@@ -50,6 +50,7 @@ var import_utils2 = require("../../../utils");
50
50
  var import_payGroup = require("./payGroup");
51
51
  var import_locales = __toESM(require("./locales"));
52
52
  var import_utils3 = require("./utils");
53
+ var import_status = require("./status");
53
54
  var import_index = require("./index.less");
54
55
  var ToCPay = (props, ref) => {
55
56
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
@@ -98,7 +99,8 @@ var ToCPay = (props, ref) => {
98
99
  };
99
100
  const getWalletSetting = async (initProps) => {
100
101
  var _a2, _b2;
101
- const sale_channel = ((_a2 = initProps == null ? void 0 : initProps.order) == null ? void 0 : _a2.sale_channel) || "online-store";
102
+ let sale_channel = ((_a2 = initProps == null ? void 0 : initProps.order) == null ? void 0 : _a2.sale_channel) || "online-store";
103
+ sale_channel = import_status.saleChannelMap[sale_channel] || sale_channel;
102
104
  const { wallet, wallet_setting } = await (0, import_serve.getWalletNameAndPopupStatus)({
103
105
  setting_type: `${sale_channel}-wallet-setting`
104
106
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -30,11 +29,4 @@ export interface PayGroup {
30
29
  _order: any;
31
30
  front_order_uuid?: string;
32
31
  }
33
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
34
- state: FormState;
35
- } & {
36
- dispatch: (params: {
37
- type: string;
38
- payload: any;
39
- }) => void;
40
- }>;
32
+ export declare const Provider: any, Context: any;
@@ -10,3 +10,4 @@ export declare const paymentKeys: string[];
10
10
  * @Date: 2024-08-30 10:16:26
11
11
  */
12
12
  export declare const isTripartitePayment: (service: string) => boolean;
13
+ export declare const saleChannelMap: Record<string, string>;
@@ -23,6 +23,7 @@ __export(status_exports, {
23
23
  paymentKeys: () => paymentKeys,
24
24
  paymentServices: () => paymentServices,
25
25
  paymentTypes: () => paymentTypes,
26
+ saleChannelMap: () => saleChannelMap,
26
27
  tripartitePaymentKeys: () => tripartitePaymentKeys
27
28
  });
28
29
  module.exports = __toCommonJS(status_exports);
@@ -112,11 +113,15 @@ var paymentKeys = Object.keys(paymentServices);
112
113
  var isTripartitePayment = (service) => {
113
114
  return tripartitePaymentKeys.includes(service);
114
115
  };
116
+ var saleChannelMap = {
117
+ "mobile_order": "mobile-order"
118
+ };
115
119
  // Annotate the CommonJS export names for ESM import in node:
116
120
  0 && (module.exports = {
117
121
  isTripartitePayment,
118
122
  paymentKeys,
119
123
  paymentServices,
120
124
  paymentTypes,
125
+ saleChannelMap,
121
126
  tripartitePaymentKeys
122
127
  });
@@ -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,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.50",
3
+ "version": "3.4.51",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -62,9 +62,9 @@
62
62
  "@react-spring/web": "^9.6.1",
63
63
  "@use-gesture/react": "^10.3.1",
64
64
  "@pisell/utils": "3.0.1",
65
+ "@pisell/materials": "3.3.68",
65
66
  "@pisell/icon": "0.0.11",
66
- "@pisell/date-picker": "3.0.3",
67
- "@pisell/materials": "3.3.68"
67
+ "@pisell/date-picker": "3.0.3"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": "^18.0.0",