@boldvideo/bold-js 1.12.0 → 1.13.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 +10 -0
- package/README.md +15 -0
- package/dist/index.d.ts +7 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @boldvideo/bold-js
|
|
2
2
|
|
|
3
|
+
## 1.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4030a6e: Add portal hero configuration and menu item blank property
|
|
8
|
+
|
|
9
|
+
- Added `portal.hero` configuration with `type: 'none' | 'custom'` to control hero section display
|
|
10
|
+
- Added `blank` property to `MenuItem` type for opening links in new windows/tabs
|
|
11
|
+
- Updated `MenuItem.icon` to allow `null` values
|
|
12
|
+
|
|
3
13
|
## 1.12.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -85,6 +85,18 @@ const playlist = await bold.playlists.get('playlist-id');
|
|
|
85
85
|
```typescript
|
|
86
86
|
// Fetch channel settings, menus, and featured playlists
|
|
87
87
|
const settings = await bold.settings();
|
|
88
|
+
|
|
89
|
+
// Access portal hero configuration
|
|
90
|
+
if (settings.portal.hero.type === 'custom') {
|
|
91
|
+
// Render custom hero section
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Menu items with external link handling
|
|
95
|
+
settings.menuItems.forEach(item => {
|
|
96
|
+
// item.blank: true opens in a new window/tab
|
|
97
|
+
// item.isExt: true indicates an external URL
|
|
98
|
+
// item.icon: optional icon path (can be null)
|
|
99
|
+
});
|
|
88
100
|
```
|
|
89
101
|
|
|
90
102
|
---
|
|
@@ -257,6 +269,9 @@ import type {
|
|
|
257
269
|
Video,
|
|
258
270
|
Playlist,
|
|
259
271
|
Settings,
|
|
272
|
+
Portal,
|
|
273
|
+
PortalHero,
|
|
274
|
+
MenuItem,
|
|
260
275
|
AIEvent,
|
|
261
276
|
AIResponse,
|
|
262
277
|
ChatOptions,
|
package/dist/index.d.ts
CHANGED
|
@@ -62,10 +62,11 @@ type Playlist = {
|
|
|
62
62
|
videos: Video[];
|
|
63
63
|
};
|
|
64
64
|
type MenuItem = {
|
|
65
|
-
icon: string;
|
|
65
|
+
icon: string | null;
|
|
66
66
|
isExt: boolean;
|
|
67
67
|
label: string;
|
|
68
68
|
url: string;
|
|
69
|
+
blank: boolean;
|
|
69
70
|
};
|
|
70
71
|
type PortalDisplay = {
|
|
71
72
|
showChapters: boolean;
|
|
@@ -105,9 +106,13 @@ type PortalTheme = {
|
|
|
105
106
|
dark: ThemeColors;
|
|
106
107
|
cssOverrides: string | null;
|
|
107
108
|
};
|
|
109
|
+
type PortalHero = {
|
|
110
|
+
type: 'none' | 'custom';
|
|
111
|
+
};
|
|
108
112
|
type Portal = {
|
|
109
113
|
colorScheme?: 'toggle' | 'light' | 'dark';
|
|
110
114
|
display: PortalDisplay;
|
|
115
|
+
hero: PortalHero;
|
|
111
116
|
layout: PortalLayout;
|
|
112
117
|
navigation: PortalNavigation;
|
|
113
118
|
theme: PortalTheme;
|
|
@@ -491,4 +496,4 @@ declare const DEFAULT_API_BASE_URL = "https://app.boldvideo.io/api/v1/";
|
|
|
491
496
|
*/
|
|
492
497
|
declare const DEFAULT_INTERNAL_API_BASE_URL = "https://app.boldvideo.io/i/v1/";
|
|
493
498
|
|
|
494
|
-
export { AIContextMessage, AIEvent, AIResponse, AIUsage, Account, AccountAI, AskOptions, AssistantConfig, ChatOptions, Citation, ClientOptions, DEFAULT_API_BASE_URL, DEFAULT_INTERNAL_API_BASE_URL, MenuItem, Playlist, Portal, PortalDisplay, PortalLayout, PortalNavigation, PortalTheme, RecommendOptions, RecommendResponse, Recommendation, RecommendationVideo, RecommendationsOptions, RecommendationsResponse, SearchOptions, Segment, Settings, Source, ThemeColors, ThemeConfig, Video, VideoAttachment, VideoDownloadUrls, VideoMetadata, VideoSubtitles, VideoTranscript, createClient };
|
|
499
|
+
export { AIContextMessage, AIEvent, AIResponse, AIUsage, Account, AccountAI, AskOptions, AssistantConfig, ChatOptions, Citation, ClientOptions, DEFAULT_API_BASE_URL, DEFAULT_INTERNAL_API_BASE_URL, MenuItem, Playlist, Portal, PortalDisplay, PortalHero, PortalLayout, PortalNavigation, PortalTheme, RecommendOptions, RecommendResponse, Recommendation, RecommendationVideo, RecommendationsOptions, RecommendationsResponse, SearchOptions, Segment, Settings, Source, ThemeColors, ThemeConfig, Video, VideoAttachment, VideoDownloadUrls, VideoMetadata, VideoSubtitles, VideoTranscript, createClient };
|