@boldvideo/bold-js 1.0.1 → 1.1.0

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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @boldvideo/bold-js
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 44c1a4f: Simplify ThemeColors type to match new 9-token backend theme system (BOLD-919)
8
+
9
+ **ThemeColors changes:**
10
+
11
+ - Added: `accent`, `accent-foreground`, `surface`
12
+ - Removed: `card`, `card-foreground`, `destructive`, `destructive-foreground`, `input`, `popover`, `popover-foreground`, `primary`, `primary-foreground`, `secondary`, `secondary-foreground`
13
+
14
+ **ThemeConfig changes:**
15
+
16
+ - Added: `color_scheme` field (`"toggle" | "light" | "dark"`)
17
+
18
+ This aligns the SDK types with the backend's dynamically derived OKLCH theme tokens (BOLD-921).
19
+
3
20
  ## 1.0.1
4
21
 
5
22
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -104,28 +104,21 @@ type Portal = {
104
104
  theme: PortalTheme;
105
105
  };
106
106
  type ThemeColors = {
107
+ accent: string;
107
108
  background: string;
108
- border: string;
109
- card: string;
110
- "card-foreground": string;
111
- destructive: string;
112
- "destructive-foreground": string;
113
109
  foreground: string;
114
- input: string;
110
+ "accent-foreground": string;
115
111
  muted: string;
116
112
  "muted-foreground": string;
117
- popover: string;
118
- "popover-foreground": string;
119
- primary: string;
120
- "primary-foreground": string;
113
+ border: string;
121
114
  ring: string;
122
- secondary: string;
123
- "secondary-foreground": string;
115
+ surface: string;
124
116
  };
125
117
  type ThemeConfig = {
126
- dark: ThemeColors;
127
- light: ThemeColors;
128
118
  radius: string;
119
+ color_scheme: "toggle" | "light" | "dark";
120
+ light: ThemeColors;
121
+ dark: ThemeColors;
129
122
  };
130
123
  type AccountAI = {
131
124
  avatar_url: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@boldvideo/bold-js",
3
3
  "license": "MIT",
4
- "version": "1.0.1",
4
+ "version": "1.1.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",