@sanity/sanity-plugin-async-list

3.0.63.0.7
~

Modified (4 files)

Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@sanity/sanity-plugin-async-list",
-  "version": "3.0.6",
+  "version": "3.0.7",
   "description": "This plugin fetches data from an external API and returns that data as options in a selectable list of strings in your Sanity Studio.",
   "keywords": [
     "sanity",
     "sanity-plugin"
@@ -27,24 +27,24 @@
     "./package.json": "./package.json"
   },
   "dependencies": {
     "@sanity/icons": "^5.2.3",
-    "@sanity/studio-secrets": "^4.0.21",
-    "@sanity/ui": "^4.4.0",
+    "@sanity/studio-secrets": "^4.0.22",
+    "@sanity/ui": "^4.4.4",
     "lodash-es": "^4.18.1"
   },
   "devDependencies": {
     "@sanity/tsconfig": "^2.2.1",
-    "@sanity/tsdown-config": "^0.27.1",
+    "@sanity/tsdown-config": "^0.28.8",
     "@types/lodash-es": "^4.17.12",
     "@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/types.ts","../src/components/async-list.tsx","../src/index.ts"],"mappings":";;;;UAIU,UAAU,WAAW,kBAAkB,IAAI,gBAAgB;UAEpD;;;;EAIf;;;;EAIA;IACE;IACA;IACA;MACE;MACA;MACA;;;;;;EAMJ,gBAAgB;;;;EAIhB;;;;EAIA,WACE,SACA,OACA;IAEA,UAAU;IACV;IACA,QAAQ;QACJ,QAAQ;IAAO;MAAiB;;;;EAKtC,oBAAoB,QAClB,oBACE,KACE,UAAU;IAoBV,MAAM,IAAI;;;;;;;;;;KAYN,wBAAwB,KAAK,uCACvC,QAAQ,KAAK;;;;;;;UCnBE,4BAA4B;EAC3C,SAAS;;;;;;;;;;;;;;;iBAgBK,UAAU,OAAO,sBAAsB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;iBA+M3C,qBACd,SAAS,yBACP,OAAO,qBAAqB,IAAI;;;;;;;;;;;;;;cC1QvB,4BAAS,OAAA"}
\ No newline at end of file
+{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/components/async-list.tsx","../src/index.ts"],"mappings":";;;;UAIU,UAAU,WAAW,kBAAkB,IAAI,gBAAgB;UAEpD;;;;EAIf;;;;EAIA;IACE;IACA;IACA;MACE;MACA;MACA;;;;;;EAMJ,gBAAgB;;;;EAIhB;;;;EAIA,WACE,SACA,OACA;IAEA,UAAU;IACV;IACA,QAAQ;QACJ,QAAQ;IAAO;MAAiB;;;;EAKtC,oBAAoB,QAClB,oBACE,KACE,UAAU;IAoBV,MAAM,IAAI;;;;;;;;;;KAYN,wBAAwB,KAAK,uCACvC,QAAQ,KAAK;;;;;;;UCnBE,4BAA4B;EAC3C,SAAS;;;;;;;;;;;;;;;wBAgBK,UAAU,OAAO,sBAAsB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;wBA+M3C,qBACd,SAAS,yBACP,OAAO,qBAAqB,IAAI;;;;;;;;;;;;;;qBC1QvB,4BAAS,OAAA"}
\ No newline at end of file
Index: package/README.md
===================================================================
--- package/README.md
+++ package/README.md
@@ -16,10 +16,10 @@
 
 Add it as a plugin in `sanity.config.ts` (or .js):
 
 ```ts
-import {defineConfig} from 'sanity'
 import {asyncList} from '@sanity/sanity-plugin-async-list'
+import {defineConfig} from 'sanity'
 
 export default defineConfig({
   //...
   plugins: [
@@ -90,11 +90,11 @@
 
 ### Example configurations
 
 ```ts
+import {asyncList} from '@sanity/sanity-plugin-async-list'
 // sanity.config.ts
 import {defineConfig} from 'sanity'
-import {asyncList} from '@sanity/sanity-plugin-async-list'
 
 export default defineConfig({
   // ...rest of config
   plugins: [
Index: package/dist/index.d.ts
===================================================================
--- package/dist/index.d.ts
+++ package/dist/index.d.ts
@@ -74,9 +74,9 @@
  * - Cache fetchData call w/o arguments
  *
  * @public
  */
-declare function AsyncList(props: AsyncListInputProps): JSX.Element;
+export declare function AsyncList(props: AsyncListInputProps): JSX.Element;
 /**
  * Create a Sanity string input component bound to the given async-list
  * `options`. Use this for the `components.input` slot when wiring the input
  * manually (i.e. without the `asyncList()` plugin):
@@ -99,9 +99,9 @@
  * ```
  *
  * @public
  */
-declare function createAsyncListInput(options: AsyncListInputOptions): (props: StringInputProps) => JSX.Element;
+export declare function createAsyncListInput(options: AsyncListInputOptions): (props: StringInputProps) => JSX.Element;
 /**
  * Usage in `sanity.config.ts` (or .js)
  *
  * ```ts
@@ -113,7 +113,7 @@
  *   plugins: [asyncList()],
  * })
  * ```
  */
-declare const asyncList: import("sanity").Plugin<AsyncListPluginConfig>;
-export { AsyncList, type AsyncListInputOptions, type AsyncListInputProps, type AsyncListPluginConfig, asyncList, createAsyncListInput };
+export declare const asyncList: import("sanity").Plugin<AsyncListPluginConfig>;
+export type { AsyncListInputOptions, AsyncListInputProps, AsyncListPluginConfig };
 //# sourceMappingURL=index.d.ts.map
\ No newline at end of file