sanity-plugin-utils

2.0.202.0.21
~

Modified (3 files)

Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "sanity-plugin-utils",
-  "version": "2.0.20",
+  "version": "2.0.21",
   "description": "Handy hooks and clever components for Sanity Studio v3",
   "keywords": [
     "sanity",
     "sanity-plugin"
@@ -29,23 +29,23 @@
   "dependencies": {
     "@sanity/asset-utils": "^2.3.0",
     "@sanity/icons": "^5.2.3",
     "@sanity/image-url": "^2.1.1",
-    "@sanity/ui": "^4.4.0",
+    "@sanity/ui": "^4.4.4",
     "dequal": "^2.0.3",
     "rxjs": "^7.8.2"
   },
   "devDependencies": {
     "@sanity/tsconfig": "^2.2.1",
-    "@sanity/tsdown-config": "^0.27.1",
+    "@sanity/tsdown-config": "^0.28.8",
     "@types/react": "^19.3.0",
     "@types/react-dom": "^19.3.0",
     "oxc-transform-react": "^0.153.0",
     "react": "^19.3.0",
     "react-dom": "^19.3.0",
-    "sanity": "^6.16.0",
+    "sanity": "^6.18.0",
     "styled-components": "^6.5.3",
-    "tsdown": "^0.22.14"
+    "tsdown": "^0.23.1"
   },
   "peerDependencies": {
     "react": "^19.2",
     "react-dom": "^19.2",
Index: package/dist/index.d.ts.map
===================================================================
--- package/dist/index.d.ts.map
+++ package/dist/index.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"index.d.ts","names":[],"sources":["../src/components/Feedback.tsx","../src/components/Table.tsx","../src/hooks/useProjectUsers.tsx","../src/components/UserSelectMenu/index.tsx","../src/hooks/useImageUrlBuilder.tsx","../src/hooks/useImageUrlBuilderImage.tsx","../src/hooks/useListeningQuery.tsx","../src/hooks/useOpenInNewPane.tsx"],"mappings":";;;;;KAGK;EACH,WAAW;EACX;EACA;;KAGG;EACH;EACA,cAAc;EACd;;KAGG,iBAAiB,mBAAmB;EACvC,OAAO;EACP,OAAO;;iBAOO,SAAS,OAAO,gCAAa,IAAA;KCCxC,aAAa,kBAAkB;iBAEpB,MAAM,OAAO,6BAAU,IAAA;KAqBlC,gBAAgB,kBAAkB;iBAEvB,IAAI,OAAO,gCAAa,IAAA;KAqBnC,iBAAiB,kBACpB;EACE;EACA;;iBAIY,KAAK,OAAO,iCAAc,IAAA;KC3ErC;EACH;EACA;;KAGU;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;;KASG;EACH;;iBAYc,kBAAiB,cAAa,aAAa;KCnBtD;EACH;EACA;EACA;EACA;EACA;;KAGG;EACH;EACA,UAAU;EACV,QAAQ;EACR,WAAW;EACX;EACA,SAAS;EACT,QAAQ,MAAM;;iBAWA,eAAe,OAAO,sCAAmB,IAAA;iBC9CzC,mBAAmB,eAAe,sBAAsB;iBCCxD,wBACd,QAAQ,mBACR,eAAe,sBACd;UCHO,OAAO;EACf,SAAS;EACT,UAAU;EACV,sBAAsB;;UAGd,OAAO;EACf;EACA;EACA,MAAM;;iBAYQ,kBAAkB,GAChC;EAAiB;EAAe;KAE9B,QACA,SACA,gBACC,OAAO,KACT,OAAO;iBC9BM,iBAAiB,aAAa"}
\ No newline at end of file
+{"version":3,"file":"index.d.ts","names":[],"sources":["../src/components/Feedback.tsx","../src/components/Table.tsx","../src/hooks/useProjectUsers.tsx","../src/components/UserSelectMenu/index.tsx","../src/hooks/useImageUrlBuilder.tsx","../src/hooks/useImageUrlBuilderImage.tsx","../src/hooks/useListeningQuery.tsx","../src/hooks/useOpenInNewPane.tsx"],"mappings":";;;;;KAGK;EACH,WAAW;EACX;EACA;;KAGG;EACH;EACA,cAAc;EACd;;KAGG,iBAAiB,mBAAmB;EACvC,OAAO;EACP,OAAO;;wBAOO,SAAS,OAAO,gCAAa,IAAA;KCCxC,aAAa,kBAAkB;wBAEpB,MAAM,OAAO,6BAAU,IAAA;KAqBlC,gBAAgB,kBAAkB;wBAEvB,IAAI,OAAO,gCAAa,IAAA;KAqBnC,iBAAiB,kBACpB;EACE;EACA;;wBAIY,KAAK,OAAO,iCAAc,IAAA;KC3ErC;EACH;EACA;;KAGU;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;;KASG;EACH;;wBAYc,kBAAiB,cAAa,aAAa;KCnBtD;EACH;EACA;EACA;EACA;EACA;;KAGG;EACH;EACA,UAAU;EACV,QAAQ;EACR,WAAW;EACX;EACA,SAAS;EACT,QAAQ,MAAM;;wBAWA,eAAe,OAAO,sCAAmB,IAAA;wBC9CzC,mBAAmB,eAAe,sBAAsB;wBCCxD,wBACd,QAAQ,mBACR,eAAe,sBACd;UCHO,OAAO;EACf,SAAS;EACT,UAAU;EACV,sBAAsB;;UAGd,OAAO;EACf;EACA;EACA,MAAM;;wBAYQ,kBAAkB,GAChC;EAAiB;EAAe;KAE9B,QACA,SACA,gBACC,OAAO,KACT,OAAO;wBC9BM,iBAAiB,aAAa"}
\ No newline at end of file
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