@boldvideo/bold-js 1.0.0 → 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 +27 -0
- package/dist/index.d.ts +22 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
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
|
+
|
|
20
|
+
## 1.0.1
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 844d6f1: Add persona and ai_search types to Account settings
|
|
25
|
+
|
|
26
|
+
- Added `Persona` type (discriminated union based on `enabled` flag)
|
|
27
|
+
- Added `AccountAISearch` type with `enabled` boolean
|
|
28
|
+
- Updated `Account` type to include `ai_search` and `persona` fields
|
|
29
|
+
|
|
3
30
|
## 1.0.0
|
|
4
31
|
|
|
5
32
|
### Major 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
|
-
|
|
110
|
+
"accent-foreground": string;
|
|
115
111
|
muted: string;
|
|
116
112
|
"muted-foreground": string;
|
|
117
|
-
|
|
118
|
-
"popover-foreground": string;
|
|
119
|
-
primary: string;
|
|
120
|
-
"primary-foreground": string;
|
|
113
|
+
border: string;
|
|
121
114
|
ring: string;
|
|
122
|
-
|
|
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;
|
|
@@ -133,9 +126,24 @@ type AccountAI = {
|
|
|
133
126
|
greeting: string;
|
|
134
127
|
name: string;
|
|
135
128
|
};
|
|
129
|
+
type AccountAISearch = {
|
|
130
|
+
enabled: boolean;
|
|
131
|
+
};
|
|
132
|
+
type PersonaEnabled = {
|
|
133
|
+
enabled: true;
|
|
134
|
+
name: string;
|
|
135
|
+
greeting: string;
|
|
136
|
+
conversation_starters: string[];
|
|
137
|
+
};
|
|
138
|
+
type PersonaDisabled = {
|
|
139
|
+
enabled: false;
|
|
140
|
+
};
|
|
141
|
+
type Persona = PersonaEnabled | PersonaDisabled;
|
|
136
142
|
type Account = {
|
|
137
143
|
ai: AccountAI;
|
|
144
|
+
ai_search: AccountAISearch;
|
|
138
145
|
name: string;
|
|
146
|
+
persona: Persona;
|
|
139
147
|
slug: string;
|
|
140
148
|
};
|
|
141
149
|
type Settings = {
|