unified-video-framework 1.4.439 → 1.4.441
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/package.json +1 -1
- package/packages/core/dist/version.d.ts +1 -1
- package/packages/core/dist/version.js +1 -1
- package/packages/core/src/version.ts +1 -1
- package/packages/web/dist/WebPlayer.d.ts +7 -0
- package/packages/web/dist/WebPlayer.d.ts.map +1 -1
- package/packages/web/dist/WebPlayer.js +435 -14
- package/packages/web/dist/WebPlayer.js.map +1 -1
- package/packages/web/dist/react/types/FlashNewsTickerTypes.d.ts +11 -0
- package/packages/web/dist/react/types/FlashNewsTickerTypes.d.ts.map +1 -1
- package/packages/web/src/WebPlayer.ts +525 -15
- package/packages/web/src/react/types/FlashNewsTickerTypes.ts +52 -1
|
@@ -64,6 +64,20 @@ export interface TopLineConfig {
|
|
|
64
64
|
/** Maximum lines before truncation with ellipsis. Default: 2 */
|
|
65
65
|
maxLines?: number;
|
|
66
66
|
|
|
67
|
+
/**
|
|
68
|
+
* Force text to split into multiple lines even if short.
|
|
69
|
+
* When true, text will be split at approximately the midpoint.
|
|
70
|
+
* Default: false
|
|
71
|
+
*/
|
|
72
|
+
forceMultiLine?: boolean;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Custom line break position (character index or percentage like '50%').
|
|
76
|
+
* Only used when forceMultiLine is true.
|
|
77
|
+
* Default: '50%' (midpoint)
|
|
78
|
+
*/
|
|
79
|
+
breakAt?: number | string;
|
|
80
|
+
|
|
67
81
|
/** Minimum height in pixels. Default: 32 */
|
|
68
82
|
minHeight?: number;
|
|
69
83
|
|
|
@@ -415,7 +429,44 @@ export interface FlashNewsTickerConfig {
|
|
|
415
429
|
/** Separator text between items. Default: ' • ' */
|
|
416
430
|
separator?: string;
|
|
417
431
|
|
|
418
|
-
|
|
432
|
+
/**
|
|
433
|
+
* Ticker variant/layout style. Options:
|
|
434
|
+
* - 'standard': Original simple scrolling ticker
|
|
435
|
+
* - 'breaking': Red badge + gradient (TV style)
|
|
436
|
+
* - 'live': Yellow/Black badge + gradient (TV style)
|
|
437
|
+
* - 'broadcast1': Blue/Red/Black dual-bar layout with globe
|
|
438
|
+
* - 'broadcast2': Yellow/Red/Blue dual-bar layout with globe
|
|
439
|
+
* - 'broadcast3': Triple-segment single bar (Red/Blue/Black)
|
|
440
|
+
* - 'broadcast4': Blue box "NEWS" + Red scrolling bar
|
|
441
|
+
* - 'custom': User-defined colors and badges
|
|
442
|
+
*/
|
|
443
|
+
variant?: 'standard' | 'breaking' | 'live' | 'broadcast1' | 'broadcast2' | 'broadcast3' | 'broadcast4' | 'custom';
|
|
444
|
+
|
|
445
|
+
/** Fixed badge text (e.g. "BREAKING NEWS") */
|
|
446
|
+
badgeText?: string;
|
|
447
|
+
|
|
448
|
+
/** Badge background color (e.g. "#e74c3c") */
|
|
449
|
+
badgeColor?: string;
|
|
450
|
+
|
|
451
|
+
/** Badge text color (e.g. "#ffffff") */
|
|
452
|
+
badgeTextColor?: string;
|
|
453
|
+
|
|
454
|
+
/** Accent/gradient color for the ticker (e.g. "#c0392b") */
|
|
455
|
+
accentColor?: string;
|
|
456
|
+
|
|
457
|
+
/** Enable pulse animation for the badge. Default: true for breaking/live */
|
|
458
|
+
pulseBadge?: boolean;
|
|
459
|
+
|
|
460
|
+
/** URL for the left-side icon (e.g. globe graphic) */
|
|
461
|
+
iconUrl?: string;
|
|
462
|
+
|
|
463
|
+
/** Static headline text for multi-bar layouts */
|
|
464
|
+
headline?: string;
|
|
465
|
+
|
|
466
|
+
/** Items for the second scrolling track (if applicable to layout) */
|
|
467
|
+
secondaryItems?: FlashNewsTickerItem[];
|
|
468
|
+
|
|
469
|
+
/** Safe areas */
|
|
419
470
|
|
|
420
471
|
/** Top offset in pixels for safe area. Default: 10 */
|
|
421
472
|
topOffset?: number;
|