@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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +15 -9
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/customSelect/index.js +19 -4
- package/es/components/booking/forms/footer.js +24 -10
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/info/client/index.js +28 -13
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +14 -8
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +10 -2
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/locales.d.ts +3 -0
- package/es/components/booking/locales.js +6 -3
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/model.d.ts +9 -1
- package/es/plus/contactInfoModal/index.d.ts +1 -0
- package/es/plus/contactInfoModal/index.js +1 -0
- package/es/pro/Login2.0/Login2.js +7 -4
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +5 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/customSelect/index.js +23 -4
- package/lib/components/booking/forms/footer.js +29 -11
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/info/client/index.js +14 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +6 -1
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -4
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +6 -3
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/plus/contactInfoModal/index.d.ts +1 -0
- package/lib/plus/contactInfoModal/index.js +1 -0
- package/lib/pro/Login2.0/Login2.js +6 -3
- 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:
|
|
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
|
+
}>;
|
|
@@ -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 (
|
|
118
|
-
|
|
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.
|
|
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/
|
|
65
|
-
"@pisell/date-picker": "3.0.4",
|
|
64
|
+
"@pisell/utils": "3.0.1",
|
|
66
65
|
"@pisell/materials": "6.3.10",
|
|
67
|
-
"@pisell/
|
|
66
|
+
"@pisell/icon": "0.0.11",
|
|
67
|
+
"@pisell/date-picker": "3.0.4"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": "^18.0.0",
|