@pisell/private-materials 6.3.34 → 6.3.36

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 (61) 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/appointmentBooking/components/ConfirmInformation/index.js +15 -9
  8. package/es/components/booking/addons/model.d.ts +10 -1
  9. package/es/components/booking/components/customSelect/index.js +19 -4
  10. package/es/components/booking/forms/footer.js +24 -10
  11. package/es/components/booking/forms/model.d.ts +10 -1
  12. package/es/components/booking/info/client/index.js +28 -13
  13. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +14 -8
  14. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +10 -2
  15. package/es/components/booking/info/model.d.ts +10 -1
  16. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  17. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  18. package/es/components/booking/locales.d.ts +3 -0
  19. package/es/components/booking/locales.js +6 -3
  20. package/es/components/booking/model.d.ts +9 -1
  21. package/es/components/booking/notes/model.d.ts +10 -1
  22. package/es/components/booking/payments/model.d.ts +10 -1
  23. package/es/components/pay/toC/model.d.ts +9 -1
  24. package/es/components/schedules/model.d.ts +9 -1
  25. package/es/components/wallet/Detail/model.d.ts +13 -1
  26. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  27. package/es/components/wallet/PointCard/model.d.ts +13 -1
  28. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  29. package/es/components/wallet/Voucher/model.d.ts +13 -1
  30. package/es/components/wallet/model.d.ts +9 -1
  31. package/es/plus/contactInfoModal/index.d.ts +1 -0
  32. package/es/plus/contactInfoModal/index.js +1 -0
  33. package/es/pro/Login2.0/Login2.js +7 -4
  34. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +5 -0
  35. package/lib/components/booking/addons/model.d.ts +10 -1
  36. package/lib/components/booking/components/customSelect/index.js +23 -4
  37. package/lib/components/booking/forms/footer.js +29 -11
  38. package/lib/components/booking/forms/model.d.ts +10 -1
  39. package/lib/components/booking/info/client/index.js +14 -1
  40. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +6 -1
  41. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -4
  42. package/lib/components/booking/info/model.d.ts +10 -1
  43. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  44. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  45. package/lib/components/booking/locales.d.ts +3 -0
  46. package/lib/components/booking/locales.js +6 -3
  47. package/lib/components/booking/model.d.ts +9 -1
  48. package/lib/components/booking/notes/model.d.ts +10 -1
  49. package/lib/components/booking/payments/model.d.ts +10 -1
  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/wallet/Detail/model.d.ts +13 -1
  53. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  54. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  55. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  56. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  57. package/lib/components/wallet/model.d.ts +9 -1
  58. package/lib/plus/contactInfoModal/index.d.ts +1 -0
  59. package/lib/plus/contactInfoModal/index.js +1 -0
  60. package/lib/pro/Login2.0/Login2.js +6 -3
  61. package/package.json +4 -4
@@ -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
+ }>;
@@ -10,6 +10,7 @@ interface ContactInfoModalProps {
10
10
  dataSource?: {
11
11
  first_name?: string;
12
12
  last_name?: string;
13
+ display_name?: string;
13
14
  email?: string;
14
15
  phone?: {
15
16
  phone: string;
@@ -107,6 +107,7 @@ var ContactInfoModalContent = (props) => {
107
107
  onSave({
108
108
  first_name: (values == null ? void 0 : values.first_name) || "",
109
109
  last_name: (values == null ? void 0 : values.last_name) || "",
110
+ display_name: (values == null ? void 0 : values.first_name) || (values == null ? void 0 : values.last_name) ? `${(values == null ? void 0 : values.first_name) || ""} ${(values == null ? void 0 : values.last_name) || ""}` : "",
110
111
  phone: {
111
112
  phone: ((_c = values == null ? void 0 : values.phone) == null ? void 0 : _c.phone) || "",
112
113
  country_calling_code: ((_d = values == null ? void 0 : values.phone) == null ? void 0 : _d.countryCallingCode) || "",
@@ -100,6 +100,7 @@ var Login2 = ({
100
100
  );
101
101
  const [currentLoginMethod, setCurrentLoginMethod] = (0, import_react.useState)(null);
102
102
  const [currentVerificationMethod, setCurrentVerificationMethod] = (0, import_react.useState)("password");
103
+ const hasTriggeredGuestLoginRef = (0, import_react.useRef)(false);
103
104
  (0, import_react.useEffect)(() => {
104
105
  var _a2;
105
106
  if (loginMethods.length > 0 && !currentLoginMethod) {
@@ -114,9 +115,11 @@ var Login2 = ({
114
115
  );
115
116
  }
116
117
  }
117
- if (loginMethods.length === 1 && loginMethods[0].type === "guest") {
118
- handleGuestLogin();
119
- }
118
+ if (hasTriggeredGuestLoginRef.current) return;
119
+ const hasOnlyGuest = loginMethods.length === 1 && loginMethods[0].type === "guest";
120
+ if (!hasOnlyGuest) return;
121
+ hasTriggeredGuestLoginRef.current = true;
122
+ handleGuestLogin();
120
123
  }, [loginMethods, currentLoginMethod]);
121
124
  (0, import_react.useEffect)(() => {
122
125
  if (((currentLoginMethod == null ? void 0 : currentLoginMethod.type) === "email" || (currentLoginMethod == null ? void 0 : currentLoginMethod.type) === "phone") && currentVerificationMethod === "password") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.3.34",
3
+ "version": "6.3.36",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -61,10 +61,10 @@
61
61
  "decimal.js": "^10.4.3",
62
62
  "@react-spring/web": "^9.6.1",
63
63
  "@use-gesture/react": "^10.3.1",
64
- "@pisell/icon": "0.0.11",
65
- "@pisell/date-picker": "3.0.4",
64
+ "@pisell/utils": "3.0.1",
66
65
  "@pisell/materials": "6.3.10",
67
- "@pisell/utils": "3.0.1"
66
+ "@pisell/icon": "0.0.11",
67
+ "@pisell/date-picker": "3.0.4"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": "^18.0.0",