@seyuna/postcss 1.0.0-canary.18 → 1.0.0-canary.19
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/CHANGELOG.md +7 -0
- package/dist/types.d.ts +48 -3
- package/dist/types.js +2 -0
- package/package.json +1 -1
- package/src/types.ts +56 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.0.0-canary.19](https://github.com/seyuna-corp/seyuna-postcss/compare/v1.0.0-canary.18...v1.0.0-canary.19) (2026-01-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* define types locally to avoid @seyuna/cli polyfill side-effects ([acdbcc9](https://github.com/seyuna-corp/seyuna-postcss/commit/acdbcc977fd2a501302d675ff7ffd2c307e25a95))
|
|
7
|
+
|
|
1
8
|
# [1.0.0-canary.18](https://github.com/seyuna-corp/seyuna-postcss/compare/v1.0.0-canary.17...v1.0.0-canary.18) (2026-01-10)
|
|
2
9
|
|
|
3
10
|
|
package/dist/types.d.ts
CHANGED
|
@@ -1,14 +1,59 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Represents a color in the Oklch color space.
|
|
3
|
+
*/
|
|
4
|
+
export interface Color {
|
|
5
|
+
lightness: number;
|
|
6
|
+
chroma: number;
|
|
7
|
+
hue: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A set of colors for a specific theme mode.
|
|
11
|
+
*/
|
|
12
|
+
export interface Palette {
|
|
13
|
+
chroma: number;
|
|
14
|
+
lightness: number;
|
|
15
|
+
background: Color;
|
|
16
|
+
text: Color;
|
|
17
|
+
colors: Record<string, Color>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The complete theme specification.
|
|
21
|
+
*/
|
|
22
|
+
export interface Theme {
|
|
23
|
+
hues: Record<string, number>;
|
|
24
|
+
colors: Record<string, Color>;
|
|
25
|
+
light: Palette;
|
|
26
|
+
dark: Palette;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Supported color appearance modes.
|
|
30
|
+
*/
|
|
31
|
+
export type Mode = "system" | "light" | "dark";
|
|
32
|
+
/**
|
|
33
|
+
* UI Engine Configuration.
|
|
34
|
+
*/
|
|
35
|
+
export interface UI {
|
|
36
|
+
theme: Theme;
|
|
37
|
+
mode: Mode;
|
|
38
|
+
output_dir?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Root configuration structure for a Seyuna project.
|
|
42
|
+
*/
|
|
43
|
+
export interface SeyunaConfig {
|
|
44
|
+
license?: string;
|
|
45
|
+
ui?: UI;
|
|
46
|
+
}
|
|
2
47
|
export type FunctionMap = Record<string, (context: PluginContext, ...args: string[]) => string>;
|
|
3
48
|
export interface PluginOptions {
|
|
4
49
|
configPath?: string;
|
|
5
50
|
modeAttribute?: string;
|
|
6
51
|
strict?: boolean;
|
|
7
|
-
config?:
|
|
52
|
+
config?: SeyunaConfig;
|
|
8
53
|
functions?: FunctionMap;
|
|
9
54
|
}
|
|
10
55
|
export interface PluginContext {
|
|
11
|
-
config:
|
|
56
|
+
config: SeyunaConfig;
|
|
12
57
|
options: Required<PluginOptions>;
|
|
13
58
|
functions: FunctionMap;
|
|
14
59
|
}
|
package/dist/types.js
CHANGED
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -1,4 +1,57 @@
|
|
|
1
|
-
|
|
1
|
+
// Local type definitions to avoid @seyuna/cli runtime import
|
|
2
|
+
// The @seyuna/cli package imports Deno polyfills that conflict with Vite/Astro
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Represents a color in the Oklch color space.
|
|
6
|
+
*/
|
|
7
|
+
export interface Color {
|
|
8
|
+
lightness: number;
|
|
9
|
+
chroma: number;
|
|
10
|
+
hue: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A set of colors for a specific theme mode.
|
|
15
|
+
*/
|
|
16
|
+
export interface Palette {
|
|
17
|
+
chroma: number;
|
|
18
|
+
lightness: number;
|
|
19
|
+
background: Color;
|
|
20
|
+
text: Color;
|
|
21
|
+
colors: Record<string, Color>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The complete theme specification.
|
|
26
|
+
*/
|
|
27
|
+
export interface Theme {
|
|
28
|
+
hues: Record<string, number>;
|
|
29
|
+
colors: Record<string, Color>;
|
|
30
|
+
light: Palette;
|
|
31
|
+
dark: Palette;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Supported color appearance modes.
|
|
36
|
+
*/
|
|
37
|
+
export type Mode = "system" | "light" | "dark";
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* UI Engine Configuration.
|
|
41
|
+
*/
|
|
42
|
+
export interface UI {
|
|
43
|
+
theme: Theme;
|
|
44
|
+
mode: Mode;
|
|
45
|
+
output_dir?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Root configuration structure for a Seyuna project.
|
|
50
|
+
*/
|
|
51
|
+
export interface SeyunaConfig {
|
|
52
|
+
license?: string;
|
|
53
|
+
ui?: UI;
|
|
54
|
+
}
|
|
2
55
|
|
|
3
56
|
// Shared types to avoid circular dependencies between config.ts and parser.ts
|
|
4
57
|
|
|
@@ -8,12 +61,12 @@ export interface PluginOptions {
|
|
|
8
61
|
configPath?: string;
|
|
9
62
|
modeAttribute?: string;
|
|
10
63
|
strict?: boolean;
|
|
11
|
-
config?:
|
|
64
|
+
config?: SeyunaConfig;
|
|
12
65
|
functions?: FunctionMap;
|
|
13
66
|
}
|
|
14
67
|
|
|
15
68
|
export interface PluginContext {
|
|
16
|
-
config:
|
|
69
|
+
config: SeyunaConfig;
|
|
17
70
|
options: Required<PluginOptions>;
|
|
18
71
|
functions: FunctionMap;
|
|
19
72
|
}
|