@stackframe/stack 2.2.1 → 2.2.4
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/components/card-frame.d.ts +1 -0
- package/dist/components/card-frame.js +2 -2
- package/dist/components/credential-sign-in.d.ts +1 -0
- package/dist/components/credential-sign-up.d.ts +1 -0
- package/dist/components/forgot-password.d.ts +1 -0
- package/dist/components/form-warning.d.ts +1 -0
- package/dist/components/message-card.d.ts +1 -0
- package/dist/components/oauth-button.d.ts +1 -0
- package/dist/components/oauth-group.d.ts +1 -0
- package/dist/components/password-field.d.ts +1 -0
- package/dist/components/password-reset-inner.d.ts +1 -0
- package/dist/components/redirect-message-card.d.ts +1 -0
- package/dist/components/separator-with-text.d.ts +1 -0
- package/dist/components/user-avatar.d.ts +1 -0
- package/dist/components/user-button.d.ts +1 -0
- package/dist/components/user-button.d.ts.map +1 -1
- package/dist/components/user-button.js +3 -1
- package/dist/components-core/avatar.d.ts +1 -0
- package/dist/components-core/button.d.ts +1 -0
- package/dist/components-core/card.d.ts +1 -0
- package/dist/components-core/collapsible.d.ts +1 -0
- package/dist/components-core/container.d.ts +1 -0
- package/dist/components-core/dropdown.d.ts +1 -0
- package/dist/components-core/index.d.ts +1 -0
- package/dist/components-core/input.d.ts +1 -0
- package/dist/components-core/label.d.ts +1 -0
- package/dist/components-core/link.d.ts +1 -0
- package/dist/components-core/loading-indicator.d.ts +1 -0
- package/dist/components-core/popover.d.ts +1 -0
- package/dist/components-core/separator.d.ts +1 -0
- package/dist/components-core/text.d.ts +1 -0
- package/dist/components-core-joy/button.d.ts +1 -0
- package/dist/components-core-joy/input.d.ts +1 -0
- package/dist/components-core-joy/separator.d.ts +1 -0
- package/dist/components-core-joy/text.d.ts +1 -0
- package/dist/components-page/account-settings.d.ts +1 -0
- package/dist/components-page/account-settings.js +3 -3
- package/dist/components-page/email-verification.d.ts +1 -0
- package/dist/components-page/forgot-password.d.ts +1 -0
- package/dist/components-page/oauth-callback.d.ts +1 -0
- package/dist/components-page/password-reset.d.ts +1 -0
- package/dist/components-page/sign-in.d.ts +1 -0
- package/dist/components-page/sign-out.d.ts +1 -0
- package/dist/components-page/sign-up.d.ts +1 -0
- package/dist/components-page/stack-handler.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/joy.d.ts +2 -0
- package/dist/joy.d.ts.map +1 -0
- package/dist/joy.js +1 -0
- package/dist/lib/auth.d.ts +1 -0
- package/dist/lib/cookie.d.ts +1 -0
- package/dist/lib/hooks.d.ts +1 -0
- package/dist/lib/stack-app.d.ts +1 -0
- package/dist/providers/component-provider.d.ts +1 -0
- package/dist/providers/design-provider.d.ts +1 -0
- package/dist/providers/joy-provider.d.ts +1 -0
- package/dist/providers/stack-provider-client.d.ts +1 -0
- package/dist/providers/stack-provider.d.ts +1 -0
- package/dist/providers/styled-components-registry.d.ts +1 -0
- package/dist/providers/theme-provider.d.ts +1 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/email.d.ts +1 -0
- package/dist/utils/next.d.ts +1 -0
- package/dist/utils/url.d.ts +1 -0
- package/package.json +13 -5
- package/dist/components/avatar.d.ts +0 -1
- package/dist/components/avatar.d.ts.map +0 -1
- package/dist/components/avatar.js +0 -1
- package/dist/components/card-header.d.ts +0 -6
- package/dist/components/card-header.d.ts.map +0 -1
- package/dist/components/card-header.js +0 -5
- package/dist/components/centered-card-header.d.ts +0 -6
- package/dist/components/centered-card-header.d.ts.map +0 -1
- package/dist/components/centered-card-header.js +0 -5
- package/dist/components/dashboard-frame.d.ts +0 -23
- package/dist/components/dashboard-frame.d.ts.map +0 -1
- package/dist/components/dashboard-frame.js +0 -20
- package/dist/components/divider-with-text.d.ts +0 -4
- package/dist/components/divider-with-text.d.ts.map +0 -1
- package/dist/components/divider-with-text.js +0 -6
- package/dist/components/email-verification.d.ts +0 -5
- package/dist/components/email-verification.d.ts.map +0 -1
- package/dist/components/email-verification.js +0 -29
- package/dist/components/logo.d.ts +0 -7
- package/dist/components/logo.d.ts.map +0 -1
- package/dist/components/logo.js +0 -7
- package/dist/components/oauth-callback.d.ts +0 -2
- package/dist/components/oauth-callback.d.ts.map +0 -1
- package/dist/components/oauth-callback.js +0 -17
- package/dist/components/password-reset.d.ts +0 -5
- package/dist/components/password-reset.d.ts.map +0 -1
- package/dist/components/password-reset.js +0 -37
- package/dist/components/sign-in.d.ts +0 -4
- package/dist/components/sign-in.d.ts.map +0 -1
- package/dist/components/sign-in.js +0 -20
- package/dist/components/sign-out.d.ts +0 -2
- package/dist/components/sign-out.d.ts.map +0 -1
- package/dist/components/sign-out.js +0 -13
- package/dist/components/sign-up.d.ts +0 -4
- package/dist/components/sign-up.d.ts.map +0 -1
- package/dist/components/sign-up.js +0 -20
- package/dist/components/stack-handler.d.ts +0 -9
- package/dist/components/stack-handler.d.ts.map +0 -1
- package/dist/components/stack-handler.js +0 -58
- package/dist/components-core/collapsble.d.ts +0 -5
- package/dist/components-core/collapsble.d.ts.map +0 -1
- package/dist/components-core/collapsble.js +0 -6
- package/dist/components-core/divider.d.ts +0 -5
- package/dist/components-core/divider.d.ts.map +0 -1
- package/dist/components-core/divider.js +0 -20
- package/dist/components-core-joy/card.d.ts +0 -3
- package/dist/components-core-joy/card.d.ts.map +0 -1
- package/dist/components-core-joy/card.js +0 -7
- package/dist/components-core-joy/divider.d.ts +0 -3
- package/dist/components-core-joy/divider.d.ts.map +0 -1
- package/dist/components-core-joy/divider.js +0 -7
- package/dist/elements/card-frame.d.ts +0 -7
- package/dist/elements/card-frame.d.ts.map +0 -1
- package/dist/elements/card-frame.js +0 -24
- package/dist/elements/card-header.d.ts +0 -6
- package/dist/elements/card-header.d.ts.map +0 -1
- package/dist/elements/card-header.js +0 -5
- package/dist/elements/credential-sign-in.d.ts +0 -2
- package/dist/elements/credential-sign-in.d.ts.map +0 -1
- package/dist/elements/credential-sign-in.js +0 -56
- package/dist/elements/credential-sign-up.d.ts +0 -2
- package/dist/elements/credential-sign-up.d.ts.map +0 -1
- package/dist/elements/credential-sign-up.js +0 -73
- package/dist/elements/divider-with-text.d.ts +0 -4
- package/dist/elements/divider-with-text.d.ts.map +0 -1
- package/dist/elements/divider-with-text.js +0 -6
- package/dist/elements/forgot-password.d.ts +0 -4
- package/dist/elements/forgot-password.d.ts.map +0 -1
- package/dist/elements/forgot-password.js +0 -32
- package/dist/elements/form-warning.d.ts +0 -4
- package/dist/elements/form-warning.d.ts.map +0 -1
- package/dist/elements/form-warning.js +0 -8
- package/dist/elements/message-card.d.ts +0 -7
- package/dist/elements/message-card.d.ts.map +0 -1
- package/dist/elements/message-card.js +0 -7
- package/dist/elements/oauth-button.d.ts +0 -5
- package/dist/elements/oauth-button.d.ts.map +0 -1
- package/dist/elements/oauth-button.js +0 -65
- package/dist/elements/oauth-group.d.ts +0 -4
- package/dist/elements/oauth-group.d.ts.map +0 -1
- package/dist/elements/oauth-group.js +0 -8
- package/dist/elements/password-field.d.ts +0 -3
- package/dist/elements/password-field.d.ts.map +0 -1
- package/dist/elements/password-field.js +0 -38
- package/dist/elements/password-reset-inner.d.ts +0 -5
- package/dist/elements/password-reset-inner.d.ts.map +0 -1
- package/dist/elements/password-reset-inner.js +0 -63
- package/dist/elements/redirect-message-card.d.ts +0 -5
- package/dist/elements/redirect-message-card.d.ts.map +0 -1
- package/dist/elements/redirect-message-card.js +0 -54
- package/dist/icons/logo.d.ts +0 -3
- package/dist/icons/logo.d.ts.map +0 -1
- package/dist/icons/logo.js +0 -7
- package/dist/providers/ui-provider.d.ts +0 -10
- package/dist/providers/ui-provider.js +0 -20
- package/dist/utils/react.d.ts +0 -2
- package/dist/utils/react.d.ts.map +0 -1
- package/dist/utils/react.js +0 -6
- package/dist/utils/results.d.ts +0 -25
- package/dist/utils/results.d.ts.map +0 -1
- package/dist/utils/results.js +0 -46
|
@@ -4,3 +4,4 @@ export default function CardFrame({ children, fullPage }: {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
fullPage?: boolean;
|
|
6
6
|
}): string | number | boolean | Iterable<React.ReactNode> | Promise<React.AwaitedReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
7
|
+
//# sourceMappingURL=card-frame.d.ts.map
|
|
@@ -15,8 +15,8 @@ export default function CardFrame({ children, fullPage = true }) {
|
|
|
15
15
|
height: hasNoParent ? '100vh' : '100%',
|
|
16
16
|
display: 'flex',
|
|
17
17
|
alignItems: 'center',
|
|
18
|
-
justifyContent: 'center'
|
|
19
|
-
}, children: _jsx(Container, { size:
|
|
18
|
+
justifyContent: 'center',
|
|
19
|
+
}, children: _jsx(Container, { size: 380, style: { padding: '1rem 1rem' }, children: children }) }));
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
22
|
return children;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const PasswordField: import("react").ForwardRefExoticComponent<import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
3
3
|
export default PasswordField;
|
|
4
|
+
//# sourceMappingURL=password-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-button.d.ts","sourceRoot":"","sources":["../../src/components/user-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user-button.d.ts","sourceRoot":"","sources":["../../src/components/user-button.tsx"],"names":[],"mappings":"AAqBA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,YAAoB,EACpB,aAAoB,GACrB,EAAE;IACD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,kDA0DA"}
|
|
@@ -5,6 +5,7 @@ import { RxPerson, RxEnter, RxSun, RxShadow } from "react-icons/rx";
|
|
|
5
5
|
import { runAsynchronously } from "@stackframe/stack-shared/dist/utils/promises";
|
|
6
6
|
import { SECONDARY_FONT_COLORS } from "../utils/constants";
|
|
7
7
|
import UserAvatar from "./user-avatar";
|
|
8
|
+
import { useRouter } from "next/navigation";
|
|
8
9
|
function Item(props) {
|
|
9
10
|
return (_jsxs(DropdownMenuItem, { onClick: () => runAsynchronously(props.onClick), style: { display: 'flex', gap: '0.5rem', alignItems: 'center' }, children: [props.icon, _jsx(Text, { children: props.text })] }));
|
|
10
11
|
}
|
|
@@ -12,6 +13,7 @@ export default function UserButton({ showUserInfo = false, showColorMode = true,
|
|
|
12
13
|
const { colorMode, setColorMode } = useDesign();
|
|
13
14
|
const user = useUser();
|
|
14
15
|
const app = useStackApp();
|
|
16
|
+
const router = useRouter();
|
|
15
17
|
const textStyles = {
|
|
16
18
|
textOverflow: 'ellipsis',
|
|
17
19
|
whiteSpace: 'nowrap',
|
|
@@ -19,7 +21,7 @@ export default function UserButton({ showUserInfo = false, showColorMode = true,
|
|
|
19
21
|
};
|
|
20
22
|
if (!user)
|
|
21
23
|
return null;
|
|
22
|
-
return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { children: _jsxs("div", { style: { display: 'flex', gap: '0.5rem', alignItems: 'center' }, children: [_jsx(UserAvatar, {}), showUserInfo && _jsxs("div", { style: { display: 'flex', flexDirection: 'column', justifyContent: 'center' }, children: [_jsx(Text, { style: textStyles, children: user.displayName }), _jsx(Text, { style: { ...textStyles, fontWeight: 400 }, variant: "secondary", size: "sm", children: user.primaryEmail })] })] }) }), _jsxs(DropdownMenuContent, { children: [_jsx(DropdownMenuLabel, { children: _jsxs("div", { style: { display: 'flex', gap: '0.5rem', alignItems: 'center' }, children: [_jsx(UserAvatar, {}), _jsxs("div", { children: [_jsx(Text, { children: user.displayName }), _jsx(Text, { variant: "secondary", size: "sm", style: { fontWeight: 400 }, children: user.primaryEmail })] })] }) }), _jsx(DropdownMenuSeparator, {}), _jsx(Item, { text: "Account settings", onClick: () => app.
|
|
24
|
+
return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { children: _jsxs("div", { style: { display: 'flex', gap: '0.5rem', alignItems: 'center' }, children: [_jsx(UserAvatar, {}), showUserInfo && _jsxs("div", { style: { display: 'flex', flexDirection: 'column', justifyContent: 'center' }, children: [_jsx(Text, { style: textStyles, children: user.displayName }), _jsx(Text, { style: { ...textStyles, fontWeight: 400 }, variant: "secondary", size: "sm", children: user.primaryEmail })] })] }) }), _jsxs(DropdownMenuContent, { children: [_jsx(DropdownMenuLabel, { children: _jsxs("div", { style: { display: 'flex', gap: '0.5rem', alignItems: 'center' }, children: [_jsx(UserAvatar, {}), _jsxs("div", { children: [_jsx(Text, { children: user.displayName }), _jsx(Text, { variant: "secondary", size: "sm", style: { fontWeight: 400 }, children: user.primaryEmail })] })] }) }), _jsx(DropdownMenuSeparator, {}), _jsx(Item, { text: "Account settings", onClick: () => runAsynchronously(router.push(app.urls.accountSettings)), icon: _jsx(RxPerson, { size: 22, color: SECONDARY_FONT_COLORS[colorMode] }) }), showColorMode && _jsx(Item, { text: colorMode === 'dark' ? 'Light theme' : 'Dark theme', onClick: () => setColorMode(colorMode === 'dark' ? 'light' : 'dark'), icon: colorMode === 'dark' ?
|
|
23
25
|
_jsx(RxSun, { size: 22, color: SECONDARY_FONT_COLORS[colorMode] }) :
|
|
24
26
|
_jsx(RxShadow, { size: 22, color: SECONDARY_FONT_COLORS[colorMode] }) }), _jsx(Item, { text: "Sign out", onClick: () => user.signOut(), icon: _jsx(RxEnter, { size: 22, color: SECONDARY_FONT_COLORS[colorMode] }) })] })] }));
|
|
25
27
|
}
|
|
@@ -4,3 +4,4 @@ declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.Avata
|
|
|
4
4
|
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
5
5
|
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
6
6
|
export { Avatar, AvatarImage, AvatarFallback };
|
|
7
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -8,3 +8,4 @@ export type ButtonProps = {
|
|
|
8
8
|
} & Omit<React.HTMLProps<HTMLButtonElement>, 'size' | 'type' | 'onClick'>;
|
|
9
9
|
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
10
|
export { Button, };
|
|
11
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -4,3 +4,4 @@ declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
4
4
|
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
export { Card, CardHeader, CardFooter, CardContent, };
|
|
7
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -4,3 +4,4 @@ declare const Collapsible: import("react").ForwardRefExoticComponent<Collapsible
|
|
|
4
4
|
declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
declare const CollapsibleContent: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
6
|
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
7
|
+
//# sourceMappingURL=collapsible.d.ts.map
|
|
@@ -11,3 +11,4 @@ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMe
|
|
|
11
11
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, };
|
|
14
|
+
//# sourceMappingURL=dropdown.d.ts.map
|
|
@@ -39,3 +39,4 @@ export declare const CollapsibleContent: React.ForwardRefExoticComponent<Omit<im
|
|
|
39
39
|
export declare const CardHeader: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
40
40
|
export declare const CardContent: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
41
41
|
export declare const CardFooter: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,3 +2,4 @@ import React from "react";
|
|
|
2
2
|
type InputProps = React.InputHTMLAttributes<HTMLInputElement> & Pick<React.HTMLProps<HTMLInputElement>, 'ref'>;
|
|
3
3
|
declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
4
4
|
export { Input };
|
|
5
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -2,3 +2,4 @@ import React from "react";
|
|
|
2
2
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
3
|
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
4
4
|
export { Label };
|
|
5
|
+
//# sourceMappingURL=label.d.ts.map
|
|
@@ -4,3 +4,4 @@ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
|
4
4
|
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
export { Popover, PopoverTrigger, PopoverContent };
|
|
7
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -2,3 +2,4 @@ import React from 'react';
|
|
|
2
2
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
3
|
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export { Separator };
|
|
5
|
+
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("../components-core/button").ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const Input: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement> & Pick<React.HTMLProps<HTMLInputElement>, "ref">, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
3
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export declare const Separator: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@radix-ui/react-separator").SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLHRElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -4,3 +4,4 @@ export declare const Text: React.ForwardRefExoticComponent<Omit<Omit<Omit<{
|
|
|
4
4
|
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | undefined;
|
|
5
5
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
6
6
|
} & Omit<React.HTMLProps<HTMLParagraphElement>, "size">, "ref"> & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -25,7 +25,7 @@ function ProfileSection() {
|
|
|
25
25
|
function EmailVerificationSection() {
|
|
26
26
|
const user = useUser();
|
|
27
27
|
const [emailSent, setEmailSent] = useState(false);
|
|
28
|
-
return (_jsx(SettingSection, { title: 'Email Verification', desc: 'We want to make sure that you own the email address', buttonDisabled: emailSent, buttonText: !user?.primaryEmailVerified ?
|
|
28
|
+
return (_jsx(SettingSection, { title: 'Email Verification', desc: 'We want to make sure that you own the email address.', buttonDisabled: emailSent, buttonText: !user?.primaryEmailVerified ?
|
|
29
29
|
emailSent ?
|
|
30
30
|
'Email sent!' :
|
|
31
31
|
'Send Email'
|
|
@@ -45,7 +45,7 @@ function PasswordSection() {
|
|
|
45
45
|
if (user?.authMethod !== 'credential') {
|
|
46
46
|
return null;
|
|
47
47
|
}
|
|
48
|
-
return (_jsxs(SettingSection, { title: 'Password', desc: 'Change your password', buttonDisabled: !oldPassword || !newPassword, buttonText: 'Save', onButtonClick: async () => {
|
|
48
|
+
return (_jsxs(SettingSection, { title: 'Password', desc: 'Change your password here.', buttonDisabled: !oldPassword || !newPassword, buttonText: 'Save', onButtonClick: async () => {
|
|
49
49
|
if (oldPassword && newPassword) {
|
|
50
50
|
const errorMessage = getPasswordError(newPassword);
|
|
51
51
|
if (errorMessage) {
|
|
@@ -78,7 +78,7 @@ function PasswordSection() {
|
|
|
78
78
|
}
|
|
79
79
|
function SignOutSection() {
|
|
80
80
|
const user = useUser();
|
|
81
|
-
return (_jsx(SettingSection, { title: 'Sign out', desc: 'Sign out of your account on this device', buttonVariant: 'secondary', buttonText: 'Sign Out', onButtonClick: () => user?.signOut() }));
|
|
81
|
+
return (_jsx(SettingSection, { title: 'Sign out', desc: 'Sign out of your account on this device.', buttonVariant: 'secondary', buttonText: 'Sign Out', onButtonClick: () => user?.signOut() }));
|
|
82
82
|
}
|
|
83
83
|
export default function AccountSettings({ fullPage = false }) {
|
|
84
84
|
const user = useUser();
|
package/dist/index.d.ts
CHANGED
|
@@ -18,5 +18,6 @@ export { default as AccountSettings } from "./components-page/account-settings";
|
|
|
18
18
|
export { useDesign } from './providers/design-provider';
|
|
19
19
|
export { useComponents } from './providers/component-provider';
|
|
20
20
|
export { StackTheme, ThemeConfig } from './providers/theme-provider';
|
|
21
|
-
export {
|
|
21
|
+
export { CurrentUser, Project, ServerUser, ApiKeySetFirstView, ApiKeySet } from './lib/stack-app';
|
|
22
22
|
export * from './components-core';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC1E,O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CHANGED
|
@@ -18,5 +18,4 @@ export { default as AccountSettings } from "./components-page/account-settings";
|
|
|
18
18
|
export { useDesign } from './providers/design-provider';
|
|
19
19
|
export { useComponents } from './providers/component-provider';
|
|
20
20
|
export { StackTheme } from './providers/theme-provider';
|
|
21
|
-
export { StackJoyTheme } from './providers/joy-provider';
|
|
22
21
|
export * from './components-core';
|
package/dist/joy.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"joy.d.ts","sourceRoot":"","sources":["../src/joy.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/joy.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { StackJoyTheme } from './providers/joy-provider';
|
package/dist/lib/auth.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export declare function signInWithOAuth(iface: StackClientInterface, { provider,
|
|
|
5
5
|
redirectUrl?: string;
|
|
6
6
|
}): Promise<void>;
|
|
7
7
|
export declare function callOAuthCallback(iface: StackClientInterface, tokenStore: TokenStore, redirectUrl: string): Promise<import("oauth4webapi").OAuth2TokenEndpointResponse | null>;
|
|
8
|
+
//# sourceMappingURL=auth.d.ts.map
|
package/dist/lib/cookie.d.ts
CHANGED
package/dist/lib/hooks.d.ts
CHANGED
package/dist/lib/stack-app.d.ts
CHANGED
|
@@ -8,3 +8,4 @@ export declare function StackTheme({ theme, children, colorModeConfig, }: {
|
|
|
8
8
|
theme?: DesignConfig & ComponentConfig;
|
|
9
9
|
colorModeConfig?: Omit<ComponentProps<typeof NextThemeProvider>, "themes" | "children">;
|
|
10
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=theme-provider.d.ts.map
|
package/dist/utils/email.d.ts
CHANGED
package/dist/utils/next.d.ts
CHANGED
package/dist/utils/url.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackframe/stack",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"
|
|
6
|
-
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"default": "./dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"./joy": {
|
|
11
|
+
"types": "./dist/joy.d.ts",
|
|
12
|
+
"default": "./dist/joy.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
7
15
|
"files": [
|
|
8
16
|
"dist"
|
|
9
17
|
],
|
|
@@ -22,8 +30,8 @@
|
|
|
22
30
|
"server-only": "^0.0.1",
|
|
23
31
|
"styled-components": "^6.1.8",
|
|
24
32
|
"tailwindcss-scoped-preflight": "^2.1.0",
|
|
25
|
-
"@stackframe/stack-sc": "1.3.
|
|
26
|
-
"@stackframe/stack-shared": "2.2.
|
|
33
|
+
"@stackframe/stack-sc": "1.3.1",
|
|
34
|
+
"@stackframe/stack-shared": "2.2.1"
|
|
27
35
|
},
|
|
28
36
|
"peerDependencies": {
|
|
29
37
|
"@mui/joy": "^5.0.0-beta.30",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/components/avatar.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-header.d.ts","sourceRoot":"","sources":["../../src/components/card-header.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,EAAE,QAAQ,EAAE,KAAK,EAAE,EACnB;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,2CAQ9C"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from "../components-core";
|
|
3
|
-
export default function CardHeader({ children, title }) {
|
|
4
|
-
return (_jsxs("div", { style: { textAlign: 'center', marginBottom: '24px' }, children: [_jsx(Text, { size: "xl", as: 'h2', style: { marginBottom: '5px' }, children: title }), children] }));
|
|
5
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"centered-card-header.d.ts","sourceRoot":"","sources":["../../src/components/centered-card-header.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,EAAE,QAAQ,EAAE,KAAK,EAAE,EACnB;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,2CAQ9C"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { CardHeader, Text } from "../components-core";
|
|
3
|
-
export default function CenteredCardHeader({ children, title }) {
|
|
4
|
-
return (_jsxs(CardHeader, { style: { textAlign: 'center' }, children: [_jsx(Text, { size: "xl", as: 'h2', style: { marginBottom: '5px' }, children: title }), children] }));
|
|
5
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
type SidebarItem = {
|
|
3
|
-
type: 'label' | 'link' | 'divider' | undefined;
|
|
4
|
-
} & ({
|
|
5
|
-
type: 'label';
|
|
6
|
-
text: string;
|
|
7
|
-
} | {
|
|
8
|
-
type: 'link';
|
|
9
|
-
text: string;
|
|
10
|
-
href: string;
|
|
11
|
-
} | {
|
|
12
|
-
type: 'divider';
|
|
13
|
-
});
|
|
14
|
-
export default function DashboardFrame(props: {
|
|
15
|
-
logoUrl?: string | {
|
|
16
|
-
dark: string;
|
|
17
|
-
light: string;
|
|
18
|
-
};
|
|
19
|
-
sidebarContent: SidebarItem[];
|
|
20
|
-
children?: React.ReactNode;
|
|
21
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=dashboard-frame.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-frame.d.ts","sourceRoot":"","sources":["../../src/components/dashboard-frame.tsx"],"names":[],"mappings":";AAOA,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;CAChD,GAAG,CACF;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE;IAC5C,OAAO,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,cAAc,EAAE,WAAW,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,2CAmCA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useMemo } from "react";
|
|
4
|
-
import { useDesign } from "../providers/design-provider";
|
|
5
|
-
import { LogoBright, LogoDark } from "./logo";
|
|
6
|
-
export default function DashboardFrame(props) {
|
|
7
|
-
const { colors, colorMode } = useDesign();
|
|
8
|
-
const logoSrc = useMemo(() => {
|
|
9
|
-
if (!props.logoUrl) {
|
|
10
|
-
return colorMode === 'dark' ? _jsx(LogoDark, {}) : _jsx(LogoBright, {});
|
|
11
|
-
}
|
|
12
|
-
else if (typeof props.logoUrl === 'string') {
|
|
13
|
-
return props.logoUrl;
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
return colorMode === 'dark' ? props.logoUrl?.dark : props.logoUrl?.light;
|
|
17
|
-
}
|
|
18
|
-
}, [props.logoUrl, colorMode]);
|
|
19
|
-
return (_jsxs("div", { style: { position: 'absolute', top: 0, left: 0, width: '100%', height: '100vh', display: 'flex', flexDirection: 'row' }, children: [_jsx("nav", { style: { width: '280px', height: '100%', borderRight: 1, borderRightStyle: 'solid', borderRightColor: colors.neutralColor }, children: _jsx("div", { style: { height: '50px', borderBottom: 1, borderBottomStyle: 'solid', borderBottomColor: colors.neutralColor, display: 'flex', alignItems: 'center', padding: '0 15px' }, children: _jsx(LogoBright, { height: 28 }) }) }), _jsxs("div", { style: { display: 'flex', flexDirection: 'column', width: '100%' }, children: [_jsx("nav", { style: { height: '50px', borderBottom: 1, borderBottomStyle: 'solid', borderBottomColor: colors.neutralColor } }), _jsx("div", { style: { height: 'calc(100% - 50px)', overflowY: 'auto' }, children: props.children })] })] }));
|
|
20
|
-
}
|