@electrolux-oss/sanity-plugin-media 2.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": "2.0.0",
3
+ "version": "4.0.0",
4
4
  "keywords": [
5
5
  "sanity",
6
6
  "cms",
@@ -26,109 +26,95 @@
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
- "dist",
44
- "sanity.json",
45
- "README.md",
46
- "LICENSE"
42
+ "dist"
47
43
  ],
48
44
  "scripts": {
49
- "build": "plugin-kit verify-package --silent && pkg-utils build --strict --check --clean",
45
+ "build": "pkg-utils build --strict --check --clean",
50
46
  "clean": "rimraf dist",
51
47
  "dev": "sanity dev",
52
48
  "format": "prettier --write --cache --ignore-unknown .",
53
49
  "link-watch": "plugin-kit link-watch",
54
50
  "lint": "eslint .",
55
51
  "lint:fix": "eslint . --fix",
56
- "prepare": "husky install",
57
- "prepublishOnly": "npm run build",
58
- "watch": "pkg-utils watch --strict"
52
+ "prepack": "npm run build",
53
+ "watch": "pkg-utils watch --strict",
54
+ "typecheck": "tsc --noEmit"
59
55
  },
60
56
  "browserslist": "extends @sanity/browserslist-config",
61
57
  "dependencies": {
62
58
  "@hookform/resolvers": "^3.1.1",
63
- "@reduxjs/toolkit": "^2.6.0",
64
- "@sanity/client": "^6.28.3",
59
+ "@reduxjs/toolkit": "^2.11.2",
60
+ "@sanity/client": "^7.13.2",
65
61
  "@sanity/color": "^3.0.6",
66
- "@sanity/icons": "^3.7.0",
67
- "@sanity/incompatible-plugin": "^1.0.5",
68
- "@sanity/ui": "^3.0.5",
62
+ "@sanity/ui": "^3.5.0",
69
63
  "@sanity/uuid": "^3.0.1",
70
- "@tanem/react-nprogress": "^5.0.55",
64
+ "@tanem/react-nprogress": "^5.0.63",
71
65
  "copy-to-clipboard": "^3.3.1",
72
66
  "date-fns": "^4.0.0",
73
67
  "filesize": "^9.0.0",
74
- "groq": "^3.0.0",
68
+ "groq": "^6.7.0",
75
69
  "is-hotkey-esm": "^1.0.0",
76
70
  "nanoid": "^3.3.8",
77
71
  "pluralize": "^8.0.0",
78
72
  "react-dropzone": "^11.3.1",
79
73
  "react-file-icon": "^1.6.0",
80
- "react-hook-form": "^7.54.2",
74
+ "react-hook-form": "^7.71.1",
81
75
  "react-redux": "^9.2.0",
82
76
  "react-select": "^5.10.1",
83
- "react-virtuoso": "^4.15.0",
84
- "redux": "^5.0.1",
85
- "redux-observable": "3.0.0-rc.2",
77
+ "react-virtuoso": "^4.18.1",
78
+ "redux-observable": "^3.0.0-rc.3",
86
79
  "rxjs": "^7.8.1",
87
80
  "zod": "^3.21.4"
88
81
  },
89
82
  "devDependencies": {
90
- "@commitlint/cli": "^17.8.1",
91
- "@commitlint/config-conventional": "^17.8.1",
83
+ "@sanity/icons": "^5.2.1",
92
84
  "@sanity/pkg-utils": "^8.1.12",
93
85
  "@sanity/plugin-kit": "^4.0.19",
94
- "@sanity/semantic-release-preset": "^2.0.5",
95
- "@sanity/vision": "^3.80.1",
96
- "@types/is-hotkey": "^0.1.10",
97
86
  "@types/pluralize": "^0.0.33",
98
- "@types/react": "^19.0.12",
87
+ "@types/react": "^19.2.14",
99
88
  "@types/react-dom": "^19.0.4",
100
89
  "@types/react-file-icon": "^1.0.4",
101
90
  "@typescript-eslint/eslint-plugin": "^5.62.0",
102
91
  "@typescript-eslint/parser": "^5.62.0",
103
- "conventional-changelog-conventionalcommits": "^5.0.0",
92
+ "baseline-browser-mapping": "^2.10.0",
104
93
  "eslint": "^8.57.1",
105
94
  "eslint-config-prettier": "^8.10.0",
106
95
  "eslint-config-sanity": "^6.0.0",
107
96
  "eslint-plugin-prettier": "^4.2.1",
108
97
  "eslint-plugin-react": "^7.37.4",
109
98
  "eslint-plugin-react-hooks": "^4.6.2",
110
- "husky": "^8.0.2",
111
- "lint-staged": "^13.0.3",
112
99
  "prettier": "^2.8.8",
113
- "prettier-plugin-packagejson": "^2.5.10",
114
- "react": "^19.0.0",
115
- "react-dom": "^19.0.0",
116
- "react-is": "^19.0.0",
100
+ "prettier-plugin-packagejson": "^2.5.22",
101
+ "react": "^19.2.4",
102
+ "react-dom": "^19.2.4",
103
+ "react-is": "^19.2.4",
117
104
  "rimraf": "^3.0.2",
118
- "sanity": "^4.19.0",
119
- "standard-version": "^9.5.0",
120
- "styled-components": "^6.1.16",
105
+ "sanity": "^6.7.0",
106
+ "styled-components": "^6.3.11",
121
107
  "typescript": "5.8.2"
122
108
  },
123
109
  "peerDependencies": {
124
- "react": "^18.3 || ^19",
125
- "react-dom": "^18.3 || ^19",
126
- "react-is": "^18.3 || ^19",
127
- "sanity": "^4.0.0",
128
- "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"
129
115
  },
130
116
  "engines": {
131
- "node": ">=18"
117
+ "node": ">=22.12"
132
118
  },
133
119
  "publishConfig": {
134
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 {}