@flamingo-stack/openframe-frontend-core 0.0.229 → 0.0.230-snapshot.20260607124933

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.
Files changed (55) hide show
  1. package/dist/{chunk-G6EKFWIC.js → chunk-2BMV2LVL.js} +1 -4
  2. package/dist/chunk-2BMV2LVL.js.map +1 -0
  3. package/dist/{chunk-HLKC2OBT.cjs → chunk-4VXGQIMC.cjs} +10 -10
  4. package/dist/{chunk-HLKC2OBT.cjs.map → chunk-4VXGQIMC.cjs.map} +1 -1
  5. package/dist/{chunk-QLOU4BDD.js → chunk-6ME63EW3.js} +2 -2
  6. package/dist/{chunk-TAWNR7IW.cjs → chunk-AAX7PMU7.cjs} +25 -25
  7. package/dist/{chunk-TAWNR7IW.cjs.map → chunk-AAX7PMU7.cjs.map} +1 -1
  8. package/dist/{chunk-LWJJP64X.js → chunk-FLUZ2QMJ.js} +2 -2
  9. package/dist/{chunk-WLCBY6ZO.js → chunk-G5JQMCE7.js} +2 -2
  10. package/dist/{chunk-VXYYZFVV.cjs → chunk-GROUDMXE.cjs} +7 -7
  11. package/dist/{chunk-VXYYZFVV.cjs.map → chunk-GROUDMXE.cjs.map} +1 -1
  12. package/dist/{chunk-MT5GO55P.js → chunk-XVJQ7SKB.js} +2 -2
  13. package/dist/{chunk-L65QBRV5.cjs → chunk-Y4N4XWUK.cjs} +1 -4
  14. package/dist/chunk-Y4N4XWUK.cjs.map +1 -0
  15. package/dist/{chunk-6PWR6K2K.cjs → chunk-Z2KOH5S4.cjs} +9 -9
  16. package/dist/{chunk-6PWR6K2K.cjs.map → chunk-Z2KOH5S4.cjs.map} +1 -1
  17. package/dist/components/chat/index.cjs +2 -2
  18. package/dist/components/chat/index.js +1 -1
  19. package/dist/components/chat/types/entities/program-types.d.ts +0 -1
  20. package/dist/components/chat/types/entities/program-types.d.ts.map +1 -1
  21. package/dist/components/contact/index.cjs +3 -3
  22. package/dist/components/contact/index.js +2 -2
  23. package/dist/components/features/index.cjs +2 -2
  24. package/dist/components/features/index.js +1 -1
  25. package/dist/components/index.cjs +77 -77
  26. package/dist/components/index.js +4 -4
  27. package/dist/components/navigation/index.cjs +2 -2
  28. package/dist/components/navigation/index.js +1 -1
  29. package/dist/components/onboarding-guides/index.cjs +25 -25
  30. package/dist/components/onboarding-guides/index.js +3 -3
  31. package/dist/components/tickets/index.cjs +64 -64
  32. package/dist/components/tickets/index.js +4 -4
  33. package/dist/components/ui/index.cjs +2 -2
  34. package/dist/components/ui/index.js +1 -1
  35. package/dist/index.cjs +2 -2
  36. package/dist/index.js +1 -1
  37. package/dist/types/announcement.cjs.map +1 -1
  38. package/dist/types/announcement.d.ts +3 -3
  39. package/dist/types/announcement.d.ts.map +1 -1
  40. package/dist/types/announcement.js.map +1 -1
  41. package/dist/types/index.cjs.map +1 -1
  42. package/dist/types/index.js.map +1 -1
  43. package/dist/types/supabase.d.ts +0 -40
  44. package/dist/types/supabase.d.ts.map +1 -1
  45. package/package.json +1 -1
  46. package/src/components/chat/types/entities/program-types.ts +4 -4
  47. package/src/stories/__fixtures__/chat-cards.ts +0 -3
  48. package/src/types/announcement.ts +3 -3
  49. package/src/types/supabase.ts +0 -40
  50. package/dist/chunk-G6EKFWIC.js.map +0 -1
  51. package/dist/chunk-L65QBRV5.cjs.map +0 -1
  52. /package/dist/{chunk-QLOU4BDD.js.map → chunk-6ME63EW3.js.map} +0 -0
  53. /package/dist/{chunk-LWJJP64X.js.map → chunk-FLUZ2QMJ.js.map} +0 -0
  54. /package/dist/{chunk-WLCBY6ZO.js.map → chunk-G5JQMCE7.js.map} +0 -0
  55. /package/dist/{chunk-MT5GO55P.js.map → chunk-XVJQ7SKB.js.map} +0 -0
