@sanity/color-input 6.0.11 → 6.0.13
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/_chunks-es/ColorInput.js +930 -753
- package/dist/_chunks-es/ColorInput.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +143 -132
- package/dist/index.js.map +1 -1
- package/package.json +7 -8
package/dist/index.js
CHANGED
|
@@ -1,138 +1,149 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { definePlugin, defineType } from "sanity";
|
|
3
2
|
import { lazy } from "react";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
const ColorInput = lazy(() => import("./_chunks-es/ColorInput.js")), round = (val = 1) => Math.round(val * 100), color = defineType({
|
|
5
|
+
name: "color",
|
|
6
|
+
type: "object",
|
|
7
|
+
title: "Color",
|
|
8
|
+
components: { input: ColorInput },
|
|
9
|
+
fields: [
|
|
10
|
+
{
|
|
11
|
+
title: "Hex",
|
|
12
|
+
name: "hex",
|
|
13
|
+
type: "string"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
title: "Alpha",
|
|
17
|
+
name: "alpha",
|
|
18
|
+
type: "number"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
title: "Hue Saturation Lightness",
|
|
22
|
+
name: "hsl",
|
|
23
|
+
type: "hslaColor"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
title: "Hue Saturation Value",
|
|
27
|
+
name: "hsv",
|
|
28
|
+
type: "hsvaColor"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
title: "Red Green Blue (rgb)",
|
|
32
|
+
name: "rgb",
|
|
33
|
+
type: "rgbaColor"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
preview: {
|
|
37
|
+
select: {
|
|
38
|
+
title: "hex",
|
|
39
|
+
alpha: "alpha",
|
|
40
|
+
hex: "hex",
|
|
41
|
+
hsl: "hsl"
|
|
42
|
+
},
|
|
43
|
+
prepare({ title, hex, hsl, alpha }) {
|
|
44
|
+
let subtitle = hex || "No color set";
|
|
45
|
+
return hsl && (subtitle = `H:${round(hsl.h)} S:${round(hsl.s)} L:${round(hsl.l)} A:${round(alpha)}`), {
|
|
46
|
+
title,
|
|
47
|
+
subtitle,
|
|
48
|
+
media: () => /* @__PURE__ */ jsx("div", { style: {
|
|
49
|
+
backgroundColor: hex ?? "#000",
|
|
50
|
+
opacity: alpha ?? 1,
|
|
51
|
+
position: "absolute",
|
|
52
|
+
height: "100%",
|
|
53
|
+
width: "100%",
|
|
54
|
+
top: "0",
|
|
55
|
+
left: "0"
|
|
56
|
+
} })
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}
|
|
61
60
|
}), hslaColor = defineType({
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
61
|
+
title: "Hue Saturation Lightness",
|
|
62
|
+
name: "hslaColor",
|
|
63
|
+
type: "object",
|
|
64
|
+
fields: [
|
|
65
|
+
{
|
|
66
|
+
name: "h",
|
|
67
|
+
type: "number",
|
|
68
|
+
title: "Hue"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: "s",
|
|
72
|
+
type: "number",
|
|
73
|
+
title: "Saturation"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "l",
|
|
77
|
+
type: "number",
|
|
78
|
+
title: "Lightness"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "a",
|
|
82
|
+
type: "number",
|
|
83
|
+
title: "Alpha"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
82
86
|
}), hsvaColor = defineType({
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
87
|
+
title: "Hue Saturation Value",
|
|
88
|
+
name: "hsvaColor",
|
|
89
|
+
type: "object",
|
|
90
|
+
fields: [
|
|
91
|
+
{
|
|
92
|
+
name: "h",
|
|
93
|
+
type: "number",
|
|
94
|
+
title: "Hue"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: "s",
|
|
98
|
+
type: "number",
|
|
99
|
+
title: "Saturation"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: "v",
|
|
103
|
+
type: "number",
|
|
104
|
+
title: "Value"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: "a",
|
|
108
|
+
type: "number",
|
|
109
|
+
title: "Alpha"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
103
112
|
}), rgbaColor = defineType({
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
113
|
+
title: "Red Green Blue (rgb)",
|
|
114
|
+
name: "rgbaColor",
|
|
115
|
+
type: "object",
|
|
116
|
+
fields: [
|
|
117
|
+
{
|
|
118
|
+
name: "r",
|
|
119
|
+
type: "number",
|
|
120
|
+
title: "Red"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: "g",
|
|
124
|
+
type: "number",
|
|
125
|
+
title: "Green"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "b",
|
|
129
|
+
type: "number",
|
|
130
|
+
title: "Blue"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: "a",
|
|
134
|
+
type: "number",
|
|
135
|
+
title: "Alpha"
|
|
136
|
+
}
|
|
137
|
+
]
|
|
124
138
|
}), colorInput = definePlugin({
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
139
|
+
name: "@sanity/color-input",
|
|
140
|
+
schema: { types: [
|
|
141
|
+
hslaColor,
|
|
142
|
+
hsvaColor,
|
|
143
|
+
rgbaColor,
|
|
144
|
+
color
|
|
145
|
+
] }
|
|
129
146
|
});
|
|
130
|
-
export {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
colorInput,
|
|
134
|
-
hslaColor,
|
|
135
|
-
hsvaColor,
|
|
136
|
-
rgbaColor
|
|
137
|
-
};
|
|
138
|
-
//# sourceMappingURL=index.js.map
|
|
147
|
+
export { ColorInput, color, colorInput, hslaColor, hsvaColor, rgbaColor };
|
|
148
|
+
|
|
149
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/LazyColorInput.tsx","../src/schemas/color.tsx","../src/schemas/hslaColor.ts","../src/schemas/hsvaColor.ts","../src/schemas/rgbaColor.ts","../src/index.ts"],"sourcesContent":["import {lazy} from 'react'\n\nexport const ColorInput = lazy(() => import('./ColorInput'))\n","import {defineType, type ObjectDefinition} from 'sanity'\n\nimport {ColorInput} from '../LazyColorInput'\nimport {type ColorOptions} from '../types'\n\nconst round = (val: number = 1) => Math.round(val * 100)\n\nconst colorTypeName = 'color'\n\n/**\n * @public\n */\nexport interface ColorDefinition extends Omit<ObjectDefinition, 'type' | 'fields' | 'options'> {\n type: typeof colorTypeName\n options?: ColorOptions\n}\n\ndeclare module 'sanity' {\n // makes type: 'color' narrow correctly when using defineType/defineField/defineArrayMember\n export interface IntrinsicDefinitions {\n color: ColorDefinition\n }\n}\n\nexport const color = defineType({\n name: colorTypeName,\n type: 'object',\n title: 'Color',\n components: {input: ColorInput},\n fields: [\n {\n title: 'Hex',\n name: 'hex',\n type: 'string',\n },\n {\n title: 'Alpha',\n name: 'alpha',\n type: 'number',\n },\n {\n title: 'Hue Saturation Lightness',\n name: 'hsl',\n type: 'hslaColor',\n },\n {\n title: 'Hue Saturation Value',\n name: 'hsv',\n type: 'hsvaColor',\n },\n {\n title: 'Red Green Blue (rgb)',\n name: 'rgb',\n type: 'rgbaColor',\n },\n ],\n preview: {\n select: {\n title: 'hex',\n alpha: 'alpha',\n hex: 'hex',\n hsl: 'hsl',\n },\n prepare({\n title,\n hex,\n hsl,\n alpha,\n }: {\n title: string\n alpha?: number\n hex?: string\n hsl?: {h: number; s: number; l: number}\n }) {\n let subtitle = hex || 'No color set'\n if (hsl) {\n subtitle = `H:${round(hsl.h)} S:${round(hsl.s)} L:${round(hsl.l)} A:${round(alpha)}`\n }\n return {\n title: title,\n subtitle: subtitle,\n media: () => (\n <div\n style={{\n backgroundColor: hex ?? '#000',\n opacity: alpha ?? 1,\n position: 'absolute',\n height: '100%',\n width: '100%',\n top: '0',\n left: '0',\n }}\n />\n ),\n }\n },\n },\n})\n","import {defineType} from 'sanity'\n\nexport const hslaColor = defineType({\n title: 'Hue Saturation Lightness',\n name: 'hslaColor',\n type: 'object',\n fields: [\n {name: 'h', type: 'number', title: 'Hue'},\n {name: 's', type: 'number', title: 'Saturation'},\n {name: 'l', type: 'number', title: 'Lightness'},\n {name: 'a', type: 'number', title: 'Alpha'},\n ],\n})\n","import {defineType} from 'sanity'\n\nexport const hsvaColor = defineType({\n title: 'Hue Saturation Value',\n name: 'hsvaColor',\n type: 'object',\n fields: [\n {name: 'h', type: 'number', title: 'Hue'},\n {name: 's', type: 'number', title: 'Saturation'},\n {name: 'v', type: 'number', title: 'Value'},\n {name: 'a', type: 'number', title: 'Alpha'},\n ],\n})\n","import {defineType} from 'sanity'\n\nexport const rgbaColor = defineType({\n title: 'Red Green Blue (rgb)',\n name: 'rgbaColor',\n type: 'object',\n fields: [\n {name: 'r', type: 'number', title: 'Red'},\n {name: 'g', type: 'number', title: 'Green'},\n {name: 'b', type: 'number', title: 'Blue'},\n {name: 'a', type: 'number', title: 'Alpha'},\n ],\n})\n","import {definePlugin} from 'sanity'\n\nimport {color, type ColorDefinition} from './schemas/color'\nimport {hslaColor} from './schemas/hslaColor'\nimport {hsvaColor} from './schemas/hsvaColor'\nimport {rgbaColor} from './schemas/rgbaColor'\n\nexport const colorInput = definePlugin({\n name: '@sanity/color-input',\n schema: {\n types: [hslaColor, hsvaColor, rgbaColor, color],\n },\n})\n\nexport {color, hslaColor, hsvaColor, rgbaColor}\nexport {ColorInput} from './LazyColorInput'\nexport type {ColorDefinition}\nexport type {ColorInputProps, ColorOptions, ColorSchemaType, ColorValue} from './types'\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":["lazy","ColorInput","defineType","ObjectDefinition","ColorInput","ColorOptions","round","val","Math","colorTypeName","ColorDefinition","Omit","type","options","IntrinsicDefinitions","color","name","title","components","input","fields","preview","select","alpha","hex","hsl","prepare","h","s","l","subtitle","media","backgroundColor","opacity","position","height","width","top","left","defineType","hslaColor","title","name","type","fields","defineType","hsvaColor","title","name","type","fields","defineType","rgbaColor","title","name","type","fields","definePlugin","color","ColorDefinition","hslaColor","hsvaColor","rgbaColor","colorInput","name","schema","types","ColorInput","ColorInputProps","ColorOptions","ColorSchemaType","ColorValue"],"sources":["../src/LazyColorInput.tsx","../src/schemas/color.tsx","../src/schemas/hslaColor.ts","../src/schemas/hsvaColor.ts","../src/schemas/rgbaColor.ts","../src/index.ts"],"sourcesContent":["import {lazy} from 'react'\n\nexport const ColorInput = lazy(() => import('./ColorInput'))\n","import {defineType, type ObjectDefinition} from 'sanity'\n\nimport {ColorInput} from '../LazyColorInput'\nimport {type ColorOptions} from '../types'\n\nconst round = (val: number = 1) => Math.round(val * 100)\n\nconst colorTypeName = 'color'\n\n/**\n * @public\n */\nexport interface ColorDefinition extends Omit<ObjectDefinition, 'type' | 'fields' | 'options'> {\n type: typeof colorTypeName\n options?: ColorOptions\n}\n\ndeclare module 'sanity' {\n // makes type: 'color' narrow correctly when using defineType/defineField/defineArrayMember\n export interface IntrinsicDefinitions {\n color: ColorDefinition\n }\n}\n\nexport const color = defineType({\n name: colorTypeName,\n type: 'object',\n title: 'Color',\n components: {input: ColorInput},\n fields: [\n {\n title: 'Hex',\n name: 'hex',\n type: 'string',\n },\n {\n title: 'Alpha',\n name: 'alpha',\n type: 'number',\n },\n {\n title: 'Hue Saturation Lightness',\n name: 'hsl',\n type: 'hslaColor',\n },\n {\n title: 'Hue Saturation Value',\n name: 'hsv',\n type: 'hsvaColor',\n },\n {\n title: 'Red Green Blue (rgb)',\n name: 'rgb',\n type: 'rgbaColor',\n },\n ],\n preview: {\n select: {\n title: 'hex',\n alpha: 'alpha',\n hex: 'hex',\n hsl: 'hsl',\n },\n prepare({\n title,\n hex,\n hsl,\n alpha,\n }: {\n title: string\n alpha?: number\n hex?: string\n hsl?: {h: number; s: number; l: number}\n }) {\n let subtitle = hex || 'No color set'\n if (hsl) {\n subtitle = `H:${round(hsl.h)} S:${round(hsl.s)} L:${round(hsl.l)} A:${round(alpha)}`\n }\n return {\n title: title,\n subtitle: subtitle,\n media: () => (\n <div\n style={{\n backgroundColor: hex ?? '#000',\n opacity: alpha ?? 1,\n position: 'absolute',\n height: '100%',\n width: '100%',\n top: '0',\n left: '0',\n }}\n />\n ),\n }\n },\n },\n})\n","import {defineType} from 'sanity'\n\nexport const hslaColor = defineType({\n title: 'Hue Saturation Lightness',\n name: 'hslaColor',\n type: 'object',\n fields: [\n {name: 'h', type: 'number', title: 'Hue'},\n {name: 's', type: 'number', title: 'Saturation'},\n {name: 'l', type: 'number', title: 'Lightness'},\n {name: 'a', type: 'number', title: 'Alpha'},\n ],\n})\n","import {defineType} from 'sanity'\n\nexport const hsvaColor = defineType({\n title: 'Hue Saturation Value',\n name: 'hsvaColor',\n type: 'object',\n fields: [\n {name: 'h', type: 'number', title: 'Hue'},\n {name: 's', type: 'number', title: 'Saturation'},\n {name: 'v', type: 'number', title: 'Value'},\n {name: 'a', type: 'number', title: 'Alpha'},\n ],\n})\n","import {defineType} from 'sanity'\n\nexport const rgbaColor = defineType({\n title: 'Red Green Blue (rgb)',\n name: 'rgbaColor',\n type: 'object',\n fields: [\n {name: 'r', type: 'number', title: 'Red'},\n {name: 'g', type: 'number', title: 'Green'},\n {name: 'b', type: 'number', title: 'Blue'},\n {name: 'a', type: 'number', title: 'Alpha'},\n ],\n})\n","import {definePlugin} from 'sanity'\n\nimport {color, type ColorDefinition} from './schemas/color'\nimport {hslaColor} from './schemas/hslaColor'\nimport {hsvaColor} from './schemas/hsvaColor'\nimport {rgbaColor} from './schemas/rgbaColor'\n\nexport const colorInput = definePlugin({\n name: '@sanity/color-input',\n schema: {\n types: [hslaColor, hsvaColor, rgbaColor, color],\n },\n})\n\nexport {color, hslaColor, hsvaColor, rgbaColor}\nexport {ColorInput} from './LazyColorInput'\nexport type {ColorDefinition}\nexport type {ColorInputProps, ColorOptions, ColorSchemaType, ColorValue} from './types'\n"],"mappings":";;;AAEA,MAAaC,aAAaD,WAAW,OAAO,6BAAe,GCGrDM,SAASC,MAAc,MAAMC,KAAKF,MAAMC,MAAM,GAAG,GAmB1CQ,QAAQb,WAAW;CAC9Bc,MAAMP;CACNG,MAAM;CACNK,OAAO;CACPC,YAAY,EAACC,OAAOf,WAAU;CAC9BgB,QAAQ;EACN;GACEH,OAAO;GACPD,MAAM;GACNJ,MAAM;EACR;EACA;GACEK,OAAO;GACPD,MAAM;GACNJ,MAAM;EACR;EACA;GACEK,OAAO;GACPD,MAAM;GACNJ,MAAM;EACR;EACA;GACEK,OAAO;GACPD,MAAM;GACNJ,MAAM;EACR;EACA;GACEK,OAAO;GACPD,MAAM;GACNJ,MAAM;EACR;CAAC;CAEHS,SAAS;EACPC,QAAQ;GACNL,OAAO;GACPM,OAAO;GACPC,KAAK;GACLC,KAAK;EACP;EACAC,QAAQ,EACNT,OACAO,KACAC,KACAF,SAMC;GACD,IAAIO,WAAWN,OAAO;GAItB,OAHIC,QACFK,WAAW,KAAKxB,MAAMmB,IAAIE,CAAC,EAAC,KAAMrB,MAAMmB,IAAIG,CAAC,EAAC,KAAMtB,MAAMmB,IAAII,CAAC,EAAC,KAAMvB,MAAMiB,KAAK,MAE5E;IACEN;IACGa;IACVC,aACE,oBAAC,OAAD,EACE,OAAO;KACLC,iBAAiBR,OAAO;KACxBS,SAASV,SAAS;KAClBW,UAAU;KACVC,QAAQ;KACRC,OAAO;KACPC,KAAK;KACLC,MAAM;IACR,EAAE,CAAA;GAGR;EACF;CACF;AACF,CAAC,GC/FYE,YAAYD,WAAW;CAClCE,OAAO;CACPC,MAAM;CACNC,MAAM;CACNC,QAAQ;EACN;GAACF,MAAM;GAAKC,MAAM;GAAUF,OAAO;EAAK;EACxC;GAACC,MAAM;GAAKC,MAAM;GAAUF,OAAO;EAAY;EAC/C;GAACC,MAAM;GAAKC,MAAM;GAAUF,OAAO;EAAW;EAC9C;GAACC,MAAM;GAAKC,MAAM;GAAUF,OAAO;EAAO;CAAC;AAE/C,CAAC,GCVYK,YAAYD,WAAW;CAClCE,OAAO;CACPC,MAAM;CACNC,MAAM;CACNC,QAAQ;EACN;GAACF,MAAM;GAAKC,MAAM;GAAUF,OAAO;EAAK;EACxC;GAACC,MAAM;GAAKC,MAAM;GAAUF,OAAO;EAAY;EAC/C;GAACC,MAAM;GAAKC,MAAM;GAAUF,OAAO;EAAO;EAC1C;GAACC,MAAM;GAAKC,MAAM;GAAUF,OAAO;EAAO;CAAC;AAE/C,CAAC,GCVYK,YAAYD,WAAW;CAClCE,OAAO;CACPC,MAAM;CACNC,MAAM;CACNC,QAAQ;EACN;GAACF,MAAM;GAAKC,MAAM;GAAUF,OAAO;EAAK;EACxC;GAACC,MAAM;GAAKC,MAAM;GAAUF,OAAO;EAAO;EAC1C;GAACC,MAAM;GAAKC,MAAM;GAAUF,OAAO;EAAM;EACzC;GAACC,MAAM;GAAKC,MAAM;GAAUF,OAAO;EAAO;CAAC;AAE/C,CAAC,GCLYU,aAAaN,aAAa;CACrCO,MAAM;CACNC,QAAQ,EACNC,OAAO;EAACN;EAAWC;EAAWC;EAAWJ;CAAK,EAChD;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/color-input",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.13",
|
|
4
4
|
"description": "Color input",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
@@ -33,23 +33,22 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@sanity/icons": "^5.0.0",
|
|
36
|
-
"@sanity/ui": "^3.3.
|
|
36
|
+
"@sanity/ui": "^3.3.5",
|
|
37
37
|
"lodash-es": "^4.18.1",
|
|
38
38
|
"tinycolor2": "^1.6.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@sanity/
|
|
42
|
-
"@sanity/
|
|
41
|
+
"@sanity/tsconfig": "^2.2.0",
|
|
42
|
+
"@sanity/tsdown-config": "^0.13.1",
|
|
43
43
|
"@types/lodash-es": "^4.17.12",
|
|
44
|
-
"@types/node": "^24.13.
|
|
44
|
+
"@types/node": "^24.13.3",
|
|
45
45
|
"@types/react": "^19.2.17",
|
|
46
46
|
"@types/tinycolor2": "^1.4.6",
|
|
47
47
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
48
|
-
"babel-plugin-styled-components": "^2.3.0",
|
|
49
48
|
"react": "^19.2.7",
|
|
50
49
|
"sanity": "^6.3.0",
|
|
51
50
|
"styled-components": "^6.4.3",
|
|
52
|
-
"
|
|
51
|
+
"tsdown": "^0.22.5"
|
|
53
52
|
},
|
|
54
53
|
"peerDependencies": {
|
|
55
54
|
"react": "^19.2",
|
|
@@ -60,6 +59,6 @@
|
|
|
60
59
|
"node": ">=20.19 <22 || >=22.12"
|
|
61
60
|
},
|
|
62
61
|
"scripts": {
|
|
63
|
-
"build": "
|
|
62
|
+
"build": "tsdown"
|
|
64
63
|
}
|
|
65
64
|
}
|