sanity-plugin-utils
2.0.202.0.21
dist/index.d.ts~
dist/index.d.tsModified+11−11
Index: package/dist/index.d.ts
===================================================================
--- package/dist/index.d.ts
+++ package/dist/index.d.ts
@@ -16,18 +16,18 @@
type FeedbackProps = (FeedbackChildren | FeedbackTextProps) & {
tone?: CardTone;
icon?: ReactNode;
};
-declare function Feedback(props: FeedbackProps): import("react").JSX.Element;
+export declare function Feedback(props: FeedbackProps): import("react").JSX.Element;
type TableProps = PropsWithChildren<CardProps>;
-declare function Table(props: TableProps): import("react").JSX.Element;
+export declare function Table(props: TableProps): import("react").JSX.Element;
type TableRowProps = PropsWithChildren<CardProps>;
-declare function Row(props: TableRowProps): import("react").JSX.Element;
+export declare function Row(props: TableRowProps): import("react").JSX.Element;
type TableCellProps = PropsWithChildren<CardProps & {
colSpan?: number;
rowSpan?: number;
}>;
-declare function Cell(props: TableCellProps): import("react").JSX.Element;
+export declare function Cell(props: TableCellProps): import("react").JSX.Element;
type UserRole = {
name: string;
title: string;
};
@@ -49,9 +49,9 @@
};
type HookConfig = {
apiVersion?: string;
};
-declare function useProjectUsers({ apiVersion }: HookConfig): UserExtended[];
+export declare function useProjectUsers({ apiVersion }: HookConfig): UserExtended[];
type Labels = {
addMe?: string;
removeMe?: string;
clear?: string;
@@ -66,11 +66,11 @@
onClear: () => void;
labels?: Labels;
style?: React.CSSProperties;
};
-declare function UserSelectMenu(props: UserSelectMenuProps): import("react").JSX.Element;
-declare function useImageUrlBuilder(clientOptions: SourceClientOptions): ImageUrlBuilder | null;
-declare function useImageUrlBuilderImage(source: SanityImageSource, clientOptions: SourceClientOptions): ImageUrlBuilder | null;
+export declare function UserSelectMenu(props: UserSelectMenuProps): import("react").JSX.Element;
+export declare function useImageUrlBuilder(clientOptions: SourceClientOptions): ImageUrlBuilder | null;
+export declare function useImageUrlBuilderImage(source: SanityImageSource, clientOptions: SourceClientOptions): ImageUrlBuilder | null;
interface Config<V> {
params?: ListenQueryParams;
options?: ListenQueryOptions;
initialValue?: null | V;
@@ -79,11 +79,11 @@
loading: boolean;
error: unknown;
data: V | null;
}
-declare function useListeningQuery<V>(query: string | {
+export declare function useListeningQuery<V>(query: string | {
fetch: string;
listen: string;
}, { params, options, initialValue }: Config<V>): Return<V>;
-declare function useOpenInNewPane(id?: string, type?: string): () => void;
-export { Cell, Feedback, Row, Table, type UserExtended, UserSelectMenu, useImageUrlBuilder, useImageUrlBuilderImage, useListeningQuery, useOpenInNewPane, useProjectUsers };
+export declare function useOpenInNewPane(id?: string, type?: string): () => void;
+export type { UserExtended };
//# sourceMappingURL=index.d.ts.map
\ No newline at end of file