@sanity/color-input 4.0.6 → 4.0.7
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/LICENSE +1 -1
- package/README.md +3 -20
- package/dist/_chunks-cjs/ColorInput.cjs +337 -0
- package/dist/_chunks-cjs/ColorInput.cjs.map +1 -0
- package/dist/_chunks-es/ColorInput.js +344 -0
- package/dist/_chunks-es/ColorInput.js.map +1 -0
- package/{lib/index.js → dist/index.cjs} +2 -2
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +64 -0
- package/dist/index.d.ts +64 -0
- package/{lib/index.mjs → dist/index.js} +2 -2
- package/dist/index.js.map +1 -0
- package/package.json +28 -62
- package/lib/_chunks-cjs/ColorInput.js +0 -1041
- package/lib/_chunks-cjs/ColorInput.js.map +0 -1
- package/lib/_chunks-es/ColorInput.mjs +0 -1051
- package/lib/_chunks-es/ColorInput.mjs.map +0 -1
- package/lib/_legacy/ColorInput.esm.js +0 -1051
- package/lib/_legacy/ColorInput.esm.js.map +0 -1
- package/lib/index.d.mts +0 -93
- package/lib/index.d.ts +0 -93
- package/lib/index.esm.js +0 -114
- package/lib/index.esm.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/index.mjs.map +0 -1
- package/sanity.json +0 -8
- package/src/ColorInput.tsx +0 -97
- package/src/ColorList.tsx +0 -70
- package/src/ColorPicker.tsx +0 -152
- package/src/ColorPickerFields.tsx +0 -144
- package/src/LazyColorInput.tsx +0 -3
- package/src/index.ts +0 -18
- package/src/schemas/color.tsx +0 -98
- package/src/schemas/hslaColor.ts +0 -13
- package/src/schemas/hsvaColor.ts +0 -13
- package/src/schemas/rgbaColor.ts +0 -13
- package/src/types.ts +0 -19
- package/v2-incompatible.js +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/color-input",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.7",
|
|
4
4
|
"description": "Color input",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -11,82 +11,52 @@
|
|
|
11
11
|
"color-input",
|
|
12
12
|
"sanity-plugin"
|
|
13
13
|
],
|
|
14
|
-
"homepage": "https://github.com/sanity-io/color-input#readme",
|
|
14
|
+
"homepage": "https://github.com/sanity-io/plugins/tree/main/plugins/%40sanity/color-input#readme",
|
|
15
15
|
"bugs": {
|
|
16
|
-
"url": "https://github.com/sanity-io/
|
|
16
|
+
"url": "https://github.com/sanity-io/plugins/issues"
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
|
-
"url": "git@github.com
|
|
20
|
+
"url": "git+ssh://git@github.com/sanity-io/plugins.git",
|
|
21
|
+
"directory": "plugins/@sanity/color-input"
|
|
21
22
|
},
|
|
22
23
|
"license": "MIT",
|
|
23
24
|
"author": "Sanity.io <hello@sanity.io>",
|
|
24
|
-
"
|
|
25
|
+
"type": "module",
|
|
25
26
|
"exports": {
|
|
26
27
|
".": {
|
|
27
28
|
"source": "./src/index.ts",
|
|
28
|
-
"import": "./
|
|
29
|
-
"require": "./
|
|
30
|
-
"default": "./
|
|
29
|
+
"import": "./dist/index.js",
|
|
30
|
+
"require": "./dist/index.cjs",
|
|
31
|
+
"default": "./dist/index.js"
|
|
31
32
|
},
|
|
32
33
|
"./package.json": "./package.json"
|
|
33
34
|
},
|
|
34
|
-
"
|
|
35
|
-
"module": "./lib/index.esm.js",
|
|
36
|
-
"types": "./lib/index.d.ts",
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
37
36
|
"files": [
|
|
38
|
-
"
|
|
39
|
-
"sanity.json",
|
|
40
|
-
"src",
|
|
41
|
-
"v2-incompatible.js"
|
|
37
|
+
"dist"
|
|
42
38
|
],
|
|
43
|
-
"scripts": {
|
|
44
|
-
"build": "plugin-kit verify-package --silent && pkg-utils build --strict --check --clean",
|
|
45
|
-
"compile": "tsc --noEmit",
|
|
46
|
-
"format": "prettier --write --cache --ignore-unknown .",
|
|
47
|
-
"link-watch": "plugin-kit link-watch",
|
|
48
|
-
"lint": "eslint .",
|
|
49
|
-
"prepare": "husky install",
|
|
50
|
-
"prepublishOnly": "npm run build",
|
|
51
|
-
"watch": "pkg-utils watch --strict"
|
|
52
|
-
},
|
|
53
|
-
"browserslist": "extends @sanity/browserslist-config",
|
|
54
|
-
"prettier": "@sanity/prettier-config",
|
|
55
39
|
"dependencies": {
|
|
56
40
|
"@sanity/icons": "^3.5.3",
|
|
57
|
-
"@sanity/incompatible-plugin": "^1.0.5",
|
|
58
41
|
"@sanity/ui": "^3.0.5",
|
|
42
|
+
"tinycolor2": "^1.6.0",
|
|
59
43
|
"react-color": "^2.19.3",
|
|
60
44
|
"use-effect-event": "^2.0.3"
|
|
61
45
|
},
|
|
62
46
|
"devDependencies": {
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@sanity/pkg-utils": "^6.11.1",
|
|
66
|
-
"@sanity/plugin-kit": "^4.0.18",
|
|
67
|
-
"@sanity/prettier-config": "1.0.3",
|
|
68
|
-
"@sanity/semantic-release-preset": "^5.0.0",
|
|
69
|
-
"@types/react": "^18.3.5",
|
|
47
|
+
"@sanity/pkg-utils": "^9.1.1",
|
|
48
|
+
"@types/react": "^19.2.6",
|
|
70
49
|
"@types/react-color": "^2.17.11",
|
|
71
50
|
"@types/tinycolor2": "^1.4.6",
|
|
72
|
-
"@typescript
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"npm-run-all2": "^5.0.0",
|
|
82
|
-
"prettier": "^3.3.3",
|
|
83
|
-
"react": "^18.3.1",
|
|
84
|
-
"react-dom": "^18.3.1",
|
|
85
|
-
"sanity": "^3.67.1",
|
|
86
|
-
"semantic-release": "^24.1.1",
|
|
87
|
-
"styled-components": "^6.1",
|
|
88
|
-
"typescript": "^5.6.2",
|
|
89
|
-
"typescript-eslint": "^8.37.0"
|
|
51
|
+
"@typescript/native-preview": "7.0.0-dev.20251121.1",
|
|
52
|
+
"eslint": "^9.39.1",
|
|
53
|
+
"react": "^19.2.0",
|
|
54
|
+
"sanity": "^4.17.0",
|
|
55
|
+
"styled-components": "^6.1.19",
|
|
56
|
+
"typescript": "5.9.3",
|
|
57
|
+
"@repo/package.config": "0.0.0",
|
|
58
|
+
"@repo/eslint-config": "0.0.0",
|
|
59
|
+
"@repo/tsconfig": "0.0.0"
|
|
90
60
|
},
|
|
91
61
|
"peerDependencies": {
|
|
92
62
|
"react": "^18.3 || ^19",
|
|
@@ -99,13 +69,9 @@
|
|
|
99
69
|
"publishConfig": {
|
|
100
70
|
"access": "public"
|
|
101
71
|
},
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"sanityPlugin": {
|
|
107
|
-
"verifyPackage": {
|
|
108
|
-
"eslintImports": false
|
|
109
|
-
}
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "pkg build --strict --check --clean",
|
|
74
|
+
"lint": "eslint .",
|
|
75
|
+
"typecheck": "(cd ../../.. && tsgo --project plugins/@sanity/color-input/tsconfig.json)"
|
|
110
76
|
}
|
|
111
|
-
}
|
|
77
|
+
}
|