@levo-so/studio 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/{Beams-sX-ed8H5.js → Beams-CS3YOY03.js} +40 -27
  2. package/dist/Dots-ZOcduxeG.js +164 -0
  3. package/dist/Gradient-cEvo0m5K.js +50 -0
  4. package/dist/Grid-IxhqSV77.js +191 -0
  5. package/dist/{Waves-CCDZf3yc.js → Waves-Dc0a0Nd8.js} +45 -33
  6. package/dist/components/ActionWrapper.d.ts +1 -1
  7. package/dist/components/LoginForm/ErrorDisplay.d.ts +8 -0
  8. package/dist/components/LoginForm/GoogleOAuth.d.ts +10 -0
  9. package/dist/components/LoginForm/index.d.ts +7 -0
  10. package/dist/components/LoginModal/index.d.ts +7 -0
  11. package/dist/components/accessCard/EntryCard/index.d.ts +11 -0
  12. package/dist/components/accessCard/LoginCard/index.d.ts +7 -0
  13. package/dist/components/accessCard/MessageCard/index.d.ts +8 -0
  14. package/dist/components/accessCard/MessageFooter/index.d.ts +3 -0
  15. package/dist/components/accessCard/card/index.d.ts +10 -0
  16. package/dist/components/shared/EmailInput/index.d.ts +10 -0
  17. package/dist/components/shared/OTPInput/index.d.ts +11 -0
  18. package/dist/components/ui/StatefulButton/index.d.ts +15 -0
  19. package/dist/contentEngine/themeUtils.d.ts +1 -1
  20. package/dist/context/ModalManager.d.ts +21 -0
  21. package/dist/core/AccessManager/index.d.ts +7 -0
  22. package/dist/elements/UserMenu.d.ts +8 -0
  23. package/dist/elements/dialog/index.d.ts +16 -0
  24. package/dist/elements/index.d.ts +1 -0
  25. package/dist/hooks/useLogin.d.ts +29 -0
  26. package/dist/{index-DXb2tXBX.js → index-CS6HcUVk.js} +3472 -2536
  27. package/dist/index.css +1 -1
  28. package/dist/index.js +73 -71
  29. package/dist/interfaces/contentSchema.d.ts +11 -9
  30. package/dist/interfaces/levoBlock.d.ts +1 -0
  31. package/dist/pixel/constants/borderRadius.d.ts +30 -0
  32. package/dist/pixel/constants/colorOptions.d.ts +30 -25
  33. package/dist/pixel/constants/fontSizeOptions.d.ts +5 -0
  34. package/dist/pixel/index.d.ts +1 -1
  35. package/dist/pixel/optionsMap.d.ts +5 -1
  36. package/dist/pixel/parserUtil.d.ts +15 -0
  37. package/dist/pixel/propertyMap.d.ts +1 -1
  38. package/dist/providers/AuthProvider.d.ts +8 -10
  39. package/dist/utils/index.d.ts +1 -1
  40. package/dist/utils/levoClient.d.ts +5 -0
  41. package/dist/utils/withBlockPropsUtils.d.ts +2 -1
  42. package/package.json +4 -2
  43. package/dist/Dots-CIprNvGi.js +0 -140
  44. package/dist/Gradient-DIn_uQLE.js +0 -42
  45. package/dist/Grid-DXjfqDT3.js +0 -162
  46. package/dist/utils/blocksLevoClient.d.ts +0 -5