@@ -137,7 +137,10 @@ export interface BaseProgramItem {
137
137
  date: string; // ISO date string - maps to: start_at, published_at
138
138
  external_url?: string | null; // Registration/play link
139
139
  hosts?: ProgramHost[] | null; // Speakers/hosts
140
- platform_id: string;
140
+ // Platform tagging lives in the host app's `entity_platforms` array (exposed
141
+ // under the per-entity arrayKey, e.g. `podcast_platforms`), NOT a derived
142
+ // singular `platform_id` on the item. ProgramCard routes via the `href` /
143
+ // `targetPlatform` props the caller computes, so it needs no platform field here.
141
144
  }
142
145
 
143
146
  // ============================================================================
@@ -356,7 +359,6 @@ export function transformEventToProgram(event: LumaEventRow): EventItem {
356
359
  date: event.start_at,
357
360
  external_url: event.event_url ?? null,
358
361
  hosts: event.hosts ?? null,
359
- platform_id: event.platform_id,
360
362
  luma_api_id: event.luma_api_id,
361
363
  end_at: event.end_at,
362
364
  timezone: event.timezone ?? null,
@@ -385,7 +387,6 @@ export function transformPodcastToProgram(episode: PodcastEpisodeRow): PodcastIt
385
387
  date: episode.published_at ?? episode.created_at,
386
388
  external_url: episode.external_url ?? null,
387
389
  hosts: episode.hosts ?? null,
388
- platform_id: episode.platform_id,
389
390
  podbean_episode_id: episode.podbean_episode_id,
390
391
  podbean_podcast_id: episode.podbean_podcast_id,
391
392
  audio_url: episode.audio_url ?? null,
@@ -417,7 +418,6 @@ export function transformWebinarToProgram(webinar: WebinarRow): WebinarItem {
417
418
  date: webinar.display_date_override ?? webinar.start_at,
418
419
  external_url: webinar.registration_url ?? null,
419
420
  hosts: webinar.hosts ?? null,
420
- platform_id: webinar.platform_id,
421
421
  livestorm_event_id: webinar.livestorm_event_id,
422
422
  start_at: webinar.start_at,
423
423
  end_at: webinar.end_at ?? null,
@@ -402,7 +402,6 @@ export const podcastItem: BaseProgramItem = {
402
402
  date: isoDaysAgo(3),
403
403
  external_url: 'https://flamingo.cx/podcasts/ep-042',
404
404
  hosts: sampleHosts,
405
- platform_id: 'platform-openmsp',
406
405
  }
407
406
 
408
407
  export const webinarItem: BaseProgramItem = {
@@ -415,7 +414,6 @@ export const webinarItem: BaseProgramItem = {
415
414
  date: isoDaysAgo(-5),
416
415
  external_url: 'https://flamingo.cx/webinars/msp-pricing-teardown',
417
416
  hosts: [sampleHosts[0]!],
418
- platform_id: 'platform-openmsp',
419
417
  }
420
418
 
421
419
  export const eventItem: BaseProgramItem = {
@@ -428,7 +426,6 @@ export const eventItem: BaseProgramItem = {
428
426
  date: isoDaysAgo(-21),
429
427
  external_url: 'https://lu.ma/msp-austin-2026',
430
428
  hosts: sampleHosts,
431
- platform_id: 'platform-openmsp',
432
429
  }
433
430
 
434
431
  // =============================================================================
@@ -62,7 +62,7 @@ export interface CreateAnnouncementData {
62
62
  icon_png_url?: string;
63
63
  /** Extra props for the main bar/icon */
64
64
  icon_svg_props?: Record<string, any>;
65
- platform_id: string; // Foreign key to platforms table
65
+ platforms?: string[]; // entity_platforms set (multi-select)
66
66
  is_active?: boolean;
67
67
  // CTA (Call-To-Action) fields
68
68
  cta_enabled?: boolean;
@@ -86,7 +86,7 @@ export interface UpdateAnnouncementData {
86
86
  icon_png_url?: string;
87
87
  /** Extra props for the main bar/icon */
88
88
  icon_svg_props?: Record<string, any>;
89
- platform_id?: string; // Foreign key to platforms table
89
+ platforms?: string[]; // entity_platforms set (multi-select)
90
90
  is_active?: boolean;
91
91
  // CTA (Call-To-Action) fields
92
92
  cta_enabled?: boolean;
@@ -126,7 +126,7 @@ export interface AnnouncementFormData {
126
126
  icon_type: IconType;
127
127
  icon_svg_name: string;
128
128
  icon_png_file?: File;
129
- platform_id: string; // Foreign key to platforms table
129
+ platforms: string[]; // entity_platforms set (multi-select; no single platform_id)
130
130
  is_active: boolean;
131
131
  // CTA (Call-To-Action) fields
132
132
  cta_enabled: boolean;
@@ -61,7 +61,6 @@ export type Database = {
61
61
  icon_type: string | null
62
62
  id: string
63
63
  is_active: boolean | null
64
- platform_id: string | null
65
64
  title: string
66
65
  updated_at: string | null
67
66
  }
@@ -75,7 +74,6 @@ export type Database = {
75
74
  icon_type?: string | null
76
75
  id?: string
77
76
  is_active?: boolean | null
78
- platform_id?: string | null
79
77
  title: string
80
78
  updated_at?: string | null
81
79
  }
@@ -89,18 +87,10 @@ export type Database = {
89
87
  icon_type?: string | null
90
88
  id?: string
91
89
  is_active?: boolean | null
92
- platform_id?: string | null
93
90
  title?: string
94
91
  updated_at?: string | null
95
92
  }
96
93
  Relationships: [
97
- {
98
- foreignKeyName: "announcements_platform_id_fkey"
99
- columns: ["platform_id"]
100
- isOneToOne: false
101
- referencedRelation: "platforms"
102
- referencedColumns: ["id"]
103
- },
104
94
  ]
105
95
  }
106
96
  slack_channels: {
@@ -299,7 +289,6 @@ export type Database = {
299
289
  published_at: string | null
300
290
  external_url: string | null
301
291
  hosts: Json | null
302
- platform_id: string
303
292
  is_deleted: boolean | null
304
293
  last_synced_at: string | null
305
294
  created_at: string | null
@@ -320,7 +309,6 @@ export type Database = {
320
309
  published_at?: string | null
321
310
  external_url?: string | null
322
311
  hosts?: Json | null
323
- platform_id: string
324
312
  is_deleted?: boolean | null
325
313
  last_synced_at?: string | null
326
314
  created_at?: string | null
@@ -341,20 +329,12 @@ export type Database = {
341
329
  published_at?: string | null
342
330
  external_url?: string | null
343
331
  hosts?: Json | null
344
- platform_id?: string
345
332
  is_deleted?: boolean | null
346
333
  last_synced_at?: string | null
347
334
  created_at?: string | null
348
335
  updated_at?: string | null
349
336
  }
350
337
  Relationships: [
351
- {
352
- foreignKeyName: "podcast_episodes_platform_id_fkey"
353
- columns: ["platform_id"]
354
- isOneToOne: false
355
- referencedRelation: "platforms"
356
- referencedColumns: ["id"]
357
- },
358
338
  ]
359
339
  }
360
340
  webinars: {
@@ -370,7 +350,6 @@ export type Database = {
370
350
  registration_url: string | null
371
351
  main_video_url: string | null
372
352
  hosts: Json | null
373
- platform_id: string
374
353
  is_deleted: boolean | null
375
354
  last_synced_at: string | null
376
355
  created_at: string | null
@@ -388,7 +367,6 @@ export type Database = {
388
367
  registration_url?: string | null
389
368
  main_video_url?: string | null
390
369
  hosts?: Json | null
391
- platform_id: string
392
370
  is_deleted?: boolean | null
393
371
  last_synced_at?: string | null
394
372
  created_at?: string | null
@@ -406,20 +384,12 @@ export type Database = {
406
384
  registration_url?: string | null
407
385
  main_video_url?: string | null
408
386
  hosts?: Json | null
409
- platform_id?: string
410
387
  is_deleted?: boolean | null
411
388
  last_synced_at?: string | null
412
389
  created_at?: string | null
413
390
  updated_at?: string | null
414
391
  }
415
392
  Relationships: [
416
- {
417
- foreignKeyName: "webinars_platform_id_fkey"
418
- columns: ["platform_id"]
419
- isOneToOne: false
420
- referencedRelation: "platforms"
421
- referencedColumns: ["id"]
422
- },
423
393
  ]
424
394
  }
425
395
  luma_events: {
@@ -445,7 +415,6 @@ export type Database = {
445
415
  registration_questions: Json | null
446
416
  tags: string[] | null
447
417
  guest_count: number | null
448
- platform_id: string
449
418
  is_deleted: boolean | null
450
419
  last_synced_at: string | null
451
420
  created_at: string | null
@@ -473,7 +442,6 @@ export type Database = {
473
442
  registration_questions?: Json | null
474
443
  tags?: string[] | null
475
444
  guest_count?: number | null
476
- platform_id: string
477
445
  is_deleted?: boolean | null
478
446
  last_synced_at?: string | null
479
447
  created_at?: string | null
@@ -501,20 +469,12 @@ export type Database = {
501
469
  registration_questions?: Json | null
502
470
  tags?: string[] | null
503
471
  guest_count?: number | null
504
- platform_id?: string
505
472
  is_deleted?: boolean | null
506
473
  last_synced_at?: string | null
507
474
  created_at?: string | null
508
475
  updated_at?: string | null
509
476
  }
510
477
  Relationships: [
511
- {
512
- foreignKeyName: "luma_events_platform_id_fkey"
513
- columns: ["platform_id"]
514
- isOneToOne: false
515
- referencedRelation: "platforms"
516
- referencedColumns: ["id"]
517
- },
518
478
  ]
519
479
  }
520
480
  vendor_github_stats: {