@sanity/code-input 6.0.2 → 6.0.3

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/lib/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type {Extension} from '@codemirror/state'
2
- import {JSX as JSX_2} from 'react'
2
+ import {JSX} from 'react'
3
3
  import {ObjectDefinition} from 'sanity'
4
4
  import {ObjectInputProps} from 'sanity'
5
5
  import type {ObjectSchemaType} from 'sanity'
@@ -103,7 +103,7 @@ declare type ModeLoader = () => Promise<Extension | undefined> | Extension | und
103
103
  /**
104
104
  * @public
105
105
  */
106
- export declare function PreviewCode(props: PreviewCodeProps): JSX_2.Element
106
+ export declare function PreviewCode(props: PreviewCodeProps): JSX.Element
107
107
 
108
108
  /**
109
109
  * @public
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type {Extension} from '@codemirror/state'
2
- import {JSX as JSX_2} from 'react'
2
+ import {JSX} from 'react'
3
3
  import {ObjectDefinition} from 'sanity'
4
4
  import {ObjectInputProps} from 'sanity'
5
5
  import type {ObjectSchemaType} from 'sanity'
@@ -103,7 +103,7 @@ declare type ModeLoader = () => Promise<Extension | undefined> | Extension | und
103
103
  /**
104
104
  * @public
105
105
  */
106
- export declare function PreviewCode(props: PreviewCodeProps): JSX_2.Element
106
+ export declare function PreviewCode(props: PreviewCodeProps): JSX.Element
107
107
 
108
108
  /**
109
109
  * @public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/code-input",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
4
4
  "description": "Sanity input component for code, powered by CodeMirror",
5
5
  "keywords": [
6
6
  "sanity",
@@ -45,32 +45,32 @@
45
45
  "browserslist": "extends @sanity/browserslist-config",
46
46
  "prettier": "@sanity/prettier-config",
47
47
  "dependencies": {
48
- "@codemirror/autocomplete": "^6.18.3",
49
- "@codemirror/commands": "^6.7.1",
50
- "@codemirror/lang-html": "^6.4.9",
51
- "@codemirror/lang-java": "^6.0.1",
52
- "@codemirror/lang-javascript": "^6.2.2",
53
- "@codemirror/lang-json": "^6.0.1",
54
- "@codemirror/lang-markdown": "^6.3.1",
55
- "@codemirror/lang-php": "^6.0.1",
56
- "@codemirror/lang-sql": "^6.8.0",
57
- "@codemirror/language": "^6.10.6",
58
- "@codemirror/legacy-modes": "^6.4.2",
59
- "@codemirror/search": "^6.5.8",
60
- "@codemirror/state": "^6.5.0",
61
- "@codemirror/view": "^6.35.3",
48
+ "@codemirror/autocomplete": "^6.19.0",
49
+ "@codemirror/commands": "^6.9.0",
50
+ "@codemirror/lang-html": "^6.4.11",
51
+ "@codemirror/lang-java": "^6.0.2",
52
+ "@codemirror/lang-javascript": "^6.2.4",
53
+ "@codemirror/lang-json": "^6.0.2",
54
+ "@codemirror/lang-markdown": "^6.4.0",
55
+ "@codemirror/lang-php": "^6.0.2",
56
+ "@codemirror/lang-sql": "^6.10.0",
57
+ "@codemirror/language": "^6.11.3",
58
+ "@codemirror/legacy-modes": "^6.5.2",
59
+ "@codemirror/search": "^6.5.11",
60
+ "@codemirror/state": "^6.5.2",
61
+ "@codemirror/view": "^6.38.6",
62
62
  "@juggle/resize-observer": "^3.4.0",
63
63
  "@lezer/highlight": "^1.2.1",
64
- "@sanity/icons": "^3.5.2",
65
- "@sanity/incompatible-plugin": "^1.0.4",
66
- "@sanity/ui": "^3.0.5",
67
- "@uiw/codemirror-themes": "^4.23.6",
68
- "@uiw/react-codemirror": "^4.23.6"
64
+ "@sanity/icons": "^3.7.4",
65
+ "@sanity/incompatible-plugin": "^1.0.5",
66
+ "@sanity/ui": "^3.1.10",
67
+ "@uiw/codemirror-themes": "^4.25.2",
68
+ "@uiw/react-codemirror": "^4.25.2"
69
69
  },
70
70
  "devDependencies": {
71
- "@babel/core": "^7.23.6",
72
- "@babel/preset-env": "^7.23.6",
73
- "@babel/preset-react": "^7.23.3",
71
+ "@babel/core": "^7.28.4",
72
+ "@babel/preset-env": "^7.28.3",
73
+ "@babel/preset-react": "^7.27.1",
74
74
  "@changesets/changelog-github": "^0.5.1",
75
75
  "@changesets/cli": "^2.29.7",
76
76
  "@eslint/js": "^9.37.0",
@@ -79,11 +79,11 @@
79
79
  "@sanity/plugin-kit": "^4.0.19",
80
80
  "@sanity/prettier-config": "^2.0.1",
81
81
  "@sanity/vision": "^4.10.3",
82
- "@testing-library/jest-dom": "^6.1.5",
83
- "@testing-library/react": "^14.1.2",
84
- "@types/jest": "^29.5.11",
85
- "@types/react": "^18.2.45",
86
- "@types/react-dom": "^18.2.0",
82
+ "@testing-library/jest-dom": "^6.9.1",
83
+ "@testing-library/react": "^16.3.0",
84
+ "@types/jest": "^30.0.0",
85
+ "@types/react": "^19.2.2",
86
+ "@types/react-dom": "^19.2.2",
87
87
  "babel-plugin-react-compiler": "^1.0.0",
88
88
  "eslint": "^9.37.0",
89
89
  "eslint-config-prettier": "^10.1.8",
@@ -91,19 +91,19 @@
91
91
  "eslint-plugin-react": "^7.37.5",
92
92
  "eslint-plugin-react-hooks": "^7.0.0",
93
93
  "globals": "^16.4.0",
94
- "husky": "^8.0.1",
95
- "jest": "^29.7.0",
96
- "jest-environment-jsdom": "^29.7.0",
97
- "lint-staged": "^15.2.0",
98
- "npm-run-all": "^4.1.5",
94
+ "husky": "^8.0.3",
95
+ "jest": "^30.2.0",
96
+ "jest-environment-jsdom": "^30.2.0",
97
+ "lint-staged": "^15.5.2",
98
+ "npm-run-all2": "^5.0.0",
99
99
  "prettier": "^3.6.2",
100
100
  "react": "^19.2.0",
101
101
  "react-dom": "^19.2.0",
102
102
  "rimraf": "^5.0.5",
103
103
  "sanity": "^4.10.3",
104
104
  "styled-components": "^6.1.19",
105
- "ts-jest": "^29.1.1",
106
- "typescript": "5.9.2",
105
+ "ts-jest": "^29.4.5",
106
+ "typescript": "5.9.3",
107
107
  "typescript-eslint": "^8.46.1"
108
108
  },
109
109
  "peerDependencies": {