@sanity/themer 0.3.10 → 0.3.11

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
@@ -26,7 +26,7 @@ type GeneratedColorPalette = {
26
26
  *
27
27
  * @public
28
28
  */
29
- declare function buildPalette(options: BuildThemeOptions): GeneratedColorPalette;
29
+ export declare function buildPalette(options: BuildThemeOptions): GeneratedColorPalette;
30
30
  /**
31
31
  * Generates a Studio theme from a handful of colors, by replacing the color
32
32
  * palette that the `buildTheme` from `@sanity/ui/theme` otherwise fills with
@@ -58,7 +58,7 @@ declare function buildPalette(options: BuildThemeOptions): GeneratedColorPalette
58
58
  *
59
59
  * @public
60
60
  */
61
- declare function buildTheme(options: BuildThemeOptions): RootTheme;
61
+ export declare function buildTheme(options: BuildThemeOptions): RootTheme;
62
62
  /**
63
63
  * A preset theme: a named set of {@link BuildThemeOptions} ready to pass to
64
64
  * `buildTheme`.
@@ -86,6 +86,6 @@ interface ThemePreset {
86
86
  *
87
87
  * @public
88
88
  */
89
- declare const presets: ThemePreset[];
90
- export { type BuildThemeOptions, type GeneratedColorPalette, type ThemePreset, buildPalette, buildTheme, presets };
89
+ export declare const presets: ThemePreset[];
90
+ export type { BuildThemeOptions, GeneratedColorPalette, ThemePreset };
91
91
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/theme/buildPalette.ts","../src/theme/buildTheme.ts","../src/theme/presets.ts"],"mappings":";;;;;;;;;KAqCY;EAAyB;EAAe;IAAiB,OACnE,aACA,OAAO;;;;;;;;;;;;;;;;iBAkBO,aAAa,SAAS,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBCrB1C,WAAW,SAAS,oBAAoB;;;;;;;UC5BvC;EACf;EACA;;EAEA,SAAS;;;;;;;;;;;;;;;;;cAkBE,SAAS"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/theme/buildPalette.ts","../src/theme/buildTheme.ts","../src/theme/presets.ts"],"mappings":";;;;;;;;;KAqCY;EAAyB;EAAe;IAAiB,OACnE,aACA,OAAO;;;;;;;;;;;;;;;;wBAkBO,aAAa,SAAS,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBCrB1C,WAAW,SAAS,oBAAoB;;;;;;;UC5BvC;EACf;EACA;;EAEA,SAAS;;;;;;;;;;;;;;;;;qBAkBE,SAAS"}
package/dist/legacy.d.ts CHANGED
@@ -86,7 +86,7 @@ interface ThemePreset {
86
86
  *
87
87
  * @public
88
88
  */
89
- declare function createTheme(hues?: PartialHues): LegacyTheme;
89
+ export declare function createTheme(hues?: PartialHues): LegacyTheme;
90
90
  /**
91
91
  * Parses the hues encoded in a hosted Themer service URL, returning the exact
92
92
  * hues that `https://themer.sanity.build/api/hues` served for that query —
@@ -103,7 +103,7 @@ declare function createTheme(hues?: PartialHues): LegacyTheme;
103
103
  *
104
104
  * @public
105
105
  */
106
- declare function parseHuesFromUrl(url: string | URL): Hues;
106
+ export declare function parseHuesFromUrl(url: string | URL): Hues;
107
107
  /**
108
108
  * The one-line replacement for a theme imported from the hosted Themer
109
109
  * service — pass the URL that used to be imported:
@@ -122,21 +122,21 @@ declare function parseHuesFromUrl(url: string | URL): Hues;
122
122
  *
123
123
  * @public
124
124
  */
125
- declare function buildThemeFromUrl(url: string | URL): LegacyTheme;
125
+ export declare function buildThemeFromUrl(url: string | URL): LegacyTheme;
126
126
  /**
127
127
  * The hues of the default Studio theme — the same `hues` export that
128
128
  * `https://themer.sanity.build/api/hues` served without any parameters.
129
129
  *
130
130
  * @public
131
131
  */
132
- declare const hues: Hues;
132
+ export declare const hues: Hues;
133
133
  /**
134
134
  * The default Studio theme — the same `theme` export that
135
135
  * `https://themer.sanity.build/api/hues` served without any parameters.
136
136
  *
137
137
  * @public
138
138
  */
139
- declare const theme: LegacyTheme;
139
+ export declare const theme: LegacyTheme;
140
140
  /**
141
141
  * The preset themes of the hosted Themer service (themer.sanity.build), with
142
142
  * the same slugs and hues:
@@ -150,6 +150,6 @@ declare const theme: LegacyTheme;
150
150
  *
151
151
  * @public
152
152
  */
153
- declare const presets: ThemePreset[];
154
- export { type Hue, type HueMidPoint, type Hues, type LegacyTheme, type PartialHues, type ThemePreset, buildThemeFromUrl, createTheme, hues, parseHuesFromUrl, presets, theme };
153
+ export declare const presets: ThemePreset[];
154
+ export type { Hue, HueMidPoint, Hues, LegacyTheme, PartialHues, ThemePreset };
155
155
  //# sourceMappingURL=legacy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"legacy.d.ts","names":[],"sources":["../src/legacy/types.ts","../src/legacy/createTheme.ts","../src/legacy/defaults.ts","../src/legacy/presets.ts"],"mappings":";;;;;;KAOY;;;;;;;UAQK;;EAEf;;EAEA,UAAU;;EAEV;;EAEA;;;;;;;UAQe;EACf,SAAS;EACT,aAAa;EACb,SAAS;EACT,UAAU;EACV,SAAS;EACT,UAAU;;;;;;;;KASA,iBAAgB,cAAc,QAAQ,QAAQ,KAAK;;;;;;;KAQnD,cAAc;;;;;EAKxB;;;;;;;UAQe;EACf;EACA;;;;;EAKA;;EAEA,MAAM;;;;;;;;;;;;;;;;;;iBCtDQ,YAAY,OAAM,cAAmB;;;;;;;;;;;;;;;;;iBAoBrC,iBAAiB,cAAc,MAAM;;;;;;;;;;;;;;;;;;;iBAyBrC,kBAAkB,cAAc,MAAM;;;;;;;cCzDzC,MAAM;;;;;;;cAQN,OAAO;;;;;;;;;;;;;;cCcP,SAAS"}
1
+ {"version":3,"file":"legacy.d.ts","names":[],"sources":["../src/legacy/types.ts","../src/legacy/createTheme.ts","../src/legacy/defaults.ts","../src/legacy/presets.ts"],"mappings":";;;;;;KAOY;;;;;;;UAQK;;EAEf;;EAEA,UAAU;;EAEV;;EAEA;;;;;;;UAQe;EACf,SAAS;EACT,aAAa;EACb,SAAS;EACT,UAAU;EACV,SAAS;EACT,UAAU;;;;;;;;KASA,iBAAgB,cAAc,QAAQ,QAAQ,KAAK;;;;;;;KAQnD,cAAc;;;;;EAKxB;;;;;;;UAQe;EACf;EACA;;;;;EAKA;;EAEA,MAAM;;;;;;;;;;;;;;;;;;wBCtDQ,YAAY,OAAM,cAAmB;;;;;;;;;;;;;;;;;wBAoBrC,iBAAiB,cAAc,MAAM;;;;;;;;;;;;;;;;;;;wBAyBrC,kBAAkB,cAAc,MAAM;;;;;;;qBCzDzC,MAAM;;;;;;;qBAQN,OAAO;;;;;;;;;;;;;;qBCcP,SAAS"}
package/dist/tool.d.ts CHANGED
@@ -47,6 +47,6 @@ interface ThemerToolOptions {
47
47
  *
48
48
  * @alpha
49
49
  */
50
- declare const themerTool: import("sanity").Plugin<void | ThemerToolOptions>;
51
- export { type ThemerToolOptions, themerTool };
50
+ export declare const themerTool: import("sanity").Plugin<void | ThemerToolOptions>;
51
+ export type { ThemerToolOptions };
52
52
  //# sourceMappingURL=tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tool.d.ts","names":[],"sources":["../src/tool/plugin.tsx"],"mappings":";;;;;;;;;UAeiB;;;;;;;;;;;;;;;EAef,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;cA0BE,6BAAU,cAAA"}
1
+ {"version":3,"file":"tool.d.ts","names":[],"sources":["../src/tool/plugin.tsx"],"mappings":";;;;;;;;;UAeiB;;;;;;;;;;;;;;;EAef,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;qBA0BE,6BAAU,cAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/themer",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "description": "Generate Sanity Studio themes, and preview them with a Studio tool.",
5
5
  "keywords": [
6
6
  "sanity",
@@ -35,22 +35,22 @@
35
35
  "dependencies": {
36
36
  "@sanity/color": "^3.0.8",
37
37
  "@sanity/icons": "^5.2.1",
38
- "@sanity/ui": "^4.1.0",
38
+ "@sanity/ui": "^4.1.1",
39
39
  "react-compiler-runtime": "1.0.0",
40
40
  "react-refractor": "^4.0.0",
41
41
  "refractor": "^5.0.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@sanity/tsdown-config": "^0.27.1",
45
- "@sanity/vanilla-extract-vite-plugin": "^0.2.17",
44
+ "@sanity/tsdown-config": "^0.28.0",
45
+ "@sanity/vanilla-extract-vite-plugin": "^0.2.18",
46
46
  "@types/node": "^24.13.3",
47
47
  "@types/react": "^19.2.18",
48
48
  "oxc-transform-react": "^0.148.0",
49
49
  "react": "^19.2.8",
50
50
  "rimraf": "^5.0.5",
51
- "sanity": "^6.11.0",
51
+ "sanity": "^6.12.0",
52
52
  "styled-components": "^6.5.3",
53
- "tsdown": "^0.22.14",
53
+ "tsdown": "^0.23.0",
54
54
  "typescript": "7.0.2",
55
55
  "vitest": "^4.1.11"
56
56
  },