sanity-plugin-hotspot-array

5.0.195.0.20
~

Modified (4 files)

Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "sanity-plugin-hotspot-array",
-  "version": "5.0.19",
+  "version": "5.0.20",
   "description": "A configurable Custom Input for Arrays that will add and update items by clicking on an Image",
   "keywords": [
     "sanity",
     "sanity-plugin"
@@ -28,26 +28,26 @@
   },
   "dependencies": {
     "@sanity/asset-utils": "^2.3.0",
     "@sanity/image-url": "^2.1.1",
-    "@sanity/ui": "^4.4.0",
-    "@sanity/util": "^6.16.0",
+    "@sanity/ui": "^4.4.4",
+    "@sanity/util": "^6.18.0",
     "lodash-es": "^4.18.1",
-    "motion": "^14.0.0"
+    "motion": "^14.1.0"
   },
   "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/node": "^24.13.3",
     "@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/Spot.tsx","../src/plugin.tsx","../src/ImageHotspotArray.tsx"],"mappings":";;;UA2EiB,oBAAoB;GAAkB;;EACrD,OAAO,YAAY;EACnB,YAAY;EACZ,eAAe;;UCxEA,oBAAoB;GAAkB;;EACrD;EACA;EACA;EACA,UAAU,cAAc,oBAAoB;;;YAI3B;IACf,eAAe;;;cAIN,0CAAuB;KCYxB,YAAY;GAAkB;;EACxC;EACA;EACA;EACA;IACE;iBAEY,kBACd,OAAO,yBAAyB;EAAgB,qBAAqB;IACpE"}
\ No newline at end of file
+{"version":3,"file":"index.d.ts","names":[],"sources":["../src/Spot.tsx","../src/plugin.tsx","../src/ImageHotspotArray.tsx"],"mappings":";;;UA2EiB,oBAAoB;GAAkB;;EACrD,OAAO,YAAY;EACnB,YAAY;EACZ,eAAe;;UCxEA,oBAAoB;GAAkB;;EACrD;EACA;EACA;EACA,UAAU,cAAc,oBAAoB;;;YAI3B;IACf,eAAe;;;qBAIN,0CAAuB;KCYxB,YAAY;GAAkB;;EACxC;EACA;EACA;EACA;IACE;wBAEY,kBACd,OAAO,yBAAyB;EAAgB,qBAAqB;IACpE"}
\ No newline at end of file
Index: package/README.md
===================================================================
--- package/README.md
+++ package/README.md
@@ -192,10 +192,10 @@
 
 In this example our `value` object has a `reference` field to the `product` schema type, and will show a document preview.
 
 ```jsx
-import {useSchema} from 'sanity'
 import {Box} from '@sanity/ui'
+import {useSchema} from 'sanity'
 
 export function ProductPreview({value, renderPreview}) {
   const productSchemaType = useSchema().get('product')
   return (
Index: package/dist/index.d.ts
===================================================================
--- package/dist/index.d.ts
+++ package/dist/index.d.ts
@@ -20,18 +20,18 @@
   interface ArrayOptions {
     imageHotspot?: ImageHotspotOptions;
   }
 }
-declare const imageHotspotArrayPlugin: import("sanity").Plugin<void>;
+export declare const imageHotspotArrayPlugin: import("sanity").Plugin<void>;
 type HotspotItem<HotspotFields = {
   [key: string]: unknown;
 }> = {
   _key: string;
   _type: string;
   x: number;
   y: number;
 } & HotspotFields;
-declare function ImageHotspotArray(props: ArrayOfObjectsInputProps<HotspotItem> & {
+export declare function ImageHotspotArray(props: ArrayOfObjectsInputProps<HotspotItem> & {
   imageHotspotOptions: ImageHotspotOptions;
 }): ReactNode;
-export { type HotspotItem, type HotspotTooltipProps, ImageHotspotArray, type ImageHotspotOptions, imageHotspotArrayPlugin };
+export type { HotspotItem, HotspotTooltipProps, ImageHotspotOptions };
 //# sourceMappingURL=index.d.ts.map
\ No newline at end of file