@sanity/color-input 6.0.5 → 6.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/dist/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
- import * as _$sanity from "sanity";
2
1
  import { ObjectDefinition, ObjectInputProps, ObjectOptions, ObjectSchemaType } from "sanity";
3
2
  import { Color, HSLColor, HSVColor, RGBColor } from "react-color";
4
- import * as _$react from "react";
5
3
  interface ColorValue {
6
4
  hex: string;
7
5
  hsl: HSLColor;
@@ -33,7 +31,7 @@ declare const color: {
33
31
  type: "object";
34
32
  name: "color";
35
33
  } & Omit<ObjectDefinition, "preview"> & {
36
- preview?: _$sanity.PreviewConfig<{
34
+ preview?: import("sanity").PreviewConfig<{
37
35
  title: string;
38
36
  alpha: string;
39
37
  hex: string;
@@ -43,23 +41,23 @@ declare const color: {
43
41
  declare const hslaColor: {
44
42
  type: "object";
45
43
  name: "hslaColor";
46
- } & Omit<_$sanity.ObjectDefinition, "preview"> & {
47
- preview?: _$sanity.PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
44
+ } & Omit<import("sanity").ObjectDefinition, "preview"> & {
45
+ preview?: import("sanity").PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
48
46
  };
49
47
  declare const hsvaColor: {
50
48
  type: "object";
51
49
  name: "hsvaColor";
52
- } & Omit<_$sanity.ObjectDefinition, "preview"> & {
53
- preview?: _$sanity.PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
50
+ } & Omit<import("sanity").ObjectDefinition, "preview"> & {
51
+ preview?: import("sanity").PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
54
52
  };
55
53
  declare const rgbaColor: {
56
54
  type: "object";
57
55
  name: "rgbaColor";
58
- } & Omit<_$sanity.ObjectDefinition, "preview"> & {
59
- preview?: _$sanity.PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
56
+ } & Omit<import("sanity").ObjectDefinition, "preview"> & {
57
+ preview?: import("sanity").PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
60
58
  };
61
59
  declare function ColorInput$1(props: ObjectInputProps): React.JSX.Element;
62
- declare const ColorInput: _$react.LazyExoticComponent<typeof ColorInput$1>;
63
- declare const colorInput: _$sanity.Plugin<void>;
60
+ declare const ColorInput: import("react").LazyExoticComponent<typeof ColorInput$1>;
61
+ declare const colorInput: import("sanity").Plugin<void>;
64
62
  export { type ColorDefinition, ColorInput, type ColorInputProps, type ColorOptions, type ColorSchemaType, type ColorValue, color, colorInput, hslaColor, hsvaColor, rgbaColor };
65
63
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/schemas/color.tsx","../src/schemas/hslaColor.ts","../src/schemas/hsvaColor.ts","../src/schemas/rgbaColor.ts","../src/ColorInput.tsx","../src/LazyColorInput.tsx","../src/index.ts"],"mappings":";;;;UAGiB,UAAA;EACf,GAAA;EACA,GAAA,EAAK,QAAA;EACL,GAAA,EAAK,QAAA;EACL,GAAA,EAAK,QAAA;AAAA;AAAA,UAGU,YAAA,SAAqB,IAAA,CAAK,aAAA;EACzC,YAAA;EACA,SAAA,GAAY,KAAA,CAAM,KAAA;AAAA;AAAA,KAGR,eAAA,GAAkB,IAAA,CAAK,gBAAA;EACjC,OAAA,GAAU,YAAA;AAAA;AAAA,KAEA,eAAA,GAAkB,gBAAA,CAAiB,UAAA,EAAY,eAAA;AAAA,cCXrD,aAAA;;;ADJN;UCSiB,eAAA,SAAwB,IAAA,CAAK,gBAAA;EAC5C,IAAA,SAAa,aAAA;EACb,OAAA,GAAU,YAAA;AAAA;AAAA;EAAA,UAKO,oBAAA;IACf,KAAA,EAAO,eAAA;EAAA;AAAA;AAAA,cAIE,KAAA;;;;;;;;;;;cCtBA,SAAA;;;SAUX,QAAA,CAAA,gBAAA;;;cCVW,SAAA;;;SAUX,QAAA,CAAA,gBAAA;;;cCVW,SAAA;;;SAUX,QAAA,CAAA,gBAAA;;;iBCwJsB,YAAA,CAAW,KAAA,EAAO,gBAAA,GAAmB,KAAA,CAAM,GAAA,CAAI,OAAA;AAAA,cClK1D,UAAA,EAAU,OAAA,CAAA,mBAAA,QAAqC,YAAA;AAAA,cCK/C,UAAA,EAKX,QAAA,CALqB,MAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/schemas/color.tsx","../src/schemas/hslaColor.ts","../src/schemas/hsvaColor.ts","../src/schemas/rgbaColor.ts","../src/ColorInput.tsx","../src/LazyColorInput.tsx","../src/index.ts"],"mappings":";;UAGiB,UAAA;EACf,GAAA;EACA,GAAA,EAAK,QAAA;EACL,GAAA,EAAK,QAAA;EACL,GAAA,EAAK,QAAA;AAAA;AAAA,UAGU,YAAA,SAAqB,IAAA,CAAK,aAAA;EACzC,YAAA;EACA,SAAA,GAAY,KAAA,CAAM,KAAA;AAAA;AAAA,KAGR,eAAA,GAAkB,IAAA,CAAK,gBAAA;EACjC,OAAA,GAAU,YAAA;AAAA;AAAA,KAEA,eAAA,GAAkB,gBAAA,CAAiB,UAAA,EAAY,eAAA;AAAA,cCXrD,aAAA;ADJN;;;AAAA,UCSiB,eAAA,SAAwB,IAAA,CAAK,gBAAA;EAC5C,IAAA,SAAa,aAAA;EACb,OAAA,GAAU,YAAA;AAAA;AAAA;EAAA,UAKO,oBAAA;IACf,KAAA,EAAO,eAAe;EAAA;AAAA;AAAA,cAIb,KAAA;;;;;;;;;;;cCtBA,SAAA;;;;;;cCAA,SAAA;;;;;;cCAA,SAAA;;;;;;iBCkKW,YAAA,CAAW,KAAA,EAAO,gBAAA,GAAmB,KAAA,CAAM,GAAA,CAAI,OAAO;AAAA,cClKjE,UAAA,kBAAU,mBAAA,QAAqC,YAArC;AAAA,cCKV,UAAA,mBAAU,MAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/color-input",
3
- "version": "6.0.5",
3
+ "version": "6.0.7",
4
4
  "description": "Color input",
5
5
  "keywords": [
6
6
  "cms",
@@ -38,22 +38,22 @@
38
38
  "tinycolor2": "^1.6.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@sanity/pkg-utils": "^10.4.18",
42
- "@types/node": "^24.12.4",
41
+ "@sanity/pkg-utils": "^10.5.4",
42
+ "@types/node": "^24.13.2",
43
43
  "@types/react": "^19.2.14",
44
44
  "@types/react-color": "^2.17.12",
45
45
  "@types/tinycolor2": "^1.4.6",
46
46
  "babel-plugin-react-compiler": "^1.0.0",
47
- "babel-plugin-styled-components": "^2.1.4",
47
+ "babel-plugin-styled-components": "^2.3.0",
48
48
  "react": "^19.2.5",
49
- "sanity": "^5.21.0",
50
- "styled-components": "^6.4.1",
49
+ "sanity": "^6.0.0",
50
+ "styled-components": "^6.4.2",
51
51
  "@repo/package.config": "0.0.0",
52
52
  "@repo/tsconfig": "0.0.0"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "react": "^19.2",
56
- "sanity": "^5",
56
+ "sanity": "^5 || ^6.0.0-0",
57
57
  "styled-components": "^6.1"
58
58
  },
59
59
  "engines": {