@misofm/privy-auth 0.0.0-stage → 0.2.0
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/LICENSE +21 -0
- package/README.md +349 -2
- package/dist/account.d.ts +22 -0
- package/dist/account.js +27 -0
- package/dist/address.d.ts +6 -0
- package/dist/address.js +9 -0
- package/dist/config.d.ts +16 -0
- package/dist/config.js +18 -0
- package/dist/failure.d.ts +92 -0
- package/dist/failure.js +98 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/oauth.d.ts +15 -0
- package/dist/oauth.js +22 -0
- package/dist/privy-actions.d.ts +58 -0
- package/dist/privy-actions.js +54 -0
- package/dist/react.d.ts +9 -0
- package/dist/react.js +9 -0
- package/dist/server.d.ts +94 -0
- package/dist/server.js +196 -0
- package/dist/sign-in-flow.d.ts +77 -0
- package/dist/sign-in-flow.js +96 -0
- package/dist/sign-in.d.ts +66 -0
- package/dist/sign-in.js +91 -0
- package/dist/signer.d.ts +69 -0
- package/dist/signer.js +105 -0
- package/dist/token.d.ts +13 -0
- package/dist/token.js +29 -0
- package/dist/ui/class-name.d.ts +4 -0
- package/dist/ui/class-name.js +2 -0
- package/dist/ui/code-field.d.ts +31 -0
- package/dist/ui/code-field.js +17 -0
- package/dist/ui/consent-line.d.ts +24 -0
- package/dist/ui/consent-line.js +15 -0
- package/dist/ui/email-field.d.ts +39 -0
- package/dist/ui/email-field.js +18 -0
- package/dist/ui/marks.d.ts +5 -0
- package/dist/ui/marks.js +9 -0
- package/dist/ui/oauth-button.d.ts +28 -0
- package/dist/ui/oauth-button.js +17 -0
- package/dist/ui/or-separator.d.ts +12 -0
- package/dist/ui/or-separator.js +10 -0
- package/dist/ui.d.ts +12 -0
- package/dist/ui.js +12 -0
- package/package.json +85 -4
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/** Miso's Terms of Use. */
|
|
3
|
+
export const TERMS_OF_USE_URL = 'https://miso.fm/terms-of-use/';
|
|
4
|
+
/** Miso's Privacy Policy. */
|
|
5
|
+
export const PRIVACY_POLICY_URL = 'https://miso.fm/privacy-policy/';
|
|
6
|
+
const COPY = { agree: 'By signing in, you agree to our', terms: 'Terms of Use', acknowledge: 'and acknowledge our', privacy: 'Privacy Policy' };
|
|
7
|
+
/**
|
|
8
|
+
* The standard consent line under a sign-in: agree to the Terms of Use, acknowledge the Privacy
|
|
9
|
+
* Policy (a notice, not a contract), each a link to miso.fm in a new tab. Unstyled: `className`
|
|
10
|
+
* for the paragraph, `classNames.link` for both links.
|
|
11
|
+
*/
|
|
12
|
+
export function ConsentLine({ className, classNames, copy }) {
|
|
13
|
+
const words = { ...COPY, ...copy };
|
|
14
|
+
return (_jsxs("p", { className: className, children: [words.agree, ' ', _jsx("a", { href: TERMS_OF_USE_URL, target: "_blank", rel: "noopener noreferrer", className: classNames?.link, children: words.terms }), ' ', words.acknowledge, ' ', _jsx("a", { href: PRIVACY_POLICY_URL, target: "_blank", rel: "noopener noreferrer", className: classNames?.link, children: words.privacy }), "."] }));
|
|
15
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Input } from '@ui-sdk/react/input';
|
|
2
|
+
import { Option } from 'effect';
|
|
3
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
4
|
+
import type { EmailProblem } from '../sign-in-flow.js';
|
|
5
|
+
/** What an `EmailField` says for each problem. */
|
|
6
|
+
export type EmailMessages = {
|
|
7
|
+
readonly missing: ReactNode;
|
|
8
|
+
readonly malformed: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export interface EmailFieldProps extends Omit<ComponentProps<typeof Input>, 'type' | 'value' | 'onValueChange' | 'className' | 'children'> {
|
|
11
|
+
readonly value: string;
|
|
12
|
+
readonly onValueChange: (value: string) => void;
|
|
13
|
+
/** "Email" by default. */
|
|
14
|
+
readonly label?: ReactNode;
|
|
15
|
+
/** Above the box, or inside it (a placeholder while empty and unfocused, then small above the text: style it with `peer`). */
|
|
16
|
+
readonly labelPlacement?: 'above' | 'inside' | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Who checks the email. `flow` (default): `useSignIn` does, and `problem` is its `emailProblem`
|
|
19
|
+
* (the form `noValidate`). `native`: the browser does (`required`, `type="email"`; the form
|
|
20
|
+
* validates), and ui-sdk shows its own problems with these messages.
|
|
21
|
+
*/
|
|
22
|
+
readonly validation?: 'flow' | 'native' | undefined;
|
|
23
|
+
readonly problem?: Option.Option<EmailProblem> | undefined;
|
|
24
|
+
readonly messages?: Partial<EmailMessages> | undefined;
|
|
25
|
+
readonly classNames?: {
|
|
26
|
+
readonly root?: string | undefined;
|
|
27
|
+
/** The box around the input and the label inside it (`labelPlacement="inside"`). */
|
|
28
|
+
readonly box?: string | undefined;
|
|
29
|
+
readonly label?: string | undefined;
|
|
30
|
+
readonly input?: string | undefined;
|
|
31
|
+
readonly error?: string | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The email field of a sign-in (ui-sdk's `Field`, `FieldLabel`, `Input`, `FieldError`), unstyled:
|
|
36
|
+
* an email input (`autocomplete="email"`, the email keyboard, no capitals or spell check) named
|
|
37
|
+
* by its label, and its problem as its `FieldError` (announced by ui-sdk; no `role="alert"`).
|
|
38
|
+
*/
|
|
39
|
+
export declare function EmailField({ value, onValueChange, label, labelPlacement, validation, problem, messages, classNames, ...input }: EmailFieldProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Field, FieldError, FieldLabel } from '@ui-sdk/react/field';
|
|
3
|
+
import { Input } from '@ui-sdk/react/input';
|
|
4
|
+
import { Option } from 'effect';
|
|
5
|
+
import { classNameOf } from './class-name.js';
|
|
6
|
+
const MESSAGES = { missing: 'Enter your email address.', malformed: 'Enter an email address like name@example.com.' };
|
|
7
|
+
/**
|
|
8
|
+
* The email field of a sign-in (ui-sdk's `Field`, `FieldLabel`, `Input`, `FieldError`), unstyled:
|
|
9
|
+
* an email input (`autocomplete="email"`, the email keyboard, no capitals or spell check) named
|
|
10
|
+
* by its label, and its problem as its `FieldError` (announced by ui-sdk; no `role="alert"`).
|
|
11
|
+
*/
|
|
12
|
+
export function EmailField({ value, onValueChange, label = 'Email', labelPlacement = 'above', validation = 'flow', problem = Option.none(), messages, classNames, ...input }) {
|
|
13
|
+
const words = { ...MESSAGES, ...messages };
|
|
14
|
+
const shown = validation === 'flow' ? Option.getOrUndefined(problem) : undefined;
|
|
15
|
+
const control = (_jsx(Input, { type: "email", name: "email", autoComplete: "email", inputMode: "email", autoCapitalize: "none", spellCheck: false, required: validation === 'native', placeholder: labelPlacement === 'inside' ? ' ' : undefined, ...input, value: value, onValueChange: (next) => onValueChange(next), ...classNameOf(classNames?.input) }));
|
|
16
|
+
const name = _jsx(FieldLabel, { ...classNameOf(classNames?.label), children: label });
|
|
17
|
+
return (_jsxs(Field, { ...(validation === 'flow' ? { invalid: shown !== undefined } : {}), ...classNameOf(classNames?.root), children: [labelPlacement === 'inside' ? (_jsxs("div", { ...classNameOf(classNames?.box), children: [control, name] })) : (_jsxs(_Fragment, { children: [name, control] })), validation === 'native' ? (_jsxs(_Fragment, { children: [_jsx(FieldError, { match: "valueMissing", ...classNameOf(classNames?.error), children: words.missing }), _jsx(FieldError, { match: "typeMismatch", ...classNameOf(classNames?.error), children: words.malformed })] })) : (shown !== undefined && (_jsx(FieldError, { match: true, ...classNameOf(classNames?.error), children: shown === 'Missing' ? words.missing : words.malformed })))] }));
|
|
18
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
/** Google's "G" in its four colours, unaltered (Google's sign-in branding). 20 px unless sized. */
|
|
3
|
+
export declare function GoogleMark(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
4
|
+
/** Apple's logo in one colour (`currentColor`: the text's, black or white as Apple asks). 18 × 20 px unless sized. */
|
|
5
|
+
export declare function AppleMark(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
package/dist/ui/marks.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/** Google's "G" in its four colours, unaltered (Google's sign-in branding). 20 px unless sized. */
|
|
3
|
+
export function GoogleMark(props) {
|
|
4
|
+
return (_jsxs("svg", { viewBox: "0 0 48 48", width: "20", height: "20", "aria-hidden": "true", focusable: "false", ...props, children: [_jsx("path", { fill: "#EA4335", d: "M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z" }), _jsx("path", { fill: "#4285F4", d: "M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z" }), _jsx("path", { fill: "#FBBC05", d: "M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z" }), _jsx("path", { fill: "#34A853", d: "M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z" })] }));
|
|
5
|
+
}
|
|
6
|
+
/** Apple's logo in one colour (`currentColor`: the text's, black or white as Apple asks). 18 × 20 px unless sized. */
|
|
7
|
+
export function AppleMark(props) {
|
|
8
|
+
return (_jsx("svg", { viewBox: "0 0 814 1000", width: "18", height: "20", "aria-hidden": "true", focusable: "false", fill: "currentColor", ...props, children: _jsx("path", { d: "M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z" }) }));
|
|
9
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import type { OAuthProvider } from '../oauth.js';
|
|
3
|
+
/** What an `OAuthButton`'s function `className` is given: `disabled` includes `busy`. */
|
|
4
|
+
export type OAuthButtonState = {
|
|
5
|
+
readonly busy: boolean;
|
|
6
|
+
readonly disabled: boolean;
|
|
7
|
+
};
|
|
8
|
+
export interface OAuthButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'children' | 'type'> {
|
|
9
|
+
readonly provider: OAuthProvider;
|
|
10
|
+
/** Leaving for the provider (or back from it): `spinner` shows, and the button takes no presses. */
|
|
11
|
+
readonly busy?: boolean | undefined;
|
|
12
|
+
/** "Continue with Google" / "Continue with Apple" by default (their branding's wording). */
|
|
13
|
+
readonly label?: ReactNode;
|
|
14
|
+
/** Shown while busy: in place of the mark, or (`busyLabel={false}`) of the mark and the label. */
|
|
15
|
+
readonly spinner?: ReactNode;
|
|
16
|
+
/** Whether the label stays while busy (`true` by default). */
|
|
17
|
+
readonly busyLabel?: boolean | undefined;
|
|
18
|
+
readonly className?: string | ((state: OAuthButtonState) => string) | undefined;
|
|
19
|
+
readonly classNames?: {
|
|
20
|
+
readonly mark?: string | undefined;
|
|
21
|
+
} | undefined;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Continue with Google or Apple: a native button with the provider's mark (`GoogleMark`,
|
|
25
|
+
* `AppleMark`) and name, unstyled. `aria-busy` and `data-busy` while busy, `disabled` while busy
|
|
26
|
+
* or disabled (`data-provider` names it).
|
|
27
|
+
*/
|
|
28
|
+
export declare function OAuthButton({ provider, busy, disabled, label, spinner, busyLabel, className, classNames, ...props }: OAuthButtonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AppleMark, GoogleMark } from './marks.js';
|
|
3
|
+
const PROVIDERS = {
|
|
4
|
+
google: { name: 'Google', Mark: GoogleMark },
|
|
5
|
+
apple: { name: 'Apple', Mark: AppleMark },
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Continue with Google or Apple: a native button with the provider's mark (`GoogleMark`,
|
|
9
|
+
* `AppleMark`) and name, unstyled. `aria-busy` and `data-busy` while busy, `disabled` while busy
|
|
10
|
+
* or disabled (`data-provider` names it).
|
|
11
|
+
*/
|
|
12
|
+
export function OAuthButton({ provider, busy = false, disabled = false, label, spinner, busyLabel = true, className, classNames, ...props }) {
|
|
13
|
+
const { name, Mark } = PROVIDERS[provider];
|
|
14
|
+
const inactive = disabled || busy;
|
|
15
|
+
const text = label ?? `Continue with ${name}`;
|
|
16
|
+
return (_jsx("button", { type: "button", "aria-busy": busy || undefined, "data-busy": busy || undefined, "data-provider": provider, disabled: inactive, className: typeof className === 'function' ? className({ busy, disabled: inactive }) : className, ...props, children: busy ? (_jsxs(_Fragment, { children: [spinner, busyLabel && text] })) : (_jsxs(_Fragment, { children: [_jsx(Mark, { className: classNames?.mark }), text] })) }));
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* "or" between two hairlines (ui-sdk's `Separator`, decorative: the word already divides).
|
|
4
|
+
* Unstyled: `className` for the row, `classNames.line` for each line.
|
|
5
|
+
*/
|
|
6
|
+
export declare function OrSeparator({ label, className, classNames }: {
|
|
7
|
+
readonly label?: ReactNode;
|
|
8
|
+
readonly className?: string | undefined;
|
|
9
|
+
readonly classNames?: {
|
|
10
|
+
readonly line?: string | undefined;
|
|
11
|
+
} | undefined;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Separator } from '@ui-sdk/react/separator';
|
|
3
|
+
import { classNameOf } from './class-name.js';
|
|
4
|
+
/**
|
|
5
|
+
* "or" between two hairlines (ui-sdk's `Separator`, decorative: the word already divides).
|
|
6
|
+
* Unstyled: `className` for the row, `classNames.line` for each line.
|
|
7
|
+
*/
|
|
8
|
+
export function OrSeparator({ label = 'or', className, classNames }) {
|
|
9
|
+
return (_jsxs("div", { className: className, children: [_jsx(Separator, { decorative: true, ...classNameOf(classNames?.line) }), label, _jsx(Separator, { decorative: true, ...classNameOf(classNames?.line) })] }));
|
|
10
|
+
}
|
package/dist/ui.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@misofm/privy-auth/ui`: unstyled parts of a sign-in screen, on ui-sdk (`@ui-sdk/react`
|
|
3
|
+
* 0.1.0-beta.17, a peer). Each takes `className` (and `classNames` for its inner parts) and its
|
|
4
|
+
* words as props, with defaults; each app lays them out in its own screen. `OAuthButton`, the
|
|
5
|
+
* marks and `ConsentLine` import no ui-sdk.
|
|
6
|
+
*/
|
|
7
|
+
export { CodeField, type CodeFieldProps, createCodeFieldController } from './ui/code-field.js';
|
|
8
|
+
export { type ConsentCopy, ConsentLine, PRIVACY_POLICY_URL, TERMS_OF_USE_URL } from './ui/consent-line.js';
|
|
9
|
+
export { EmailField, type EmailFieldProps, type EmailMessages } from './ui/email-field.js';
|
|
10
|
+
export { AppleMark, GoogleMark } from './ui/marks.js';
|
|
11
|
+
export { OAuthButton, type OAuthButtonProps, type OAuthButtonState } from './ui/oauth-button.js';
|
|
12
|
+
export { OrSeparator } from './ui/or-separator.js';
|
package/dist/ui.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@misofm/privy-auth/ui`: unstyled parts of a sign-in screen, on ui-sdk (`@ui-sdk/react`
|
|
3
|
+
* 0.1.0-beta.17, a peer). Each takes `className` (and `classNames` for its inner parts) and its
|
|
4
|
+
* words as props, with defaults; each app lays them out in its own screen. `OAuthButton`, the
|
|
5
|
+
* marks and `ConsentLine` import no ui-sdk.
|
|
6
|
+
*/
|
|
7
|
+
export { CodeField, createCodeFieldController } from './ui/code-field.js';
|
|
8
|
+
export { ConsentLine, PRIVACY_POLICY_URL, TERMS_OF_USE_URL } from './ui/consent-line.js';
|
|
9
|
+
export { EmailField } from './ui/email-field.js';
|
|
10
|
+
export { AppleMark, GoogleMark } from './ui/marks.js';
|
|
11
|
+
export { OAuthButton } from './ui/oauth-button.js';
|
|
12
|
+
export { OrSeparator } from './ui/or-separator.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,87 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@misofm/privy-auth",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Privy sign-in shared by Miso's apps, in Effect: the embedded Sui wallet, Privy's failures, its config, identity tokens verified on the server, and the sign-in screen's hooks and parts.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/misofm/privy-auth.git"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"import": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./signer": {
|
|
24
|
+
"types": "./dist/signer.d.ts",
|
|
25
|
+
"import": "./dist/signer.js"
|
|
26
|
+
},
|
|
27
|
+
"./server": {
|
|
28
|
+
"types": "./dist/server.d.ts",
|
|
29
|
+
"import": "./dist/server.js"
|
|
30
|
+
},
|
|
31
|
+
"./react": {
|
|
32
|
+
"types": "./dist/react.d.ts",
|
|
33
|
+
"import": "./dist/react.js"
|
|
34
|
+
},
|
|
35
|
+
"./ui": {
|
|
36
|
+
"types": "./dist/ui.d.ts",
|
|
37
|
+
"import": "./dist/ui.js"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
42
|
+
"typecheck": "tsc --noEmit",
|
|
43
|
+
"test": "bun test --coverage",
|
|
44
|
+
"pack": "bun run build && mkdir -p dist-pack && bun pm pack --filename dist-pack/misofm-privy-auth.tgz",
|
|
45
|
+
"prepublishOnly": "bun run build"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"@mysten/sui": "2.38.0",
|
|
49
|
+
"@privy-io/react-auth": "3.52.0",
|
|
50
|
+
"@ui-sdk/core": "0.1.0-beta.17",
|
|
51
|
+
"@ui-sdk/react": "0.1.0-beta.17",
|
|
52
|
+
"effect": ">=4.1.2 <4.2",
|
|
53
|
+
"react": ">=19"
|
|
54
|
+
},
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"@mysten/sui": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"@privy-io/react-auth": {
|
|
60
|
+
"optional": true
|
|
61
|
+
},
|
|
62
|
+
"@ui-sdk/core": {
|
|
63
|
+
"optional": true
|
|
64
|
+
},
|
|
65
|
+
"@ui-sdk/react": {
|
|
66
|
+
"optional": true
|
|
67
|
+
},
|
|
68
|
+
"react": {
|
|
69
|
+
"optional": true
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@happy-dom/global-registrator": "21.0.4",
|
|
74
|
+
"@mysten/sui": "2.38.0",
|
|
75
|
+
"@privy-io/react-auth": "3.52.0",
|
|
76
|
+
"@testing-library/react": "16.3.3",
|
|
77
|
+
"@types/bun": "1.3.4",
|
|
78
|
+
"@types/react": "19.3.0",
|
|
79
|
+
"@types/react-dom": "19.3.0",
|
|
80
|
+
"@ui-sdk/core": "0.1.0-beta.17",
|
|
81
|
+
"@ui-sdk/react": "0.1.0-beta.17",
|
|
82
|
+
"effect": "4.1.2",
|
|
83
|
+
"react": "19.3.1",
|
|
84
|
+
"react-dom": "19.3.1",
|
|
85
|
+
"typescript": "6.0.3"
|
|
86
|
+
}
|
|
87
|
+
}
|