@@ -0,0 +1,8 @@
1
+ import { LevoError } from '@levo-so/core';
2
+ interface IErrorDisplayProps {
3
+ error: LevoError;
4
+ onDismiss?: () => void;
5
+ }
6
+ export declare const ErrorDisplay: React.FC<IErrorDisplayProps>;
7
+ export {};
8
+ //# sourceMappingURL=ErrorDisplay.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { LevoError } from '@levo-so/core';
2
+ interface IGoogleOAuthProps {
3
+ otpSent: boolean;
4
+ oAuthTitle: string;
5
+ onOAuthSuccess?: () => void;
6
+ onOAuthError?: (error?: LevoError) => void;
7
+ }
8
+ export declare const GoogleOAuth: React.FC<IGoogleOAuthProps>;
9
+ export {};
10
+ //# sourceMappingURL=GoogleOAuth.d.ts.map
@@ -0,0 +1,7 @@
1
+ interface ILoginFormProps {
2
+ className?: string;
3
+ oAuthTitle?: string;
4
+ }
5
+ declare const LoginForm: React.FC<ILoginFormProps>;
6
+ export default LoginForm;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { IModalConfig } from '../../context/ModalManager';
2
+ interface ILoginModalProps {
3
+ config?: IModalConfig;
4
+ }
5
+ declare const LoginModal: React.FC<ILoginModalProps>;
6
+ export default LoginModal;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,11 @@
1
+ import { IPageAccessGatingOptions, IPageAccessAuthenticationOptions } from '../../../interfaces';
2
+ interface IEntryCardProps {
3
+ logo?: string;
4
+ siteName?: string;
5
+ workspaceId: string;
6
+ options: IPageAccessGatingOptions | IPageAccessAuthenticationOptions | Record<string, unknown>;
7
+ onSuccess?: () => void;
8
+ }
9
+ declare const EntryCard: React.FC<IEntryCardProps>;
10
+ export default EntryCard;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,7 @@
1
+ interface ILoginCardProps {
2
+ logo?: string;
3
+ siteName?: string;
4
+ }
5
+ declare const LoginCard: React.FC<ILoginCardProps>;
6
+ export default LoginCard;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,8 @@
1
+ interface IMessageCardProps {
2
+ logo?: string;
3
+ siteName?: string;
4
+ message: string;
5
+ }
6
+ declare const MessageCard: React.FC<IMessageCardProps>;
7
+ export default MessageCard;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,3 @@
1
+ declare const MessageFooter: React.FC;
2
+ export default MessageFooter;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,10 @@
1
+ interface IAccessCardProps {
2
+ logo?: string;
3
+ siteName?: string;
4
+ children: React.ReactNode;
5
+ maxWidth?: 'sm' | 'md' | 'lg';
6
+ className?: string;
7
+ }
8
+ declare const AccessCard: React.FC<IAccessCardProps>;
9
+ export default AccessCard;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ interface IEmailInputProps {
3
+ email: string;
4
+ setEmail: Dispatch<SetStateAction<string>>;
5
+ otpSent: boolean;
6
+ handleReset: (skipEmailReset?: boolean) => void;
7
+ }
8
+ declare const EmailInput: React.FC<IEmailInputProps>;
9
+ export default EmailInput;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,11 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ interface IOTPInputProps {
3
+ otpSent: boolean;
4
+ otp: string;
5
+ setOtp: Dispatch<SetStateAction<string>>;
6
+ isResendingOtp: boolean;
7
+ resendOTP: (onResentSuccess?: (() => void) | undefined) => void;
8
+ }
9
+ declare const OTPInput: React.FC<IOTPInputProps>;
10
+ export default OTPInput;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ interface IStatefulButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
+ className?: string;
4
+ children: React.ReactNode;
5
+ isLoading?: boolean;
6
+ isError?: boolean;
7
+ loadingText?: string;
8
+ successText?: string;
9
+ errorText?: string;
10
+ variant?: "default" | "outline";
11
+ size?: "default" | "lg";
12
+ }
13
+ declare const StatefulButton: React.FC<IStatefulButtonProps>;
14
+ export default StatefulButton;
15
+ //# sourceMappingURL=index.d.ts.map
@@ -66,7 +66,7 @@ export declare const generateThemeVariables: (theme: ITheme) => {
66
66
  export declare const processTheme: ({ pageTheme, blocks, pageID, }: {
67
67
  pageTheme: ITheme;
68
68
  blocks?: IBlockInstance[];
69
- pageID: string;
69
+ pageID?: string;
70
70
  }) => {
71
71
  theme: ITheme;
72
72
  fonts: string[];
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ export interface IModalConfig {
3
+ redirect_uri?: string;
4
+ oAuthTitle?: string;
5
+ }
6
+ interface IMMInterface {
7
+ availableModals: string[];
8
+ openModals: {
9
+ key: string | null;
10
+ config?: IModalConfig;
11
+ };
12
+ openModal: (key: string, config?: IModalConfig) => void;
13
+ closeModal: () => void;
14
+ }
15
+ declare const MMProvider: React.FC<{
16
+ children: React.ReactNode;
17
+ siteName?: string | null;
18
+ }>;
19
+ export default MMProvider;
20
+ export declare const useModalManager: () => IMMInterface;
21
+ //# sourceMappingURL=ModalManager.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { IPageExpanded } from '../../interfaces';
2
+ declare const AccessManager: React.FC<{
3
+ page: IPageExpanded;
4
+ children: React.ReactNode;
5
+ }>;
6
+ export default AccessManager;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { BaseElementProps } from '../components/withBlockProps';
2
+ import * as React from "react";
3
+ export interface BaseUserMenuProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BaseElementProps, "content"> {
4
+ }
5
+ export declare const BaseUserMenu: React.FC<BaseUserMenuProps>;
6
+ export declare const UserMenu: import('../components/withBlockProps').WithBlockPropsComponent<BaseUserMenuProps>;
7
+ export default UserMenu;
8
+ //# sourceMappingURL=UserMenu.d.ts.map
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
3
+ declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
6
+ declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
7
+ declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
8
+ declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
9
+ showCloseButton?: boolean;
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
12
+ declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
13
+ declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
14
+ declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
15
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
16
+ //# sourceMappingURL=index.d.ts.map
@@ -13,4 +13,5 @@ export * from './accordion';
13
13
  export * from './popover';
14
14
  export * from './Link';
15
15
  export * from './Form';
16
+ export * from './UserMenu';
16
17
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,29 @@
1
+ import { ILevoMembership, LevoError } from '@levo-so/core';
2
+ export declare const useLogin: () => {
3
+ isLoading: boolean;
4
+ isSendingOtp: boolean;
5
+ resendOTP: (onResentSuccess?: () => void, onResentError?: (error: LevoError) => void) => void;
6
+ isVerifying: boolean;
7
+ isResendingOtp: boolean;
8
+ otpSent: boolean;
9
+ setOtpSent: import('react').Dispatch<import('react').SetStateAction<boolean>>;
10
+ otpResent: boolean;
11
+ setOtpResent: import('react').Dispatch<import('react').SetStateAction<boolean>>;
12
+ email: string;
13
+ setEmail: import('react').Dispatch<import('react').SetStateAction<string>>;
14
+ otp: string;
15
+ setOtp: import('react').Dispatch<import('react').SetStateAction<string>>;
16
+ isLoggedIn: boolean;
17
+ sendOTP: (onOTPSentSuccess?: () => void, onOTPSentError?: (error: LevoError) => void) => void;
18
+ verifyOTP: (config?: {
19
+ onLoginSuccess?: (account: ILevoMembership.Account | null) => void;
20
+ onLoginError?: (error: LevoError) => void;
21
+ }) => void;
22
+ handleReset: (skipEmailReset?: boolean) => void;
23
+ refetchLoginStatus: (onRefetchSuccess?: (user: ILevoMembership.Account) => void) => void;
24
+ signOut: (onSignOutSuccess?: () => void, onSignOutError?: (error: LevoError) => void) => void;
25
+ lastError: LevoError | null;
26
+ isAuthLoading: boolean;
27
+ clearError: () => void;
28
+ };
29
+ //# sourceMappingURL=useLogin.d.ts.map