@pisell/private-materials 3.3.57 → 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 (83) 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 +2 -2
  6. package/build/lowcode/view.js +2 -2
  7. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  8. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  9. package/es/components/appointmentBooking/index.d.ts +1 -0
  10. package/es/components/booking/components/footer/index.js +29 -14
  11. package/es/components/booking/components/voucher/index.d.ts +1 -0
  12. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  13. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  14. package/es/components/booking/info/date/index.d.ts +1 -0
  15. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  16. package/es/components/booking/info/index.d.ts +1 -0
  17. package/es/components/booking/info/notes/index.d.ts +1 -0
  18. package/es/components/booking/info/service/Lists.d.ts +1 -0
  19. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  20. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  21. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  22. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  23. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  24. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  25. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  26. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  27. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  28. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  29. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  30. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  31. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  32. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  33. package/es/components/eftposPay/hooks.d.ts +1 -1
  34. package/es/components/eftposPay/store/index.d.ts +3 -3
  35. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  36. package/es/components/eventBooking/index.d.ts +1 -0
  37. package/es/components/pay/toC/PaymentMethods/index.js +5 -4
  38. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  39. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  40. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  41. package/es/components/productExtension/index.d.ts +1 -0
  42. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  43. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  44. package/es/components/ticketBooking/index.d.ts +1 -0
  45. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  46. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  47. package/lib/components/appointmentBooking/index.d.ts +1 -0
  48. package/lib/components/booking/components/footer/index.js +13 -1
  49. package/lib/components/booking/components/voucher/index.d.ts +1 -0
  50. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  51. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  52. package/lib/components/booking/info/date/index.d.ts +1 -0
  53. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  54. package/lib/components/booking/info/index.d.ts +1 -0
  55. package/lib/components/booking/info/notes/index.d.ts +1 -0
  56. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  57. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  58. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  59. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  60. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  61. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  62. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  63. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  64. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  65. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  66. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  67. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  68. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  69. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  70. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  71. package/lib/components/eftposPay/hooks.d.ts +1 -1
  72. package/lib/components/eftposPay/store/index.d.ts +3 -3
  73. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  74. package/lib/components/eventBooking/index.d.ts +1 -0
  75. package/lib/components/pay/toC/PaymentMethods/index.js +10 -9
  76. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  77. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  78. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  79. package/lib/components/productExtension/index.d.ts +1 -0
  80. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  81. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  82. package/lib/components/ticketBooking/index.d.ts +1 -0
  83. package/package.json +4 -4
@@ -66,7 +66,7 @@ var isOfflinePayment = (type) => {
66
66
  ].includes(type);
67
67
  };
68
68
  var PaymentMethods = (props, ref) => {
69
- var _a;
69
+ var _a, _b, _c;
70
70
  const MWCreditCardRef2 = (0, import_react.useRef)(null);
71
71
  const SuperPayAliPayH5Ref2 = (0, import_react.useRef)(null);
72
72
  const StripePayRef2 = (0, import_react.useRef)(null);
@@ -84,9 +84,9 @@ var PaymentMethods = (props, ref) => {
84
84
  const context = (0, import_useEngineContext.default)();
85
85
  const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
86
86
  const init = async ({ type, payGroup }) => {
87
- var _a2, _b;
87
+ var _a2, _b2;
88
88
  const waitAmount = (payGroup == null ? void 0 : payGroup.wait_amount) || 0;
89
- const cards = (_b = (_a2 = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a2.cards) == null ? void 0 : _b.length;
89
+ const cards = (_b2 = (_a2 = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a2.cards) == null ? void 0 : _b2.length;
90
90
  if (cards && (waitAmount <= 0 || isOfflinePayment(type))) {
91
91
  try {
92
92
  await (0, import_serve.walletPassPay)((0, import_utils.formatWalletPassParams)(payGroup));
@@ -116,10 +116,11 @@ var PaymentMethods = (props, ref) => {
116
116
  }
117
117
  await onPayByType({ type, payGroup });
118
118
  };
119
+ console.log("paymentResult isAppEnv", (_c = (_b = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _b.isAppEnv) == null ? void 0 : _c.call(_b), interaction, context);
119
120
  (0, import_react.useEffect)(() => {
120
- var _a2, _b, _c, _d;
121
- console.log("paymentResult isAppEnv", (_b = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.isAppEnv) == null ? void 0 : _b.call(_a2));
122
- if ((_d = (_c = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c.isAppEnv) == null ? void 0 : _d.call(_c)) {
121
+ var _a2, _b2, _c2, _d;
122
+ console.log("paymentResult isAppEnv", (_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.isAppEnv) == null ? void 0 : _b2.call(_a2));
123
+ if ((_d = (_c2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c2.isAppEnv) == null ? void 0 : _d.call(_c2)) {
123
124
  interaction.utils.mountFunction("global", "paymentResult", (strResult) => {
124
125
  console.log("paymentResult", strResult);
125
126
  if (!(0, import_utils2.isJson)(strResult)) return;
@@ -135,18 +136,18 @@ var PaymentMethods = (props, ref) => {
135
136
  }
136
137
  }, []);
137
138
  const onPayByType = async ({ type, payGroup }) => {
138
- var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
139
+ var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
139
140
  console.log(type, payGroup);
140
141
  if (type === "mw.apple") {
141
142
  await ((_a2 = ApplePayRef2.current) == null ? void 0 : _a2.init({ payGroup }));
142
143
  return;
143
144
  }
144
145
  if (type === "mw.google") {
145
- await ((_b = GooglePayRef2.current) == null ? void 0 : _b.init({ payGroup }));
146
+ await ((_b2 = GooglePayRef2.current) == null ? void 0 : _b2.init({ payGroup }));
146
147
  return;
147
148
  }
148
149
  if (type === "mw.credit_card") {
149
- (_c = MWCreditCardRef2.current) == null ? void 0 : _c.init({ payGroup });
150
+ (_c2 = MWCreditCardRef2.current) == null ? void 0 : _c2.init({ payGroup });
150
151
  return;
151
152
  }
152
153
  if (type === "superpay.alipay.h5") {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
2
3
  import './index.less';
3
4
  interface WalletUseListProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Actor: ({ name }: {
2
3
  name: string;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface valueType {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface ProductExtensionProps {
3
4
  onDataChange: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const TabProduct: (props: any) => JSX.Element;
2
3
  export default TabProduct;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface AddServiceProps {
3
4
  onEdit?: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface TicketBookingProps {
3
4
  productExtensionType: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.3.57",
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/icon": "0.0.11",
63
62
  "@pisell/utils": "1.0.42",
64
- "@pisell/materials": "3.3.22",
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",