@mezo-org/passport 0.15.1-dev.7 → 0.16.0-dev.1
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/dist/src/api/auth.d.ts +9 -0
- package/dist/src/api/auth.d.ts.map +1 -1
- package/dist/src/api/auth.js +7 -0
- package/dist/src/api/auth.js.map +1 -1
- package/dist/src/assets/DefaultAvatar.d.ts +5 -0
- package/dist/src/assets/DefaultAvatar.d.ts.map +1 -0
- package/dist/src/assets/DefaultAvatar.js +21 -0
- package/dist/src/assets/DefaultAvatar.js.map +1 -0
- package/dist/src/assets/EditIcon.d.ts +5 -0
- package/dist/src/assets/EditIcon.d.ts.map +1 -0
- package/dist/src/assets/EditIcon.js +10 -0
- package/dist/src/assets/EditIcon.js.map +1 -0
- package/dist/src/components/Dropdown/ConnectedTrigger.d.ts +8 -0
- package/dist/src/components/Dropdown/ConnectedTrigger.d.ts.map +1 -0
- package/dist/src/components/Dropdown/ConnectedTrigger.js +39 -0
- package/dist/src/components/Dropdown/ConnectedTrigger.js.map +1 -0
- package/dist/src/components/Dropdown/Content.d.ts +8 -0
- package/dist/src/components/Dropdown/Content.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Content.js +29 -0
- package/dist/src/components/Dropdown/Content.js.map +1 -0
- package/dist/src/components/Dropdown/DisconnectedTrigger.d.ts +7 -0
- package/dist/src/components/Dropdown/DisconnectedTrigger.d.ts.map +1 -0
- package/dist/src/components/Dropdown/DisconnectedTrigger.js +13 -0
- package/dist/src/components/Dropdown/DisconnectedTrigger.js.map +1 -0
- package/dist/src/components/Dropdown/Dropdown.d.ts +23 -0
- package/dist/src/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Dropdown.js +45 -0
- package/dist/src/components/Dropdown/Dropdown.js.map +1 -0
- package/dist/src/components/Dropdown/ListingItem.d.ts +14 -0
- package/dist/src/components/Dropdown/ListingItem.d.ts.map +1 -0
- package/dist/src/components/Dropdown/ListingItem.js +42 -0
- package/dist/src/components/Dropdown/ListingItem.js.map +1 -0
- package/dist/src/components/Dropdown/NestedViewLayout.d.ts +8 -0
- package/dist/src/components/Dropdown/NestedViewLayout.d.ts.map +1 -0
- package/dist/src/components/Dropdown/NestedViewLayout.js +33 -0
- package/dist/src/components/Dropdown/NestedViewLayout.js.map +1 -0
- package/dist/src/components/Dropdown/Receive/Receive.d.ts +4 -0
- package/dist/src/components/Dropdown/Receive/Receive.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Receive/Receive.js +64 -0
- package/dist/src/components/Dropdown/Receive/Receive.js.map +1 -0
- package/dist/src/components/Dropdown/Root/AccountAddressActions.d.ts +4 -0
- package/dist/src/components/Dropdown/Root/AccountAddressActions.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Root/AccountAddressActions.js +49 -0
- package/dist/src/components/Dropdown/Root/AccountAddressActions.js.map +1 -0
- package/dist/src/components/Dropdown/Root/AccountBalance.d.ts +6 -0
- package/dist/src/components/Dropdown/Root/AccountBalance.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Root/AccountBalance.js +32 -0
- package/dist/src/components/Dropdown/Root/AccountBalance.js.map +1 -0
- package/dist/src/components/Dropdown/Root/AccountBtcListing.d.ts +6 -0
- package/dist/src/components/Dropdown/Root/AccountBtcListing.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Root/AccountBtcListing.js +28 -0
- package/dist/src/components/Dropdown/Root/AccountBtcListing.js.map +1 -0
- package/dist/src/components/Dropdown/Root/AccountError.d.ts +8 -0
- package/dist/src/components/Dropdown/Root/AccountError.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Root/AccountError.js +17 -0
- package/dist/src/components/Dropdown/Root/AccountError.js.map +1 -0
- package/dist/src/components/Dropdown/Root/AccountMusdListing.d.ts +4 -0
- package/dist/src/components/Dropdown/Root/AccountMusdListing.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Root/AccountMusdListing.js +21 -0
- package/dist/src/components/Dropdown/Root/AccountMusdListing.js.map +1 -0
- package/dist/src/components/Dropdown/Root/AccountOtherAssets.d.ts +8 -0
- package/dist/src/components/Dropdown/Root/AccountOtherAssets.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Root/AccountOtherAssets.js +43 -0
- package/dist/src/components/Dropdown/Root/AccountOtherAssets.js.map +1 -0
- package/dist/src/components/Dropdown/Root/Root.d.ts +8 -0
- package/dist/src/components/Dropdown/Root/Root.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Root/Root.js +49 -0
- package/dist/src/components/Dropdown/Root/Root.js.map +1 -0
- package/dist/src/components/Dropdown/Root/WalletAddress.d.ts +4 -0
- package/dist/src/components/Dropdown/Root/WalletAddress.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Root/WalletAddress.js +66 -0
- package/dist/src/components/Dropdown/Root/WalletAddress.js.map +1 -0
- package/dist/src/components/Dropdown/Root/WelcomeBlock.d.ts +6 -0
- package/dist/src/components/Dropdown/Root/WelcomeBlock.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Root/WelcomeBlock.js +88 -0
- package/dist/src/components/Dropdown/Root/WelcomeBlock.js.map +1 -0
- package/dist/src/components/Dropdown/Settings/InlineEditField.d.ts +12 -0
- package/dist/src/components/Dropdown/Settings/InlineEditField.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Settings/InlineEditField.js +95 -0
- package/dist/src/components/Dropdown/Settings/InlineEditField.js.map +1 -0
- package/dist/src/components/Dropdown/Settings/Settings.d.ts +4 -0
- package/dist/src/components/Dropdown/Settings/Settings.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Settings/Settings.js +36 -0
- package/dist/src/components/Dropdown/Settings/Settings.js.map +1 -0
- package/dist/src/components/Dropdown/SlotNumber.d.ts +19 -0
- package/dist/src/components/Dropdown/SlotNumber.d.ts.map +1 -0
- package/dist/src/components/Dropdown/SlotNumber.js +67 -0
- package/dist/src/components/Dropdown/SlotNumber.js.map +1 -0
- package/dist/src/components/Dropdown/TestnetTopBanner.d.ts +3 -0
- package/dist/src/components/Dropdown/TestnetTopBanner.d.ts.map +1 -0
- package/dist/src/components/Dropdown/TestnetTopBanner.js +14 -0
- package/dist/src/components/Dropdown/TestnetTopBanner.js.map +1 -0
- package/dist/src/components/Dropdown/index.d.ts +3 -0
- package/dist/src/components/Dropdown/index.d.ts.map +1 -0
- package/dist/src/components/Dropdown/index.js +2 -0
- package/dist/src/components/Dropdown/index.js.map +1 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/components/index.js +2 -0
- package/dist/src/components/index.js.map +1 -0
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/index.js +1 -0
- package/dist/src/hooks/index.js.map +1 -1
- package/dist/src/hooks/useAcceptDocuments.d.ts +18 -0
- package/dist/src/hooks/useAcceptDocuments.d.ts.map +1 -1
- package/dist/src/hooks/useAuthenticateWithWallet.d.ts +11 -11
- package/dist/src/hooks/useCreateAccount.d.ts +18 -0
- package/dist/src/hooks/useCreateAccount.d.ts.map +1 -1
- package/dist/src/hooks/useSignInWithWallet.d.ts +11 -11
- package/dist/src/hooks/useSignUpWithWallet.d.ts +11 -11
- package/dist/src/hooks/useUpdateMezoId.d.ts +18 -0
- package/dist/src/hooks/useUpdateMezoId.d.ts.map +1 -1
- package/dist/src/hooks/useUpdateUserProfile.d.ts +171 -0
- package/dist/src/hooks/useUpdateUserProfile.d.ts.map +1 -0
- package/dist/src/hooks/useUpdateUserProfile.js +19 -0
- package/dist/src/hooks/useUpdateUserProfile.js.map +1 -0
- package/dist/src/hooks/useWalletAccount.d.ts +2 -5
- package/dist/src/hooks/useWalletAccount.d.ts.map +1 -1
- package/dist/src/hooks/useWalletAccount.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/stores/dropdownStore.d.ts +2 -1
- package/dist/src/stores/dropdownStore.d.ts.map +1 -1
- package/dist/src/stores/dropdownStore.js +1 -0
- package/dist/src/stores/dropdownStore.js.map +1 -1
- package/dist/src/utils/validation.d.ts +13 -0
- package/dist/src/utils/validation.d.ts.map +1 -0
- package/dist/src/utils/validation.js +34 -0
- package/dist/src/utils/validation.js.map +1 -0
- package/dist/src/utils/validation.test.d.ts +2 -0
- package/dist/src/utils/validation.test.d.ts.map +1 -0
- package/dist/src/utils/validation.test.js +63 -0
- package/dist/src/utils/validation.test.js.map +1 -0
- package/package.json +10 -7
- package/src/api/auth.ts +22 -0
- package/src/assets/DefaultAvatar.tsx +74 -0
- package/src/assets/EditIcon.tsx +33 -0
- package/src/components/Dropdown/ConnectedTrigger.tsx +76 -0
- package/src/components/Dropdown/Content.tsx +56 -0
- package/src/components/Dropdown/DisconnectedTrigger.tsx +36 -0
- package/src/components/Dropdown/Dropdown.tsx +100 -0
- package/src/components/Dropdown/ListingItem.tsx +176 -0
- package/src/components/Dropdown/NestedViewLayout.tsx +88 -0
- package/src/components/Dropdown/README.md +41 -0
- package/src/components/Dropdown/Receive/Receive.tsx +144 -0
- package/src/components/Dropdown/Root/AccountAddressActions.tsx +99 -0
- package/src/components/Dropdown/Root/AccountBalance.tsx +69 -0
- package/src/components/Dropdown/Root/AccountBtcListing.tsx +53 -0
- package/src/components/Dropdown/Root/AccountError.tsx +34 -0
- package/src/components/Dropdown/Root/AccountMusdListing.tsx +45 -0
- package/src/components/Dropdown/Root/AccountOtherAssets.tsx +85 -0
- package/src/components/Dropdown/Root/Root.tsx +104 -0
- package/src/components/Dropdown/Root/WalletAddress.tsx +123 -0
- package/src/components/Dropdown/Root/WelcomeBlock.tsx +173 -0
- package/src/components/Dropdown/Settings/InlineEditField.tsx +212 -0
- package/src/components/Dropdown/Settings/Settings.tsx +87 -0
- package/src/components/Dropdown/SlotNumber.tsx +131 -0
- package/src/components/Dropdown/TestnetTopBanner.tsx +32 -0
- package/src/components/Dropdown/index.ts +2 -0
- package/src/components/index.ts +1 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useUpdateUserProfile.ts +34 -0
- package/src/hooks/useWalletAccount.ts +2 -8
- package/src/index.ts +1 -0
- package/src/stores/dropdownStore.ts +1 -0
- package/src/utils/validation.test.ts +97 -0
- package/src/utils/validation.ts +35 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Block, ButtonIcon, Check, Close, Input, LabelSmall, ParagraphSmall, Spinner, useStyletron, } from "@mezo-org/mezo-clay";
|
|
2
|
+
import React, { useCallback, useEffect, useState } from "react";
|
|
3
|
+
import EditIcon from "../../../assets/EditIcon";
|
|
4
|
+
function InlineFieldWrapper({ label, children }) {
|
|
5
|
+
const [, theme] = useStyletron();
|
|
6
|
+
return (React.createElement(Block, { display: "flex", flexDirection: "column", overrides: {
|
|
7
|
+
Block: {
|
|
8
|
+
style: {
|
|
9
|
+
gap: theme.sizing.scale200,
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
} },
|
|
13
|
+
React.createElement(LabelSmall, { color: theme.colors.contentSecondary }, label),
|
|
14
|
+
children));
|
|
15
|
+
}
|
|
16
|
+
export default function InlineEditField(props) {
|
|
17
|
+
const { label, value, placeholder, onSave, validate, isLoading } = props;
|
|
18
|
+
const [, theme] = useStyletron();
|
|
19
|
+
const [isEditing, setIsEditing] = useState(false);
|
|
20
|
+
const [editValue, setEditValue] = useState(value);
|
|
21
|
+
const [error, setError] = useState(null);
|
|
22
|
+
const [isSaving, setIsSaving] = useState(false);
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
setEditValue(value);
|
|
25
|
+
}, [value]);
|
|
26
|
+
const handleEdit = useCallback(() => {
|
|
27
|
+
setIsEditing(true);
|
|
28
|
+
setEditValue(value);
|
|
29
|
+
setError(null);
|
|
30
|
+
}, [value]);
|
|
31
|
+
const handleCancel = useCallback(() => {
|
|
32
|
+
setIsEditing(false);
|
|
33
|
+
setEditValue(value);
|
|
34
|
+
setError(null);
|
|
35
|
+
}, [value]);
|
|
36
|
+
const handleSave = useCallback(async () => {
|
|
37
|
+
if (validate) {
|
|
38
|
+
const validationError = validate(editValue);
|
|
39
|
+
if (validationError) {
|
|
40
|
+
setError(validationError);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
setIsSaving(true);
|
|
45
|
+
try {
|
|
46
|
+
await onSave(editValue);
|
|
47
|
+
setIsEditing(false);
|
|
48
|
+
setError(null);
|
|
49
|
+
}
|
|
50
|
+
catch (err) {
|
|
51
|
+
setError(err instanceof Error ? err.message : "Failed to save");
|
|
52
|
+
}
|
|
53
|
+
finally {
|
|
54
|
+
setIsSaving(false);
|
|
55
|
+
}
|
|
56
|
+
}, [editValue, onSave, validate]);
|
|
57
|
+
const handleKeyDown = useCallback((e) => {
|
|
58
|
+
if (e.key === "Enter") {
|
|
59
|
+
handleSave();
|
|
60
|
+
}
|
|
61
|
+
else if (e.key === "Escape") {
|
|
62
|
+
handleCancel();
|
|
63
|
+
}
|
|
64
|
+
}, [handleSave, handleCancel]);
|
|
65
|
+
if (isLoading) {
|
|
66
|
+
return (React.createElement(InlineFieldWrapper, { label: label },
|
|
67
|
+
React.createElement(Block, { display: "flex", alignItems: "center", height: theme.sizing.scale950 },
|
|
68
|
+
React.createElement(Spinner, { "$size": theme.sizing.scale600 }))));
|
|
69
|
+
}
|
|
70
|
+
if (isEditing) {
|
|
71
|
+
return (React.createElement(InlineFieldWrapper, { label: label },
|
|
72
|
+
React.createElement(Block, { display: "flex", alignItems: "center", width: "100%", gridGap: "scale300" },
|
|
73
|
+
React.createElement(Block, { flex: 1 },
|
|
74
|
+
React.createElement(Input, { value: editValue, onChange: (e) => {
|
|
75
|
+
setEditValue(e.currentTarget.value);
|
|
76
|
+
setError(null);
|
|
77
|
+
}, onKeyDown: handleKeyDown, placeholder: placeholder, size: "small", error: !!error, disabled: isSaving, autoFocus: true })),
|
|
78
|
+
React.createElement(ButtonIcon, { onClick: handleSave, size: "small", shape: "circle", kind: "secondary", disabled: isSaving, "aria-label": "Save" }, isSaving ? (React.createElement(Spinner, { "$size": theme.sizing.scale500 })) : (React.createElement(Check, { size: 14, color: "currentColor" }))),
|
|
79
|
+
React.createElement(ButtonIcon, { onClick: handleCancel, size: "small", shape: "circle", kind: "tertiary", disabled: isSaving, "aria-label": "Cancel" },
|
|
80
|
+
React.createElement(Close, { size: 14, color: "currentColor" }))),
|
|
81
|
+
error && (React.createElement(ParagraphSmall, { color: theme.colors.contentNegative, marginTop: 0, marginBottom: 0 }, error))));
|
|
82
|
+
}
|
|
83
|
+
return (React.createElement(InlineFieldWrapper, { label: label },
|
|
84
|
+
React.createElement(Block, { display: "flex", alignItems: "center", justifyContent: "space-between", onClick: handleEdit, overrides: {
|
|
85
|
+
Block: {
|
|
86
|
+
style: {
|
|
87
|
+
cursor: "pointer",
|
|
88
|
+
minHeight: theme.sizing.scale950,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
} },
|
|
92
|
+
React.createElement(ParagraphSmall, { marginTop: 0, marginBottom: 0, color: value ? theme.colors.contentPrimary : theme.colors.contentTertiary }, value || placeholder),
|
|
93
|
+
React.createElement(EditIcon, { size: 16, color: theme.colors.contentTertiary }))));
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=InlineEditField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineEditField.js","sourceRoot":"","sources":["../../../../../src/components/Dropdown/Settings/InlineEditField.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,UAAU,EACV,KAAK,EACL,KAAK,EACL,KAAK,EACL,UAAU,EACV,cAAc,EACd,OAAO,EACP,YAAY,GACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC/D,OAAO,QAAQ,MAAM,0BAA0B,CAAA;AAgB/C,SAAS,kBAAkB,C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../src/components/Dropdown/Settings/Settings.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAA;AAM1C,iBAAS,QAAQ,sBA6EhB;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Block, ParagraphSmall, Link, useStyletron } from "@mezo-org/mezo-clay";
|
|
2
|
+
import React, { useCallback } from "react";
|
|
3
|
+
import NestedViewLayout from "../NestedViewLayout";
|
|
4
|
+
import InlineEditField from "./InlineEditField";
|
|
5
|
+
import { useGetCurrentAccount, useUpdateUserProfile } from "../../../hooks";
|
|
6
|
+
import { validateEmail, validateTelegram } from "../../../utils/validation";
|
|
7
|
+
function Settings() {
|
|
8
|
+
const [, theme] = useStyletron();
|
|
9
|
+
const { data: account, isPending: isCurrentAccountPending } = useGetCurrentAccount();
|
|
10
|
+
const { updateProfileAsync } = useUpdateUserProfile();
|
|
11
|
+
const handleSaveEmail = useCallback(async (value) => {
|
|
12
|
+
await updateProfileAsync({ email: value || "" });
|
|
13
|
+
}, [updateProfileAsync]);
|
|
14
|
+
const handleSaveTelegram = useCallback(async (value) => {
|
|
15
|
+
const handle = value.startsWith("@") ? value.slice(1) : value;
|
|
16
|
+
await updateProfileAsync({ telegram: handle || "" });
|
|
17
|
+
}, [updateProfileAsync]);
|
|
18
|
+
return (React.createElement(NestedViewLayout, null,
|
|
19
|
+
React.createElement(ParagraphSmall, { marginTop: 0, marginBottom: theme.sizing.scale800, color: theme.colors.contentSecondary }, "Update your contact information to stay connected."),
|
|
20
|
+
React.createElement(Block, { display: "flex", flexDirection: "column", overrides: {
|
|
21
|
+
Block: {
|
|
22
|
+
style: {
|
|
23
|
+
gap: theme.sizing.scale600,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
} },
|
|
27
|
+
React.createElement(InlineEditField, { label: "Email", value: account?.email || "", placeholder: "Enter your email", onSave: handleSaveEmail, validate: validateEmail, isLoading: isCurrentAccountPending }),
|
|
28
|
+
React.createElement(InlineEditField, { label: "Telegram", value: account?.telegram || "", placeholder: "Enter your Telegram handle", onSave: handleSaveTelegram, validate: validateTelegram, isLoading: isCurrentAccountPending })),
|
|
29
|
+
React.createElement(ParagraphSmall, { marginTop: theme.sizing.scale800, marginBottom: 0, color: theme.colors.contentTertiary },
|
|
30
|
+
"By providing your contact information, you agree to receive service notifications and occasional promotional messages. Promotional messages will always include an opt out link. The Privacy Policy is available",
|
|
31
|
+
" ",
|
|
32
|
+
React.createElement(Link, { href: "https://mezo.org/privacy", target: "_blank" }, "here"),
|
|
33
|
+
".")));
|
|
34
|
+
}
|
|
35
|
+
export default Settings;
|
|
36
|
+
//# sourceMappingURL=Settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Settings.js","sourceRoot":"","sources":["../../../../../src/components/Dropdown/Settings/Settings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAC/E,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,gBAAgB,MAAM,qBAAqB,CAAA;AAClD,OAAO,eAAe,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAC3E,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE3E,SAAS,QAAQ;IACf,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,YAAY,EAAE,CAAA;IAEhC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,GACzD,oBAAoB,EAAE,CAAA;IACxB,MAAM,EAAE,kBAAkB,EAAE,GAAG,oBAAoB,EAAE,CAAA;IAErD,MAAM,eAAe,GAAG,WAAW,CACjC,KAAK,EAAE,KAAa,EAAE,EAAE;QACtB,MAAM,kBAA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ClC,CACI;QAER,oBAAC,cAAc,IACb,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,EAChC,YAAY,EAAE,CAAC,EACf,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,eAAe;;YAIkC,GAAG;YACxE,oBAAC,IAAI,IAAC,IAAI,EAAC,0BAA0B,EAAC,MAAM,EAAC,QAAQ,WAE9C;gBAEQ,CACA,CACpB,CAAA;AACH,CAAC;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type SlotNumberProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
children: number;
|
|
5
|
+
formatFunction?: (value: number) => string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* SlotNumber component displays a number with animated digits.
|
|
9
|
+
*
|
|
10
|
+
* @typedef {object} SlotNumberProps
|
|
11
|
+
* @property {number} children - The number to display.
|
|
12
|
+
* @property {function} [formatFunction] - Optional function to format the number.
|
|
13
|
+
* @property {BlockProps} [restProps] - Additional properties for the Block component.
|
|
14
|
+
* @see https://pyszkowski.dev/writings/slot-number
|
|
15
|
+
* @returns {JSX.Element} The rendered SlotNumber component.
|
|
16
|
+
*/
|
|
17
|
+
declare function SlotNumber(props: SlotNumberProps): React.JSX.Element;
|
|
18
|
+
export default SlotNumber;
|
|
19
|
+
//# sourceMappingURL=SlotNumber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlotNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/SlotNumber.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAItC,KAAK,eAAe,GAAG;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;CAC3C,CAAA;AAoED;;;;;;;;;GASG;AACH,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,qBAyCzC;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* eslint-disable react/no-array-index-key */
|
|
2
|
+
import React, { useMemo } from "react";
|
|
3
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
4
|
+
import { Block, useStyletron } from "@mezo-org/mezo-clay";
|
|
5
|
+
function SlotNumberDigit(props) {
|
|
6
|
+
const { children: value, ...restProps } = props;
|
|
7
|
+
const [css] = useStyletron();
|
|
8
|
+
const digits = [...Array(10).keys()];
|
|
9
|
+
return (React.createElement(AnimatePresence, { initial: false },
|
|
10
|
+
React.createElement(motion.div, { initial: {
|
|
11
|
+
y: "100%",
|
|
12
|
+
}, animate: {
|
|
13
|
+
y: "0%",
|
|
14
|
+
}, layout: "position", className: css({
|
|
15
|
+
position: "relative",
|
|
16
|
+
}), ...restProps },
|
|
17
|
+
React.createElement(Block, { overrides: {
|
|
18
|
+
Block: {
|
|
19
|
+
style: {
|
|
20
|
+
visibility: "hidden",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
} }, value),
|
|
24
|
+
React.createElement(motion.div, { className: css({
|
|
25
|
+
display: "flex",
|
|
26
|
+
flexDirection: "column",
|
|
27
|
+
position: "absolute",
|
|
28
|
+
inset: 0,
|
|
29
|
+
height: "fit-content",
|
|
30
|
+
}), initial: false, animate: { y: `${(value / 10) * -100}%` }, transition: {
|
|
31
|
+
type: "spring",
|
|
32
|
+
damping: 16,
|
|
33
|
+
stiffness: 220,
|
|
34
|
+
} }, digits.map((digit) => (React.createElement(Block, { as: "span", key: digit }, digit)))))));
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* SlotNumber component displays a number with animated digits.
|
|
38
|
+
*
|
|
39
|
+
* @typedef {object} SlotNumberProps
|
|
40
|
+
* @property {number} children - The number to display.
|
|
41
|
+
* @property {function} [formatFunction] - Optional function to format the number.
|
|
42
|
+
* @property {BlockProps} [restProps] - Additional properties for the Block component.
|
|
43
|
+
* @see https://pyszkowski.dev/writings/slot-number
|
|
44
|
+
* @returns {JSX.Element} The rendered SlotNumber component.
|
|
45
|
+
*/
|
|
46
|
+
function SlotNumber(props) {
|
|
47
|
+
const { children: value, formatFunction, ...restProps } = props;
|
|
48
|
+
const [css] = useStyletron();
|
|
49
|
+
const characters = useMemo(() => {
|
|
50
|
+
const formattedValue = formatFunction
|
|
51
|
+
? formatFunction(value)
|
|
52
|
+
: value.toString();
|
|
53
|
+
return formattedValue
|
|
54
|
+
.split("")
|
|
55
|
+
.map((character) => (/^[0-9]$/.test(character) ? +character : character))
|
|
56
|
+
.reverse();
|
|
57
|
+
}, [formatFunction, value]);
|
|
58
|
+
return (React.createElement(motion.div, { layout: true, className: css({
|
|
59
|
+
display: "inline-flex",
|
|
60
|
+
flexDirection: "row-reverse",
|
|
61
|
+
justifyContent: "flex-end",
|
|
62
|
+
overflow: "hidden",
|
|
63
|
+
userSelect: "none",
|
|
64
|
+
}), ...restProps }, characters.map((character, index) => typeof character === "number" ? (React.createElement(SlotNumberDigit, { key: `slot-number-character-${index}` }, character)) : (React.createElement(motion.span, { layout: true, key: `slot-number-character-${index}` }, character)))));
|
|
65
|
+
}
|
|
66
|
+
export default SlotNumber;
|
|
67
|
+
//# sourceMappingURL=SlotNumber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlotNumber.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/SlotNumber.tsx"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAazD,SAAS,eAAe,CAAC,KAA2B;IAClD,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestnetTopBanner.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/TestnetTopBanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,MAAM,CAAC,OAAO,UAAU,gBAAgB,6BAsBvC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Block, InfoCircle, LabelSmall, useStyletron, } from "@mezo-org/mezo-clay";
|
|
3
|
+
import { usePassportContext } from "../../hooks/usePassportContext";
|
|
4
|
+
export default function TestnetTopBanner() {
|
|
5
|
+
const [, theme] = useStyletron();
|
|
6
|
+
const { environment } = usePassportContext();
|
|
7
|
+
if (environment !== "testnet") {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
return (React.createElement(Block, { display: "flex", alignItems: "center", padding: `${theme.sizing.scale700} ${theme.sizing.scale600}`, backgroundColor: theme.colors.warning },
|
|
11
|
+
React.createElement(InfoCircle, { size: theme.sizing.scale550 }),
|
|
12
|
+
React.createElement(LabelSmall, { marginLeft: theme.sizing.scale500 }, "You are using testnet funds.")));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=TestnetTopBanner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestnetTopBanner.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/TestnetTopBanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EACL,KAAK,EACL,UAAU,EACV,UAAU,EACV,YAAY,GACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAEnE,MAAM,CAAC,OAAO,UAAU,gBAAgB;IACtC,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,YAAY,EAAE,CAAA;IAEhC,MAAM,EAAE,WAAW,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAE5C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,CACL,oBAAC,KAAK,IACJ,OAAO,EAAC,MAAM,EACd,UAAU,EAAC,QAAQ,EACnB,OAAO,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,QAAQ,IAAI,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,EAC5D,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;QAErC,oBAAC,UAAU,IAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,GAAI;QAC3C,oBAAC,UAAU,IAAC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,mCAEhC,CACP,CACT,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAA"}
|
|
@@ -14,6 +14,7 @@ export * from "./useSignOut";
|
|
|
14
14
|
export * from "./useSignUpWithWallet";
|
|
15
15
|
export { useTokensBalances, useInvalidateTokensBalances, useResetTokensBalances, } from "./useTokensBalances";
|
|
16
16
|
export * from "./useUpdateMezoId";
|
|
17
|
+
export * from "./useUpdateUserProfile";
|
|
17
18
|
export * from "./useValidateMezoId";
|
|
18
19
|
export * from "./useRewardsApiClient";
|
|
19
20
|
export * from "./useWalletAccount";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kDAAkD,EAClD,4BAA4B,EAC5B,oDAAoD,GACrD,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAC7E,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AACrC,OAAO,EACL,iBAAiB,EACjB,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,qBAAqB,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kDAAkD,EAClD,4BAA4B,EAC5B,oDAAoD,GACrD,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAC7E,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AACrC,OAAO,EACL,iBAAiB,EACjB,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,qBAAqB,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA"}
|
package/dist/src/hooks/index.js
CHANGED
|
@@ -14,6 +14,7 @@ export * from "./useSignOut";
|
|
|
14
14
|
export * from "./useSignUpWithWallet";
|
|
15
15
|
export { useTokensBalances, useInvalidateTokensBalances, useResetTokensBalances, } from "./useTokensBalances";
|
|
16
16
|
export * from "./useUpdateMezoId";
|
|
17
|
+
export * from "./useUpdateUserProfile";
|
|
17
18
|
export * from "./useValidateMezoId";
|
|
18
19
|
export * from "./useRewardsApiClient";
|
|
19
20
|
export * from "./useWalletAccount";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kDAAkD,EAClD,4BAA4B,EAC5B,oDAAoD,GACrD,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AA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ACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA"}
|
|
@@ -26,6 +26,8 @@ export declare function useAcceptDocuments(mutationOptions?: Omit<MutationOption
|
|
|
26
26
|
acceptedAt?: string;
|
|
27
27
|
isCurrentVersionAccepted: boolean;
|
|
28
28
|
}>;
|
|
29
|
+
email?: string;
|
|
30
|
+
telegram?: string;
|
|
29
31
|
}, Error, Record<DocumentType, {
|
|
30
32
|
version: string;
|
|
31
33
|
}>, unknown>;
|
|
@@ -38,6 +40,8 @@ export declare function useAcceptDocuments(mutationOptions?: Omit<MutationOption
|
|
|
38
40
|
acceptedAt?: string;
|
|
39
41
|
isCurrentVersionAccepted: boolean;
|
|
40
42
|
}>;
|
|
43
|
+
email?: string;
|
|
44
|
+
telegram?: string;
|
|
41
45
|
}, Error, Record<DocumentType, {
|
|
42
46
|
version: string;
|
|
43
47
|
}>, unknown>;
|
|
@@ -67,6 +71,8 @@ export declare function useAcceptDocuments(mutationOptions?: Omit<MutationOption
|
|
|
67
71
|
acceptedAt?: string;
|
|
68
72
|
isCurrentVersionAccepted: boolean;
|
|
69
73
|
}>;
|
|
74
|
+
email?: string;
|
|
75
|
+
telegram?: string;
|
|
70
76
|
}, Error, Record<DocumentType, {
|
|
71
77
|
version: string;
|
|
72
78
|
}>, unknown>;
|
|
@@ -79,6 +85,8 @@ export declare function useAcceptDocuments(mutationOptions?: Omit<MutationOption
|
|
|
79
85
|
acceptedAt?: string;
|
|
80
86
|
isCurrentVersionAccepted: boolean;
|
|
81
87
|
}>;
|
|
88
|
+
email?: string;
|
|
89
|
+
telegram?: string;
|
|
82
90
|
}, Error, Record<DocumentType, {
|
|
83
91
|
version: string;
|
|
84
92
|
}>, unknown>;
|
|
@@ -108,6 +116,8 @@ export declare function useAcceptDocuments(mutationOptions?: Omit<MutationOption
|
|
|
108
116
|
acceptedAt?: string;
|
|
109
117
|
isCurrentVersionAccepted: boolean;
|
|
110
118
|
}>;
|
|
119
|
+
email?: string;
|
|
120
|
+
telegram?: string;
|
|
111
121
|
}, Error, Record<DocumentType, {
|
|
112
122
|
version: string;
|
|
113
123
|
}>, unknown>;
|
|
@@ -120,6 +130,8 @@ export declare function useAcceptDocuments(mutationOptions?: Omit<MutationOption
|
|
|
120
130
|
acceptedAt?: string;
|
|
121
131
|
isCurrentVersionAccepted: boolean;
|
|
122
132
|
}>;
|
|
133
|
+
email?: string;
|
|
134
|
+
telegram?: string;
|
|
123
135
|
}, Error, Record<DocumentType, {
|
|
124
136
|
version: string;
|
|
125
137
|
}>, unknown>;
|
|
@@ -133,6 +145,8 @@ export declare function useAcceptDocuments(mutationOptions?: Omit<MutationOption
|
|
|
133
145
|
acceptedAt?: string;
|
|
134
146
|
isCurrentVersionAccepted: boolean;
|
|
135
147
|
}>;
|
|
148
|
+
email?: string;
|
|
149
|
+
telegram?: string;
|
|
136
150
|
};
|
|
137
151
|
error: null;
|
|
138
152
|
variables: Record<DocumentType, {
|
|
@@ -158,6 +172,8 @@ export declare function useAcceptDocuments(mutationOptions?: Omit<MutationOption
|
|
|
158
172
|
acceptedAt?: string;
|
|
159
173
|
isCurrentVersionAccepted: boolean;
|
|
160
174
|
}>;
|
|
175
|
+
email?: string;
|
|
176
|
+
telegram?: string;
|
|
161
177
|
}, Error, Record<DocumentType, {
|
|
162
178
|
version: string;
|
|
163
179
|
}>, unknown>;
|
|
@@ -170,6 +186,8 @@ export declare function useAcceptDocuments(mutationOptions?: Omit<MutationOption
|
|
|
170
186
|
acceptedAt?: string;
|
|
171
187
|
isCurrentVersionAccepted: boolean;
|
|
172
188
|
}>;
|
|
189
|
+
email?: string;
|
|
190
|
+
telegram?: string;
|
|
173
191
|
}, Error, Record<DocumentType, {
|
|
174
192
|
version: string;
|
|
175
193
|
}>, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAcceptDocuments.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAcceptDocuments.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EACf,YAAY,EACb,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,EACV,uBAAuB,EAEvB,YAAY,EACb,MAAM,QAAQ,CAAA;AAEf,wBAAgB,kBAAkB,CAChC,eAAe,GAAE,IAAI,CACnB,eAAe,CACb,uBAAuB,EACvB,YAAY,EACZ,MAAM,CAAC,YAAY,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAC1C,EACD,YAAY,GAAG,aAAa,CACxB
|
|
1
|
+
{"version":3,"file":"useAcceptDocuments.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAcceptDocuments.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EACf,YAAY,EACb,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,EACV,uBAAuB,EAEvB,YAAY,EACb,MAAM,QAAQ,CAAA;AAEf,wBAAgB,kBAAkB,CAChC,eAAe,GAAE,IAAI,CACnB,eAAe,CACb,uBAAuB,EACvB,YAAY,EACZ,MAAM,CAAC,YAAY,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAC1C,EACD,YAAY,GAAG,aAAa,CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAH8B,MAAM;;;;;;;;;;;;;;iBAAN,MAAM;;;;;iBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAN,MAAM;;;;;;;;;;;;;;iBAAN,MAAM;;;;;;iBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;iBAAN,MAAM;;;;;;;;;;;;;;iBAAN,MAAM;;;;;;;;;;;;;;;;;iBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;iBAAN,MAAM;;;;;;;;;;;;;;iBAAN,MAAM;;EAyC3C"}
|
|
@@ -15,11 +15,11 @@ declare function useAuthenticateWithWallet(shouldCreateAccount?: boolean, mutati
|
|
|
15
15
|
failureReason: Error | null;
|
|
16
16
|
isPaused: boolean;
|
|
17
17
|
submittedAt: number;
|
|
18
|
-
authenticateWithWallet: import("@tanstack/react-query").UseMutateFunction<Session, Error, number | void, unknown>;
|
|
19
|
-
authenticateWithWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Session, Error, number | void, unknown>;
|
|
18
|
+
authenticateWithWallet: import("@tanstack/react-query").UseMutateFunction<Session, Error, number | void | undefined, unknown>;
|
|
19
|
+
authenticateWithWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Session, Error, number | void | undefined, unknown>;
|
|
20
20
|
} | {
|
|
21
21
|
data: undefined;
|
|
22
|
-
variables: number | void;
|
|
22
|
+
variables: number | void | undefined;
|
|
23
23
|
error: null;
|
|
24
24
|
isError: false;
|
|
25
25
|
isIdle: false;
|
|
@@ -32,12 +32,12 @@ declare function useAuthenticateWithWallet(shouldCreateAccount?: boolean, mutati
|
|
|
32
32
|
failureReason: Error | null;
|
|
33
33
|
isPaused: boolean;
|
|
34
34
|
submittedAt: number;
|
|
35
|
-
authenticateWithWallet: import("@tanstack/react-query").UseMutateFunction<Session, Error, number | void, unknown>;
|
|
36
|
-
authenticateWithWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Session, Error, number | void, unknown>;
|
|
35
|
+
authenticateWithWallet: import("@tanstack/react-query").UseMutateFunction<Session, Error, number | void | undefined, unknown>;
|
|
36
|
+
authenticateWithWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Session, Error, number | void | undefined, unknown>;
|
|
37
37
|
} | {
|
|
38
38
|
data: undefined;
|
|
39
39
|
error: Error;
|
|
40
|
-
variables: number | void;
|
|
40
|
+
variables: number | void | undefined;
|
|
41
41
|
isError: true;
|
|
42
42
|
isIdle: false;
|
|
43
43
|
isPending: false;
|
|
@@ -49,12 +49,12 @@ declare function useAuthenticateWithWallet(shouldCreateAccount?: boolean, mutati
|
|
|
49
49
|
failureReason: Error | null;
|
|
50
50
|
isPaused: boolean;
|
|
51
51
|
submittedAt: number;
|
|
52
|
-
authenticateWithWallet: import("@tanstack/react-query").UseMutateFunction<Session, Error, number | void, unknown>;
|
|
53
|
-
authenticateWithWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Session, Error, number | void, unknown>;
|
|
52
|
+
authenticateWithWallet: import("@tanstack/react-query").UseMutateFunction<Session, Error, number | void | undefined, unknown>;
|
|
53
|
+
authenticateWithWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Session, Error, number | void | undefined, unknown>;
|
|
54
54
|
} | {
|
|
55
55
|
data: Session;
|
|
56
56
|
error: null;
|
|
57
|
-
variables: number | void;
|
|
57
|
+
variables: number | void | undefined;
|
|
58
58
|
isError: false;
|
|
59
59
|
isIdle: false;
|
|
60
60
|
isPending: false;
|
|
@@ -66,8 +66,8 @@ declare function useAuthenticateWithWallet(shouldCreateAccount?: boolean, mutati
|
|
|
66
66
|
failureReason: Error | null;
|
|
67
67
|
isPaused: boolean;
|
|
68
68
|
submittedAt: number;
|
|
69
|
-
authenticateWithWallet: import("@tanstack/react-query").UseMutateFunction<Session, Error, number | void, unknown>;
|
|
70
|
-
authenticateWithWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Session, Error, number | void, unknown>;
|
|
69
|
+
authenticateWithWallet: import("@tanstack/react-query").UseMutateFunction<Session, Error, number | void | undefined, unknown>;
|
|
70
|
+
authenticateWithWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Session, Error, number | void | undefined, unknown>;
|
|
71
71
|
};
|
|
72
72
|
export { useAuthenticateWithWallet };
|
|
73
73
|
//# sourceMappingURL=useAuthenticateWithWallet.d.ts.map
|
|
@@ -24,6 +24,8 @@ export declare function useCreateAccount(mutationOptions?: Omit<MutationOptions<
|
|
|
24
24
|
acceptedAt?: string;
|
|
25
25
|
isCurrentVersionAccepted: boolean;
|
|
26
26
|
}>;
|
|
27
|
+
email?: string;
|
|
28
|
+
telegram?: string;
|
|
27
29
|
}, Error, CreateAccountRequest, unknown>;
|
|
28
30
|
createAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
29
31
|
mezoId: string;
|
|
@@ -34,6 +36,8 @@ export declare function useCreateAccount(mutationOptions?: Omit<MutationOptions<
|
|
|
34
36
|
acceptedAt?: string;
|
|
35
37
|
isCurrentVersionAccepted: boolean;
|
|
36
38
|
}>;
|
|
39
|
+
email?: string;
|
|
40
|
+
telegram?: string;
|
|
37
41
|
}, Error, CreateAccountRequest, unknown>;
|
|
38
42
|
} | {
|
|
39
43
|
data: undefined;
|
|
@@ -59,6 +63,8 @@ export declare function useCreateAccount(mutationOptions?: Omit<MutationOptions<
|
|
|
59
63
|
acceptedAt?: string;
|
|
60
64
|
isCurrentVersionAccepted: boolean;
|
|
61
65
|
}>;
|
|
66
|
+
email?: string;
|
|
67
|
+
telegram?: string;
|
|
62
68
|
}, Error, CreateAccountRequest, unknown>;
|
|
63
69
|
createAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
64
70
|
mezoId: string;
|
|
@@ -69,6 +75,8 @@ export declare function useCreateAccount(mutationOptions?: Omit<MutationOptions<
|
|
|
69
75
|
acceptedAt?: string;
|
|
70
76
|
isCurrentVersionAccepted: boolean;
|
|
71
77
|
}>;
|
|
78
|
+
email?: string;
|
|
79
|
+
telegram?: string;
|
|
72
80
|
}, Error, CreateAccountRequest, unknown>;
|
|
73
81
|
} | {
|
|
74
82
|
data: undefined;
|
|
@@ -94,6 +102,8 @@ export declare function useCreateAccount(mutationOptions?: Omit<MutationOptions<
|
|
|
94
102
|
acceptedAt?: string;
|
|
95
103
|
isCurrentVersionAccepted: boolean;
|
|
96
104
|
}>;
|
|
105
|
+
email?: string;
|
|
106
|
+
telegram?: string;
|
|
97
107
|
}, Error, CreateAccountRequest, unknown>;
|
|
98
108
|
createAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
99
109
|
mezoId: string;
|
|
@@ -104,6 +114,8 @@ export declare function useCreateAccount(mutationOptions?: Omit<MutationOptions<
|
|
|
104
114
|
acceptedAt?: string;
|
|
105
115
|
isCurrentVersionAccepted: boolean;
|
|
106
116
|
}>;
|
|
117
|
+
email?: string;
|
|
118
|
+
telegram?: string;
|
|
107
119
|
}, Error, CreateAccountRequest, unknown>;
|
|
108
120
|
} | {
|
|
109
121
|
data: {
|
|
@@ -115,6 +127,8 @@ export declare function useCreateAccount(mutationOptions?: Omit<MutationOptions<
|
|
|
115
127
|
acceptedAt?: string;
|
|
116
128
|
isCurrentVersionAccepted: boolean;
|
|
117
129
|
}>;
|
|
130
|
+
email?: string;
|
|
131
|
+
telegram?: string;
|
|
118
132
|
};
|
|
119
133
|
error: null;
|
|
120
134
|
variables: CreateAccountRequest;
|
|
@@ -138,6 +152,8 @@ export declare function useCreateAccount(mutationOptions?: Omit<MutationOptions<
|
|
|
138
152
|
acceptedAt?: string;
|
|
139
153
|
isCurrentVersionAccepted: boolean;
|
|
140
154
|
}>;
|
|
155
|
+
email?: string;
|
|
156
|
+
telegram?: string;
|
|
141
157
|
}, Error, CreateAccountRequest, unknown>;
|
|
142
158
|
createAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
143
159
|
mezoId: string;
|
|
@@ -148,6 +164,8 @@ export declare function useCreateAccount(mutationOptions?: Omit<MutationOptions<
|
|
|
148
164
|
acceptedAt?: string;
|
|
149
165
|
isCurrentVersionAccepted: boolean;
|
|
150
166
|
}>;
|
|
167
|
+
email?: string;
|
|
168
|
+
telegram?: string;
|
|
151
169
|
}, Error, CreateAccountRequest, unknown>;
|
|
152
170
|
};
|
|
153
171
|
//# sourceMappingURL=useCreateAccount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCreateAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EACf,YAAY,EACb,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAA;AAIzE,wBAAgB,gBAAgB,CAC9B,eAAe,GAAE,IAAI,CACnB,eAAe,CAAC,qBAAqB,EAAE,YAAY,EAAE,oBAAoB,CAAC,EAC1E,YAAY,GAAG,aAAa,CACxB
|
|
1
|
+
{"version":3,"file":"useCreateAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCreateAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EACf,YAAY,EACb,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAA;AAIzE,wBAAgB,gBAAgB,CAC9B,eAAe,GAAE,IAAI,CACnB,eAAe,CAAC,qBAAqB,EAAE,YAAY,EAAE,oBAAoB,CAAC,EAC1E,YAAY,GAAG,aAAa,CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CP"}
|