@flamingo-stack/openframe-frontend-core 0.0.541 → 0.0.542-snapshot.20260815142943
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/dist/{chunk-2MO4NEIR.js → chunk-2BSDGGMZ.js} +2 -2
- package/dist/{chunk-4JL2WTIC.cjs → chunk-3ROT5PX2.cjs} +9 -9
- package/dist/{chunk-4JL2WTIC.cjs.map → chunk-3ROT5PX2.cjs.map} +1 -1
- package/dist/{chunk-XFYSYVXN.js → chunk-6J7TWGNV.js} +2 -2
- package/dist/{chunk-J6F4342G.js → chunk-7G734VXA.js} +2 -2
- package/dist/{chunk-ITUVIG7K.js → chunk-AO7OPQKS.js} +2 -2
- package/dist/{chunk-FESVTVRZ.cjs → chunk-D7GX56ZJ.cjs} +11 -11
- package/dist/{chunk-FESVTVRZ.cjs.map → chunk-D7GX56ZJ.cjs.map} +1 -1
- package/dist/{chunk-RNVMGZSM.js → chunk-ERUCYF54.js} +2 -2
- package/dist/{chunk-NJ42DNRT.cjs → chunk-EUM4XBDN.cjs} +31 -31
- package/dist/{chunk-NJ42DNRT.cjs.map → chunk-EUM4XBDN.cjs.map} +1 -1
- package/dist/{chunk-HUXNMQD7.js → chunk-FOOQ3FN3.js} +9 -7
- package/dist/chunk-FOOQ3FN3.js.map +1 -0
- package/dist/{chunk-KRXQVZRX.js → chunk-GBPWUSVD.js} +5 -5
- package/dist/{chunk-NJ7QTEJM.cjs → chunk-IWGK2OSV.cjs} +28 -26
- package/dist/chunk-IWGK2OSV.cjs.map +1 -0
- package/dist/{chunk-COZAC2RY.cjs → chunk-KFRFOOLI.cjs} +4 -4
- package/dist/{chunk-COZAC2RY.cjs.map → chunk-KFRFOOLI.cjs.map} +1 -1
- package/dist/{chunk-FUF6YX7H.cjs → chunk-L46PXCHD.cjs} +7 -7
- package/dist/{chunk-FUF6YX7H.cjs.map → chunk-L46PXCHD.cjs.map} +1 -1
- package/dist/{chunk-6B6RCBVM.cjs → chunk-NMMBXECI.cjs} +87 -87
- package/dist/{chunk-6B6RCBVM.cjs.map → chunk-NMMBXECI.cjs.map} +1 -1
- package/dist/{chunk-JWSWACXB.cjs → chunk-PQ6FUNPA.cjs} +14 -14
- package/dist/{chunk-JWSWACXB.cjs.map → chunk-PQ6FUNPA.cjs.map} +1 -1
- package/dist/{chunk-JOQBVXM3.js → chunk-R53YBUQ3.js} +2 -2
- package/dist/{chunk-57K53PKB.cjs → chunk-RGI45NCV.cjs} +26 -26
- package/dist/{chunk-57K53PKB.cjs.map → chunk-RGI45NCV.cjs.map} +1 -1
- package/dist/{chunk-3KEAUJUU.js → chunk-RWZE5FC5.js} +2 -2
- package/dist/{chunk-T2NU3GZ7.js → chunk-SHLL6E5T.js} +4 -4
- package/dist/{chunk-BYKPDIVC.js → chunk-SNFFVRXR.js} +2951 -2897
- package/dist/chunk-SNFFVRXR.js.map +1 -0
- package/dist/{chunk-RZWZCDBG.js → chunk-T65SKWRT.js} +2 -2
- package/dist/{chunk-A5USNYZA.js → chunk-TUPAJW3I.js} +2 -2
- package/dist/{chunk-EVJ7DVCI.cjs → chunk-VRS3EJNW.cjs} +75 -73
- package/dist/chunk-VRS3EJNW.cjs.map +1 -0
- package/dist/{chunk-QZEEP2FO.js → chunk-WCXM43JA.js} +6 -4
- package/dist/{chunk-QZEEP2FO.js.map → chunk-WCXM43JA.js.map} +1 -1
- package/dist/{chunk-VKBGJGYF.cjs → chunk-WPIFOMFD.cjs} +37 -37
- package/dist/{chunk-VKBGJGYF.cjs.map → chunk-WPIFOMFD.cjs.map} +1 -1
- package/dist/{chunk-52FXIY2M.cjs → chunk-YXYYPTLR.cjs} +5 -5
- package/dist/{chunk-52FXIY2M.cjs.map → chunk-YXYYPTLR.cjs.map} +1 -1
- package/dist/{chunk-T7ZTT7TO.cjs → chunk-Z34YRIM7.cjs} +688 -634
- package/dist/chunk-Z34YRIM7.cjs.map +1 -0
- package/dist/{chunk-KJZVKS7X.cjs → chunk-ZFRSWZGZ.cjs} +3 -3
- package/dist/{chunk-KJZVKS7X.cjs.map → chunk-ZFRSWZGZ.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/chat/types/entities/onboarding-guide.d.ts +1 -0
- package/dist/components/chat/types/entities/onboarding-guide.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/docs/index.js +4 -4
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/captions-url.cjs +3 -2
- package/dist/components/features/captions-url.cjs.map +1 -1
- package/dist/components/features/captions-url.d.ts +8 -1
- package/dist/components/features/captions-url.d.ts.map +1 -1
- package/dist/components/features/captions-url.js +3 -2
- package/dist/components/features/captions-url.js.map +1 -1
- package/dist/components/features/entity-video-section.d.ts +7 -1
- package/dist/components/features/entity-video-section.d.ts.map +1 -1
- package/dist/components/features/highlight-config-section.d.ts +4 -6
- package/dist/components/features/highlight-config-section.d.ts.map +1 -1
- package/dist/components/features/highlight-video-combined-section.d.ts +7 -5
- package/dist/components/features/highlight-video-combined-section.d.ts.map +1 -1
- package/dist/components/features/highlight-video-section.d.ts +1 -5
- package/dist/components/features/highlight-video-section.d.ts.map +1 -1
- package/dist/components/features/index.cjs +4 -2
- package/dist/components/features/index.cjs.map +1 -1
- package/dist/components/features/index.d.ts +1 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/index.js +3 -1
- package/dist/components/features/subtitles-editor.d.ts +35 -0
- package/dist/components/features/subtitles-editor.d.ts.map +1 -0
- package/dist/components/features/transcript-summary-editor.d.ts.map +1 -1
- package/dist/components/features/video-source-selector.d.ts +8 -1
- package/dist/components/features/video-source-selector.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +144 -132
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +23 -11
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/meeting-scheduler/index.js +3 -3
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/onboarding-guides/onboarding-guide-detail-view.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/shared/product-release/release-detail-page.d.ts +2 -0
- package/dist/components/shared/product-release/release-detail-page.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +12 -2
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +11 -1
- package/dist/components/ui/modal.d.ts +28 -0
- package/dist/components/ui/modal.d.ts.map +1 -1
- package/dist/components/ui/source-tooltip.d.ts +41 -0
- package/dist/components/ui/source-tooltip.d.ts.map +1 -0
- package/dist/index.cjs +14 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -1
- package/dist/types/case-study.d.ts +2 -0
- package/dist/types/case-study.d.ts.map +1 -1
- package/dist/types/customer-interview.d.ts +2 -2
- package/dist/types/customer-interview.d.ts.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/product-release.d.ts +2 -0
- package/dist/types/product-release.d.ts.map +1 -1
- package/dist/types/supabase.d.ts +3 -0
- package/dist/types/supabase.d.ts.map +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/types/entities/onboarding-guide.ts +1 -0
- package/src/components/features/.highlight-config-section.md +0 -6
- package/src/components/features/.highlight-video-combined-section.md +0 -3
- package/src/components/features/.highlight-video-section.md +0 -3
- package/src/components/features/captions-url.ts +10 -1
- package/src/components/features/entity-video-section.tsx +9 -0
- package/src/components/features/highlight-config-section.tsx +3 -20
- package/src/components/features/highlight-video-combined-section.tsx +25 -8
- package/src/components/features/highlight-video-section.tsx +0 -19
- package/src/components/features/index.ts +1 -0
- package/src/components/features/subtitles-editor.tsx +87 -0
- package/src/components/features/transcript-summary-editor.tsx +14 -33
- package/src/components/features/video-source-selector.tsx +14 -3
- package/src/components/onboarding-guides/onboarding-guide-detail-view.tsx +2 -0
- package/src/components/shared/product-release/release-detail-page.tsx +4 -0
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/modal.tsx +33 -2
- package/src/components/ui/source-tooltip.tsx +72 -0
- package/src/types/.customer-interview.md +0 -2
- package/src/types/case-study.ts +2 -0
- package/src/types/customer-interview.ts +2 -2
- package/src/types/product-release.ts +2 -0
- package/src/types/supabase.ts +3 -0
- package/dist/chunk-BYKPDIVC.js.map +0 -1
- package/dist/chunk-EVJ7DVCI.cjs.map +0 -1
- package/dist/chunk-HUXNMQD7.js.map +0 -1
- package/dist/chunk-NJ7QTEJM.cjs.map +0 -1
- package/dist/chunk-T7ZTT7TO.cjs.map +0 -1
- /package/dist/{chunk-2MO4NEIR.js.map → chunk-2BSDGGMZ.js.map} +0 -0
- /package/dist/{chunk-XFYSYVXN.js.map → chunk-6J7TWGNV.js.map} +0 -0
- /package/dist/{chunk-J6F4342G.js.map → chunk-7G734VXA.js.map} +0 -0
- /package/dist/{chunk-ITUVIG7K.js.map → chunk-AO7OPQKS.js.map} +0 -0
- /package/dist/{chunk-RNVMGZSM.js.map → chunk-ERUCYF54.js.map} +0 -0
- /package/dist/{chunk-KRXQVZRX.js.map → chunk-GBPWUSVD.js.map} +0 -0
- /package/dist/{chunk-JOQBVXM3.js.map → chunk-R53YBUQ3.js.map} +0 -0
- /package/dist/{chunk-3KEAUJUU.js.map → chunk-RWZE5FC5.js.map} +0 -0
- /package/dist/{chunk-T2NU3GZ7.js.map → chunk-SHLL6E5T.js.map} +0 -0
- /package/dist/{chunk-RZWZCDBG.js.map → chunk-T65SKWRT.js.map} +0 -0
- /package/dist/{chunk-A5USNYZA.js.map → chunk-TUPAJW3I.js.map} +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { ExternalLink, Info } from 'lucide-react'
|
|
4
|
+
import { Button } from './button'
|
|
5
|
+
import { FloatingTooltip } from './floating-tooltip'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Source-reference tooltip — a (i) info icon whose tooltip lists every source
|
|
9
|
+
* behind a cited figure as a Button link row (value · short label,
|
|
10
|
+
* external-link glyph) with an optional "where it lives in the research" line
|
|
11
|
+
* under it. Rows are clickable because the FloatingTooltip's safePolygon
|
|
12
|
+
* keeps it open while the pointer travels into the content; the (i) itself
|
|
13
|
+
* opens the first source so the click-the-icon habit still works.
|
|
14
|
+
*
|
|
15
|
+
* The trigger renders inline (`as="span"`) — a source (i) always sits inside
|
|
16
|
+
* a line of text (a statement's last line, a money tail, a value line).
|
|
17
|
+
* Hosts style the icon via `iconClassName`; the tooltip CONTENT is
|
|
18
|
+
* self-contained ODS styling (it portals to <body>, outside any host-scoped
|
|
19
|
+
* CSS variables).
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
export interface SourceRef {
|
|
23
|
+
/** The figure this source backs, e.g. "$121.2B" — leads the button label. */
|
|
24
|
+
value: string
|
|
25
|
+
/** Short source name after the value (buttons are nowrap — keep it tight). */
|
|
26
|
+
label: string
|
|
27
|
+
/** Exactly where the number lives in the research (report · table/figure ·
|
|
28
|
+
* column) — "click the link and can't find the number" is a credibility
|
|
29
|
+
* bug. Rendered as a fine-print line under the button. */
|
|
30
|
+
where?: string
|
|
31
|
+
href: string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface SourceTooltipProps {
|
|
35
|
+
/** One-line setup above the source rows (e.g. how the figures add up). */
|
|
36
|
+
intro?: React.ReactNode
|
|
37
|
+
sources: SourceRef[]
|
|
38
|
+
/** Fine print under the rows (e.g. what the cited segment covers). */
|
|
39
|
+
note?: React.ReactNode
|
|
40
|
+
/** Classes for the trigger's <Info> icon (size/color live with the host). */
|
|
41
|
+
iconClassName?: string
|
|
42
|
+
/** Extra attributes for the trigger anchor — e.g. a host's click-intercept
|
|
43
|
+
* opt-out vocabulary like the deck's `data-no-nav`. */
|
|
44
|
+
triggerAnchorProps?: React.AnchorHTMLAttributes<HTMLAnchorElement> & { [k: `data-${string}`]: string | boolean | undefined }
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function SourceTooltip({ intro, sources, note, iconClassName, triggerAnchorProps }: SourceTooltipProps) {
|
|
48
|
+
return (
|
|
49
|
+
<FloatingTooltip as="span" side="top" delayDuration={0} className="max-w-sm" content={
|
|
50
|
+
<span className="flex flex-col gap-2 py-0.5">
|
|
51
|
+
{intro && <span className="font-semibold text-ods-text-primary">{intro}</span>}
|
|
52
|
+
{sources.map((s) => (
|
|
53
|
+
<span key={s.href} className="flex flex-col gap-1">
|
|
54
|
+
<Button
|
|
55
|
+
variant="outline"
|
|
56
|
+
size="compact"
|
|
57
|
+
fullWidth
|
|
58
|
+
linkProps={{ href: s.href, target: '_blank', rel: 'noopener noreferrer' }}
|
|
59
|
+
rightIcon={<ExternalLink />}
|
|
60
|
+
>
|
|
61
|
+
{s.value} · {s.label}
|
|
62
|
+
</Button>
|
|
63
|
+
{s.where && <span className="text-ods-text-secondary">{s.where}</span>}
|
|
64
|
+
</span>
|
|
65
|
+
))}
|
|
66
|
+
{note && <span className="text-ods-text-secondary">{note}</span>}
|
|
67
|
+
</span>
|
|
68
|
+
}>
|
|
69
|
+
<a href={sources[0].href} target="_blank" rel="noreferrer" aria-label="Source research" {...triggerAnchorProps}><Info className={iconClassName} /></a>
|
|
70
|
+
</FloatingTooltip>
|
|
71
|
+
)
|
|
72
|
+
}
|
|
@@ -6,7 +6,6 @@ Customer interview domain types defining the full data model for video-based cus
|
|
|
6
6
|
### Interfaces
|
|
7
7
|
|
|
8
8
|
- **`CustomerInterview`** — Core entity with fields for video content, AI processing status/results, SEO metadata, speaker identification, and relational joins to users, MSPs, platforms, and case studies
|
|
9
|
-
- **`CustomerInterviewConfig`** — Per-interview configuration for AI highlight video generation (target duration, subtitle burning)
|
|
10
9
|
- **`CreateCustomerInterviewData`** — Input shape for creating new interviews; requires `title`, `slug`, `status`, `author_id`, and `platforms`
|
|
11
10
|
- **`UpdateCustomerInterviewData`** — Partial of `CreateCustomerInterviewData` for patch operations
|
|
12
11
|
- **`CustomerInterviewFilters`** — Query filter parameters including platform, industry, company size, search, status, and pagination
|
|
@@ -41,7 +40,6 @@ const payload: CreateCustomerInterviewData = {
|
|
|
41
40
|
main_video_url: 'https://cdn.example.com/interviews/acme.mp4',
|
|
42
41
|
config: {
|
|
43
42
|
highlight_target_duration_seconds: 120,
|
|
44
|
-
skipSubtitleBurning: false,
|
|
45
43
|
},
|
|
46
44
|
}
|
|
47
45
|
|
package/src/types/case-study.ts
CHANGED
|
@@ -40,6 +40,7 @@ export interface CaseStudy {
|
|
|
40
40
|
// NOTE: transcript_words_data is server-only and intentionally NOT typed here.
|
|
41
41
|
transcript?: string | null
|
|
42
42
|
srt_content?: string | null
|
|
43
|
+
highlight_srt_content?: string | null
|
|
43
44
|
video_summary?: string | null
|
|
44
45
|
custom_instructions?: string | null
|
|
45
46
|
config?: Record<string, unknown> | null // clip/highlight processing config
|
|
@@ -98,6 +99,7 @@ export interface CreateCaseStudyData {
|
|
|
98
99
|
// Video processing pipeline (parity with customer_interviews)
|
|
99
100
|
transcript?: string | null
|
|
100
101
|
srt_content?: string | null
|
|
102
|
+
highlight_srt_content?: string | null
|
|
101
103
|
video_summary?: string | null
|
|
102
104
|
custom_instructions?: string | null
|
|
103
105
|
config?: Record<string, unknown> | null
|
|
@@ -14,8 +14,6 @@ import type { VideoTeaser, Speaker, VideoClip, TranscriptWord, SpeakerMapping, E
|
|
|
14
14
|
export interface CustomerInterviewConfig {
|
|
15
15
|
/** Target duration in seconds for AI-generated highlight video (default: 180) */
|
|
16
16
|
highlight_target_duration_seconds?: number
|
|
17
|
-
/** Skip subtitle burning during highlight video generation */
|
|
18
|
-
skipSubtitleBurning?: boolean
|
|
19
17
|
}
|
|
20
18
|
|
|
21
19
|
export interface CustomerInterview {
|
|
@@ -79,6 +77,7 @@ export interface CustomerInterview {
|
|
|
79
77
|
// Word-level transcript data for video processing
|
|
80
78
|
transcript_words_data?: TranscriptWord[]
|
|
81
79
|
srt_content?: string | null
|
|
80
|
+
highlight_srt_content?: string | null
|
|
82
81
|
|
|
83
82
|
// Incentive mention exclusion ranges (computed during transcription)
|
|
84
83
|
incentive_excluded_ranges?: ExcludedRange[]
|
|
@@ -115,6 +114,7 @@ export interface CreateCustomerInterviewData {
|
|
|
115
114
|
video_summary?: string // AI-generated summary from video transcription (Markdown supported)
|
|
116
115
|
transcript?: string // Markdown supported
|
|
117
116
|
srt_content?: string | null // SRT subtitle content
|
|
117
|
+
highlight_srt_content?: string | null
|
|
118
118
|
user_id?: string // Customer UUID
|
|
119
119
|
main_video_url?: string
|
|
120
120
|
highlight_video_url?: string | null
|
|
@@ -101,6 +101,7 @@ export interface ProductRelease {
|
|
|
101
101
|
transcript: string | null
|
|
102
102
|
transcript_words_data?: TranscriptWord[]
|
|
103
103
|
srt_content?: string | null
|
|
104
|
+
highlight_srt_content?: string | null
|
|
104
105
|
video_summary: string | null // AI-generated summary from video transcription
|
|
105
106
|
video_bites: VideoTeaser[] // JSONB array of extracted video clips
|
|
106
107
|
highlight_video_url: string | null
|
|
@@ -192,6 +193,7 @@ export interface CreateProductReleaseData {
|
|
|
192
193
|
main_video_url?: string
|
|
193
194
|
transcript?: string
|
|
194
195
|
srt_content?: string | null
|
|
196
|
+
highlight_srt_content?: string | null
|
|
195
197
|
video_summary?: string // AI-generated summary from video transcription
|
|
196
198
|
video_bites?: VideoTeaser[]
|
|
197
199
|
highlight_video_url?: string | null
|
package/src/types/supabase.ts
CHANGED
|
@@ -409,6 +409,7 @@ export type Database = {
|
|
|
409
409
|
highlight_video_source: string | null
|
|
410
410
|
highlight_video_thumbnail: string | null
|
|
411
411
|
highlight_video_duration_ms: number | null
|
|
412
|
+
highlight_srt_content: string | null
|
|
412
413
|
author_id: string | null
|
|
413
414
|
position: 'left' | 'right'
|
|
414
415
|
created_at: string
|
|
@@ -434,6 +435,7 @@ export type Database = {
|
|
|
434
435
|
highlight_video_source?: string | null
|
|
435
436
|
highlight_video_thumbnail?: string | null
|
|
436
437
|
highlight_video_duration_ms?: number | null
|
|
438
|
+
highlight_srt_content?: string | null
|
|
437
439
|
author_id?: string | null
|
|
438
440
|
created_at?: string
|
|
439
441
|
updated_at?: string
|
|
@@ -457,6 +459,7 @@ export type Database = {
|
|
|
457
459
|
highlight_video_source?: string | null
|
|
458
460
|
highlight_video_thumbnail?: string | null
|
|
459
461
|
highlight_video_duration_ms?: number | null
|
|
462
|
+
highlight_srt_content?: string | null
|
|
460
463
|
author_id?: string | null
|
|
461
464
|
position?: 'left' | 'right'
|
|
462
465
|
created_at?: string
|