@lontar/admin 0.1.1 → 0.1.2

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.
@@ -36,6 +36,9 @@ export declare class ApiClientError extends Error {
36
36
  readonly issues?: ApiIssue[];
37
37
  constructor(message: string, status: number, issues?: ApiIssue[]);
38
38
  }
39
+ export declare function formatApiErrorMessage(err: unknown): string;
40
+ export type UnauthorizedHandler = () => void;
41
+ export declare function setOnUnauthorized(handler: UnauthorizedHandler | null): void;
39
42
  export declare function fetchClientConfig(apiBase: string): Promise<ClientConfig>;
40
43
  export declare function fetchSession(apiBase: string): Promise<AuthSessionResponse | null>;
41
44
  export declare function signIn(apiBase: string, credentials: {
@@ -1,7 +1,7 @@
1
1
  export interface RichTextEditorProps {
2
2
  name: string;
3
3
  value?: Record<string, unknown> | null;
4
- onChange?: (value: Record<string, unknown>) => void;
4
+ onChange?: (value: Record<string, unknown> | null) => void;
5
5
  disabled?: boolean;
6
6
  }
7
7
  export declare function RichTextEditor({ name, value, onChange, disabled }: RichTextEditorProps): import('react').JSX.Element;