sanity-plugin-asset-source-unsplash 7.0.0 → 7.0.1

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.
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { AssetSource, Plugin } from "sanity";
2
2
  /**
3
- * @public
4
- */
3
+ * @public
4
+ */
5
5
  declare function UnsplashIcon(): React.JSX.Element;
6
6
  /**
7
- * @public
8
- */
7
+ * @public
8
+ */
9
9
  interface Asset {
10
- kind: 'url' | 'base64' | 'file' | 'assetDocumentId';
10
+ kind: "url" | "base64" | "file" | "assetDocumentId";
11
11
  value: string | File;
12
12
  assetDocumentProps?: {
13
13
  originalFileName?: string;
@@ -23,8 +23,8 @@ interface Asset {
23
23
  };
24
24
  }
25
25
  /**
26
- * @public
27
- */
26
+ * @public
27
+ */
28
28
  interface AssetDocument {
29
29
  _id: string;
30
30
  label?: string;
@@ -39,8 +39,8 @@ interface AssetDocument {
39
39
  originalFilename?: string;
40
40
  }
41
41
  /**
42
- * @public
43
- */
42
+ * @public
43
+ */
44
44
  interface UnsplashPhoto {
45
45
  id: string;
46
46
  width: number;
@@ -66,12 +66,12 @@ interface UnsplashPhoto {
66
66
  };
67
67
  }
68
68
  /**
69
- * @public
70
- */
69
+ * @public
70
+ */
71
71
  declare const unsplashAssetSource: AssetSource;
72
72
  /**
73
- * @public
74
- */
73
+ * @public
74
+ */
75
75
  declare const unsplashImageAsset: Plugin;
76
76
  export { type Asset, type AssetDocument, UnsplashIcon, type UnsplashPhoto, unsplashAssetSource, unsplashImageAsset };
77
77
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":["UnsplashIcon","React","JSX","Element","Asset","File","AssetDocument","UnsplashPhoto","FetcherResult","AssetSource","Plugin","UnsplashIcon","Asset","AssetDocument","UnsplashPhoto","unsplashAssetSource","unsplashImageAsset"],"sources":["../src/components/Icon.d.ts","../src/types.d.ts","../src/index.d.ts"],"sourcesContent":["/**\n * @public\n */\nexport declare function UnsplashIcon(): React.JSX.Element;\n//# sourceMappingURL=Icon.d.ts.map","/**\n * @public\n */\nexport interface Asset {\n kind: 'url' | 'base64' | 'file' | 'assetDocumentId';\n value: string | File;\n assetDocumentProps?: {\n originalFileName?: string;\n label?: string;\n title?: string;\n description?: string;\n source?: {\n id: string;\n name: string;\n url?: string;\n };\n creditLine?: string;\n };\n}\n/**\n * @public\n */\nexport interface AssetDocument {\n _id: string;\n label?: string;\n title?: string;\n description?: string;\n source?: {\n id: string;\n name: string;\n url?: string;\n };\n creditLine?: string;\n originalFilename?: string;\n}\n/**\n * @public\n */\nexport interface UnsplashPhoto {\n id: string;\n width: number;\n height: number;\n description?: string;\n alt_description?: string;\n urls: {\n full: string;\n small: string;\n };\n user: {\n name: string;\n username: string;\n links: {\n html: string;\n };\n };\n links: {\n html: string;\n self: string;\n download: string;\n download_location: string;\n };\n}\nexport type FetcherResult = {\n results: UnsplashPhoto[];\n total: number;\n total_pages: number;\n};\n//# sourceMappingURL=types.d.ts.map","import { type AssetSource, type Plugin } from 'sanity';\nimport { UnsplashIcon } from './components/Icon';\nexport type { Asset, AssetDocument, UnsplashPhoto } from './types';\n/**\n * @public\n */\nexport declare const unsplashAssetSource: AssetSource;\n/**\n * @public\n */\nexport declare const unsplashImageAsset: Plugin;\nexport { UnsplashIcon };\n//# sourceMappingURL=index.d.ts.map"],"mappings":";;;AAGA;iBAAwBA,YAAAA,CAAAA,GAAgBC,KAAAA,CAAMC,GAAAA,CAAIC;;;AAAlD;UCAiBC,KAAAA;EAAAA,IAAAA,EAAAA,KAAK,GAAA,QAEFC,GAAI,MAAA,GAAA,iBAAA;EAiBPC,KAAAA,EAAAA,MAAAA,GAjBGD,IAiBU;EAgBbE,kBAAa,CAAA,EAAA;;IChCTQ,KAAAA,CAAAA,EAAAA,MAAAA;IAIAC,KAAAA,CAAAA,EAAAA,MAAAA;;;;;;;;;;;;;UDYJV,aAAAA;;;;;;;;;;;;;;;;UAgBAC,aAAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAnCjB;AAmBA;AAgBiBA,cChCIQ,mBDgCS,EChCYN,WDgCZ;;AChC9B;AAIA;cAAqBO,oBAAoBN"}
1
+ {"version":3,"file":"index.d.ts","names":["unsplashAssetSource: AssetSource","unsplashImageAsset: Plugin"],"sources":["../src/components/Icon.tsx","../src/types.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;AAGA;iBAAgB,YAAA,CAAA,GAAgB,KAAA,CAAM,GAAA,CAAI;;;AAA1C;UCAiB,KAAA;EAAjB,IAAiB,EAAA,KAAA,GAAA,QAEC,GAAA,MAAA,GAAA,iBAAA;EAkBlB,KAAiB,EAAA,MAAA,GAlBC,IAkBD;EAiBjB,kBAAiB,CAAA,EAAA;;IC9BjB,KAAaA,CAAAA,EAAAA,MAAAA;IAUb,KAAaC,CAAAA,EAAAA,MAAAA;;;;;;;;;;;;;UDGI,aAAA;;;;;;;;;;;;;;;;UAiBA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;AArCjB;AAoBA;AAiBiB,cC9BJD,mBD8BI,EC9BiB,WD8BjB;;AC9BjB;AAUA;cAAaC,oBAAoB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanity-plugin-asset-source-unsplash",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Use images from Unsplash.com in your Sanity Studio",
5
5
  "keywords": [
6
6
  "assets",
@@ -14,47 +14,45 @@
14
14
  "bugs": {
15
15
  "url": "https://github.com/sanity-io/plugins/issues"
16
16
  },
17
+ "license": "MIT",
18
+ "author": "Sanity.io <hello@sanity.io>",
17
19
  "repository": {
18
20
  "type": "git",
19
21
  "url": "git+ssh://git@github.com/sanity-io/plugins.git",
20
22
  "directory": "plugins/sanity-plugin-asset-source-unsplash"
21
23
  },
22
- "author": "Sanity.io <hello@sanity.io>",
23
- "license": "MIT",
24
+ "files": [
25
+ "dist"
26
+ ],
24
27
  "type": "module",
28
+ "types": "./dist/index.d.ts",
25
29
  "exports": {
26
30
  ".": "./dist/index.js",
27
31
  "./package.json": "./package.json"
28
32
  },
29
- "types": "./dist/index.d.ts",
30
- "files": [
31
- "dist"
32
- ],
33
33
  "dependencies": {
34
34
  "@sanity/icons": "^3.7.4",
35
35
  "@sanity/ui": "^3.1.11",
36
- "lodash-es": "^4.17.21",
37
- "react-photo-album": "^3.3.0"
36
+ "lodash-es": "^4.17.22",
37
+ "react-photo-album": "^3.4.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@sanity/pkg-utils": "^10.2.1",
40
+ "@sanity/pkg-utils": "^10.2.5",
41
41
  "@types/lodash-es": "^4.17.12",
42
42
  "@types/react": "^19.2.7",
43
- "@typescript/native-preview": "7.0.0-dev.20251216.1",
44
43
  "babel-plugin-react-compiler": "^1.0.0",
45
44
  "babel-plugin-styled-components": "^2.1.4",
46
45
  "eslint": "^9.39.2",
47
46
  "react": "^19.2.3",
48
- "sanity": "^5.0.0",
47
+ "sanity": "^5.1.0",
49
48
  "styled-components": "^6.1.19",
50
- "typescript": "5.9.3",
51
- "@repo/eslint-config": "0.0.7",
49
+ "@repo/eslint-config": "0.0.0",
52
50
  "@repo/package.config": "0.0.0",
53
- "@repo/tsconfig": "1.0.0"
51
+ "@repo/tsconfig": "0.0.0"
54
52
  },
55
53
  "peerDependencies": {
56
54
  "react": "^19.2",
57
- "sanity": "^5.0.0-0",
55
+ "sanity": "^5",
58
56
  "styled-components": "^6.1"
59
57
  },
60
58
  "engines": {