@electrolux-oss/sanity-plugin-media 3.0.0 → 4.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electrolux-oss/sanity-plugin-media",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "keywords": [
5
5
  "sanity",
6
6
  "cms",
@@ -26,18 +26,17 @@
26
26
  }
27
27
  ],
28
28
  "sideEffects": false,
29
- "type": "commonjs",
29
+ "type": "module",
30
30
  "exports": {
31
31
  ".": {
32
32
  "source": "./src/index.ts",
33
- "import": "./dist/index.mjs",
34
- "require": "./dist/index.js",
35
- "default": "./dist/index.mjs"
33
+ "import": "./dist/index.js",
34
+ "default": "./dist/index.js"
36
35
  },
37
36
  "./package.json": "./package.json"
38
37
  },
39
38
  "main": "./dist/index.js",
40
- "module": "./dist/index.mjs",
39
+ "module": "./dist/index.js",
41
40
  "types": "./dist/index.d.ts",
42
41
  "files": [
43
42
  "dist"
@@ -51,48 +50,46 @@
51
50
  "lint": "eslint .",
52
51
  "lint:fix": "eslint . --fix",
53
52
  "prepack": "npm run build",
54
- "watch": "pkg-utils watch --strict"
53
+ "watch": "pkg-utils watch --strict",
54
+ "typecheck": "tsc --noEmit"
55
55
  },
56
56
  "browserslist": "extends @sanity/browserslist-config",
57
57
  "dependencies": {
58
58
  "@hookform/resolvers": "^3.1.1",
59
59
  "@reduxjs/toolkit": "^2.11.2",
60
- "@sanity/client": "^6.28.3",
60
+ "@sanity/client": "^7.13.2",
61
61
  "@sanity/color": "^3.0.6",
62
- "@sanity/icons": "^3.7.0",
63
- "@sanity/incompatible-plugin": "^1.0.5",
64
- "@sanity/ui": "^3.0.5",
62
+ "@sanity/ui": "^3.5.0",
65
63
  "@sanity/uuid": "^3.0.1",
66
- "@tanem/react-nprogress": "^5.0.55",
64
+ "@tanem/react-nprogress": "^5.0.63",
67
65
  "copy-to-clipboard": "^3.3.1",
68
66
  "date-fns": "^4.0.0",
69
67
  "filesize": "^9.0.0",
70
- "groq": "^3.0.0",
68
+ "groq": "^6.7.0",
71
69
  "is-hotkey-esm": "^1.0.0",
72
70
  "nanoid": "^3.3.8",
73
71
  "pluralize": "^8.0.0",
74
72
  "react-dropzone": "^11.3.1",
75
73
  "react-file-icon": "^1.6.0",
76
- "react-hook-form": "^7.68.0",
74
+ "react-hook-form": "^7.71.1",
77
75
  "react-redux": "^9.2.0",
78
76
  "react-select": "^5.10.1",
79
- "react-virtuoso": "^4.17.0",
80
- "redux": "^5.0.1",
81
- "redux-observable": "3.0.0-rc.2",
77
+ "react-virtuoso": "^4.18.1",
78
+ "redux-observable": "^3.0.0-rc.3",
82
79
  "rxjs": "^7.8.1",
83
80
  "zod": "^3.21.4"
84
81
  },
85
82
  "devDependencies": {
83
+ "@sanity/icons": "^5.2.1",
86
84
  "@sanity/pkg-utils": "^8.1.12",
87
85
  "@sanity/plugin-kit": "^4.0.19",
88
- "@types/is-hotkey": "^0.1.10",
89
86
  "@types/pluralize": "^0.0.33",
90
- "@types/react": "^19.0.12",
87
+ "@types/react": "^19.2.14",
91
88
  "@types/react-dom": "^19.0.4",
92
89
  "@types/react-file-icon": "^1.0.4",
93
90
  "@typescript-eslint/eslint-plugin": "^5.62.0",
94
91
  "@typescript-eslint/parser": "^5.62.0",
95
- "conventional-changelog-conventionalcommits": "^5.0.0",
92
+ "baseline-browser-mapping": "^2.10.0",
96
93
  "eslint": "^8.57.1",
97
94
  "eslint-config-prettier": "^8.10.0",
98
95
  "eslint-config-sanity": "^6.0.0",
@@ -100,25 +97,24 @@
100
97
  "eslint-plugin-react": "^7.37.4",
101
98
  "eslint-plugin-react-hooks": "^4.6.2",
102
99
  "prettier": "^2.8.8",
103
- "prettier-plugin-packagejson": "^2.5.20",
104
- "react": "^19.2.3",
105
- "react-dom": "^19.2.3",
106
- "react-is": "^19.2.3",
100
+ "prettier-plugin-packagejson": "^2.5.22",
101
+ "react": "^19.2.4",
102
+ "react-dom": "^19.2.4",
103
+ "react-is": "^19.2.4",
107
104
  "rimraf": "^3.0.2",
108
- "sanity": "^4.21.1",
109
- "standard-version": "^9.5.0",
110
- "styled-components": "^6.1.16",
105
+ "sanity": "^6.7.0",
106
+ "styled-components": "^6.3.11",
111
107
  "typescript": "5.8.2"
112
108
  },
113
109
  "peerDependencies": {
114
- "react": "^18.3 || >=19.2.3 < 20",
115
- "react-dom": "^18.3 || >=19.2.3 < 20",
116
- "react-is": "^18.3 || >=19.2.3 < 20",
117
- "sanity": "^4.0.0-0 || ^5.0.0-0",
118
- "styled-components": "^6.1"
110
+ "react": "^19.2.2",
111
+ "react-dom": "^19.2.2",
112
+ "react-is": "^19.2.2",
113
+ "sanity": "^5.0.0 || ^6.0.0",
114
+ "styled-components": "^6.1.15"
119
115
  },
120
116
  "engines": {
121
- "node": ">=24"
117
+ "node": ">=22.12"
122
118
  },
123
119
  "publishConfig": {
124
120
  "access": "public"
package/dist/index.d.mts DELETED
@@ -1,32 +0,0 @@
1
- import { AssetSourceComponentProps } from 'sanity'
2
- import { ForwardRefExoticComponent } from 'react'
3
- import { JSX } from 'react'
4
- import { Plugin as Plugin_2 } from 'sanity'
5
- import { RefAttributes } from 'react'
6
- import { SVGProps } from 'react'
7
-
8
- export declare const media: Plugin_2<void | MediaToolOptions>
9
-
10
- export declare const mediaAssetSource: {
11
- component: (props: AssetSourceComponentProps) => JSX.Element
12
- icon: ForwardRefExoticComponent<
13
- Omit<SVGProps<SVGSVGElement>, 'ref'> & RefAttributes<SVGSVGElement>
14
- >
15
- name: string
16
- title: string
17
- }
18
-
19
- export declare type MediaToolOptions = {
20
- languages: {
21
- code: string
22
- title: string
23
- default?: boolean
24
- }[]
25
- maximumUploadSize?: number
26
- creditLine: {
27
- enabled: boolean
28
- excludeSources?: string | string[]
29
- }
30
- }
31
-
32
- export {}