@flamingo-stack/openframe-frontend-core 0.0.751 → 0.0.753

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 (106) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{chunk-FHT7SMA7.cjs → chunk-35BJY5RR.cjs} +47 -47
  3. package/dist/{chunk-ALPRQ3ZX.cjs → chunk-3GG3QAPT.cjs} +15 -15
  4. package/dist/{chunk-34TWK3JE.cjs → chunk-5E6JHOGX.cjs} +3 -3
  5. package/dist/{chunk-OFO75R2O.cjs → chunk-7Z4EQOIX.cjs} +174 -174
  6. package/dist/{chunk-C6LPOYDM.cjs → chunk-AG4HR6Z6.cjs} +8 -8
  7. package/dist/{chunk-XJ3J4UIS.cjs → chunk-B27XV2TC.cjs} +19 -19
  8. package/dist/{chunk-MJFTWHV6.cjs → chunk-C6JHDRK3.cjs} +6 -6
  9. package/dist/{chunk-2YXOD2KL.cjs → chunk-H3RYUTND.cjs} +5 -0
  10. package/dist/{chunk-53I4YHRT.cjs → chunk-ITQZK3UT.cjs} +3 -3
  11. package/dist/{chunk-H52GKJ36.cjs → chunk-J3E5UN2O.cjs} +19 -19
  12. package/dist/{chunk-5WC535NJ.cjs → chunk-JLAYELWS.cjs} +40 -40
  13. package/dist/{chunk-UGCRLRCT.cjs → chunk-NO5UJLLQ.cjs} +2 -5
  14. package/dist/{chunk-5P7WBA2U.cjs → chunk-QXQHCX2R.cjs} +4 -4
  15. package/dist/{chunk-ESRA7NUI.cjs → chunk-R45NJ5ZA.cjs} +90 -90
  16. package/dist/{chunk-CVBHB4OZ.cjs → chunk-RGYLC3US.cjs} +7 -7
  17. package/dist/{chunk-TPH4SRR2.cjs → chunk-SDF5UUTE.cjs} +800 -659
  18. package/dist/{chunk-3TELPOVH.cjs → chunk-T4BBZ5ST.cjs} +2 -2
  19. package/dist/{chunk-CLAJIQ7E.cjs → chunk-UNRNLSG4.cjs} +19 -19
  20. package/dist/{chunk-NOUROZYH.cjs → chunk-UVTJT5BK.cjs} +24 -24
  21. package/dist/{chunk-77IKUBSH.cjs → chunk-W77VPNBJ.cjs} +12 -12
  22. package/dist/{chunk-DGEB5GUZ.cjs → chunk-WBOHLXFC.cjs} +2 -2
  23. package/dist/{chunk-X4LAMJHD.cjs → chunk-WIT36ZTN.cjs} +113 -113
  24. package/dist/{chunk-QOONZMSQ.cjs → chunk-XSOGT6DF.cjs} +28 -28
  25. package/dist/{chunk-LIGDPFDM.cjs → chunk-XW6WSW36.cjs} +771 -771
  26. package/dist/{chunk-4WNBVNGP.cjs → chunk-Y7AZCDLZ.cjs} +20 -20
  27. package/dist/{chunk-SDOCZTST.cjs → chunk-Z6TUOE6L.cjs} +41 -41
  28. package/dist/{chunk-RVLQHSID.cjs → chunk-ZGADZHLD.cjs} +101 -101
  29. package/dist/{chunk-MU7FFN6M.cjs → chunk-ZJ77IOMY.cjs} +83 -83
  30. package/dist/{cloud-tenants-JDPC2DYF.cjs → cloud-tenants-7LTS4DAP.cjs} +11 -11
  31. package/dist/components/case-studies/index.cjs +24 -24
  32. package/dist/components/chat/chat-dialog-menu-items.js +6 -6
  33. package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
  34. package/dist/components/chat/chat-message-enhanced.js +3 -0
  35. package/dist/components/chat/chat-panel-context.d.ts +3 -0
  36. package/dist/components/chat/chat-panel-context.d.ts.map +1 -1
  37. package/dist/components/chat/embeddable-chat.d.ts +20 -0
  38. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  39. package/dist/components/chat/embeddable-chat.js +78 -8
  40. package/dist/components/chat/hooks/index.d.ts +1 -0
  41. package/dist/components/chat/hooks/index.d.ts.map +1 -1
  42. package/dist/components/chat/hooks/index.js +1 -0
  43. package/dist/components/chat/hooks/use-what-to-ask.d.ts +69 -0
  44. package/dist/components/chat/hooks/use-what-to-ask.d.ts.map +1 -0
  45. package/dist/components/chat/hooks/use-what-to-ask.js +106 -0
  46. package/dist/components/chat/index.cjs +15 -7
  47. package/dist/components/chat/index.d.ts +1 -0
  48. package/dist/components/chat/index.d.ts.map +1 -1
  49. package/dist/components/chat/index.js +1 -0
  50. package/dist/components/chat/mingo-chat-header.d.ts +4 -2
  51. package/dist/components/chat/mingo-chat-header.d.ts.map +1 -1
  52. package/dist/components/chat/mingo-chat-header.js +7 -2
  53. package/dist/components/chat/suggestions-display.d.ts +11 -0
  54. package/dist/components/chat/suggestions-display.d.ts.map +1 -0
  55. package/dist/components/chat/suggestions-display.js +27 -0
  56. package/dist/components/chat/types/message.types.d.ts +27 -1
  57. package/dist/components/chat/types/message.types.d.ts.map +1 -1
  58. package/dist/components/chat/utils/extract-incomplete-message-state.d.ts.map +1 -1
  59. package/dist/components/chat/utils/extract-incomplete-message-state.js +2 -0
  60. package/dist/components/chat/utils/message-segment-accumulator.d.ts.map +1 -1
  61. package/dist/components/chat/utils/message-segment-accumulator.js +3 -0
  62. package/dist/components/contact/index.cjs +12 -12
  63. package/dist/components/docs/index.cjs +15 -15
  64. package/dist/components/embeds/index.cjs +12 -12
  65. package/dist/components/faq/index.cjs +13 -13
  66. package/dist/components/features/index.cjs +11 -11
  67. package/dist/components/help-center-pages/index.cjs +112 -112
  68. package/dist/components/index.cjs +69 -61
  69. package/dist/components/loading/loading-region.d.ts.map +1 -1
  70. package/dist/components/loading/loading-region.js +2 -5
  71. package/dist/components/loading/unified-skeleton.d.ts +2 -0
  72. package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
  73. package/dist/components/loading/unified-skeleton.js +5 -0
  74. package/dist/components/meeting-scheduler/index.cjs +72 -72
  75. package/dist/components/navigation/index.cjs +14 -14
  76. package/dist/components/onboarding-guides/index.cjs +14 -14
  77. package/dist/components/product-demo/index.cjs +12 -12
  78. package/dist/components/related-content/index.cjs +7 -7
  79. package/dist/components/tickets/index.cjs +17 -17
  80. package/dist/components/ui/file-manager/index.cjs +30 -30
  81. package/dist/components/ui/index.cjs +19 -11
  82. package/dist/{devices-ADQWD37J.cjs → devices-CGDJAYRB.cjs} +12 -12
  83. package/dist/{embeddable-chat-7YF2JMPS.cjs → embeddable-chat-CMEHSDV7.cjs} +165 -93
  84. package/dist/index.cjs +23 -15
  85. package/dist/{knowledge-TNS64EGK.cjs → knowledge-X5I4QJKV.cjs} +12 -12
  86. package/dist/{logs-754MDDE4.cjs → logs-GDGIRJFI.cjs} +19 -19
  87. package/dist/{policies-Q23DPIH6.cjs → policies-2UOCENDX.cjs} +15 -15
  88. package/dist/{remote-session-ZKP2W3IS.cjs → remote-session-57DGC4X3.cjs} +6 -6
  89. package/dist/{scripts-DCYLK2RZ.cjs → scripts-AS4GEG6L.cjs} +18 -18
  90. package/dist/{software-update-XCMGUIER.cjs → software-update-ADPUFMFY.cjs} +15 -15
  91. package/dist/{tickets-board-BNW4AYFL.cjs → tickets-board-EP6L3BSV.cjs} +7 -7
  92. package/package.json +1 -1
  93. package/src/components/chat/chat-dialog-menu-items.tsx +6 -6
  94. package/src/components/chat/chat-message-enhanced.tsx +3 -0
  95. package/src/components/chat/chat-panel-context.tsx +3 -0
  96. package/src/components/chat/embeddable-chat.tsx +132 -9
  97. package/src/components/chat/hooks/index.ts +1 -0
  98. package/src/components/chat/hooks/use-what-to-ask.ts +203 -0
  99. package/src/components/chat/index.ts +1 -0
  100. package/src/components/chat/mingo-chat-header.tsx +11 -4
  101. package/src/components/chat/suggestions-display.tsx +41 -0
  102. package/src/components/chat/types/message.types.ts +31 -1
  103. package/src/components/chat/utils/extract-incomplete-message-state.ts +2 -0
  104. package/src/components/chat/utils/message-segment-accumulator.ts +4 -0
  105. package/src/components/loading/loading-region.tsx +4 -9
  106. package/src/components/loading/unified-skeleton.tsx +13 -0
@@ -40,16 +40,11 @@ export function LoadingRegion({
40
40
  children,
41
41
  ...props
42
42
  }: LoadingRegionProps) {
43
- if (!announce) {
44
- return (
45
- <Tag className={className} {...props}>
46
- {children}
47
- </Tag>
48
- );
49
- }
43
+ // One tree for both states: `children` keeps its slot whether or not the status is drawn, so an
44
+ // `announce` that flips at runtime does not remount the content (and drop its state and focus).
50
45
  return (
51
- <Tag aria-busy="true" className={className} {...props}>
52
- {status && (
46
+ <Tag aria-busy={announce ? 'true' : undefined} className={className} {...props}>
47
+ {announce && status && (
53
48
  <span role="status" aria-live="polite" className="sr-only">
54
49
  {label}
55
50
  </span>
@@ -19,6 +19,8 @@ interface UnifiedSkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
19
19
  /**
20
20
  * The element drawn. `span` keeps the placeholder valid phrasing content where
21
21
  * a `div` may not stand (inside a `p`, a heading, a label or an inline card).
22
+ * A span bar whose classes set no base display gets one of its own, capped to
23
+ * its line and centred on it; a caller that sets one gets none of the three.
22
24
  */
23
25
  as?: 'div' | 'span';
24
26
  }
@@ -68,6 +70,15 @@ export function UnifiedSkeleton({
68
70
  // An `aspect-*` utility sizes the box itself; a default height would win
69
71
  // over it (explicit height beats aspect-ratio) and collapse the box to 16px.
70
72
  const sizedByAspect = /(?:^|\s)aspect-/.test(className ?? '');
73
+ // A span that already names its base display keeps it, with its own cap and alignment: the frozen
74
+ // TitleBlock's bars and the chip and breadcrumb skeletons are `inline-block` on the baseline, tuned to
75
+ // their text. Only an unprefixed display counts: `md:hidden` leaves the base span inline, and a bar
76
+ // without the default would draw at 0×0 below that breakpoint. The list is the displays bars use;
77
+ // any other falls back to the default, and twMerge still lets the caller's display win.
78
+ const setsDisplay =
79
+ /(?:^|\s)(?:inline-block|inline-flex|inline-grid|inline|block|flex|grid|contents|hidden)(?=\s|$)/.test(
80
+ className ?? '',
81
+ );
71
82
 
72
83
  const style: React.CSSProperties = {
73
84
  width: width,
@@ -77,6 +88,8 @@ export function UnifiedSkeleton({
77
88
  return (
78
89
  <Tag
79
90
  className={cn(
91
+ // An inline span ignores width and height: without a display of its own the bar draws at 0×0.
92
+ Tag === 'span' && !setsDisplay && 'inline-block max-w-full align-middle',
80
93
  animate ? SKELETON_SURFACE_CLASS : 'bg-ods-skeleton',
81
94
  variantClasses[variant],
82
95
  !height && !style.height && !sizedByAspect && defaultHeights[variant],