@flamingo-stack/openframe-frontend-core 0.0.454 → 0.0.455

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 (149) hide show
  1. package/dist/{chunk-AJAF456I.js → chunk-2KUIA2AR.js} +3 -3
  2. package/dist/{chunk-55ISAJFV.js → chunk-5YPKZM6Y.js} +6 -6
  3. package/dist/{chunk-72VDY6MM.cjs → chunk-62AXZKYN.cjs} +539 -674
  4. package/dist/chunk-62AXZKYN.cjs.map +1 -0
  5. package/dist/{chunk-TMST2WFZ.js → chunk-6W4ZEVIC.js} +3 -3
  6. package/dist/{chunk-MLFFBQ5B.js → chunk-BD3JBEUC.js} +65 -135
  7. package/dist/chunk-BD3JBEUC.js.map +1 -0
  8. package/dist/{chunk-ACUD4XVZ.cjs → chunk-BE77G7GW.cjs} +40 -40
  9. package/dist/{chunk-ACUD4XVZ.cjs.map → chunk-BE77G7GW.cjs.map} +1 -1
  10. package/dist/{chunk-OZZ4VQ52.cjs → chunk-D5PBUVGB.cjs} +5 -5
  11. package/dist/{chunk-OZZ4VQ52.cjs.map → chunk-D5PBUVGB.cjs.map} +1 -1
  12. package/dist/{chunk-UGFB5EAW.js → chunk-DGPKGESY.js} +4 -4
  13. package/dist/{chunk-OGKDOG5D.js → chunk-EGTGRG7N.js} +2 -2
  14. package/dist/{chunk-XH33VG5A.cjs → chunk-FCVF4YAB.cjs} +40 -40
  15. package/dist/{chunk-XH33VG5A.cjs.map → chunk-FCVF4YAB.cjs.map} +1 -1
  16. package/dist/{chunk-WLUIXASU.cjs → chunk-GNYV6HYO.cjs} +15 -15
  17. package/dist/{chunk-WLUIXASU.cjs.map → chunk-GNYV6HYO.cjs.map} +1 -1
  18. package/dist/{chunk-PB24PKG2.cjs → chunk-IDCPYG7N.cjs} +29 -29
  19. package/dist/{chunk-PB24PKG2.cjs.map → chunk-IDCPYG7N.cjs.map} +1 -1
  20. package/dist/{chunk-YED55PQY.js → chunk-JUUPMMKI.js} +3 -3
  21. package/dist/{chunk-QF3NQW7C.cjs → chunk-KTGGM5WA.cjs} +2 -72
  22. package/dist/chunk-KTGGM5WA.cjs.map +1 -0
  23. package/dist/{chunk-GOWE4WSU.js → chunk-LB3OZE4B.js} +6 -6
  24. package/dist/{chunk-IM5A5F2E.cjs → chunk-M5RT26WQ.cjs} +73 -73
  25. package/dist/{chunk-IM5A5F2E.cjs.map → chunk-M5RT26WQ.cjs.map} +1 -1
  26. package/dist/{chunk-UOTHXOCS.js → chunk-N4CHA7T7.js} +5416 -5551
  27. package/dist/chunk-N4CHA7T7.js.map +1 -0
  28. package/dist/{chunk-44AD5D3C.cjs → chunk-NNDNJCJ3.cjs} +18 -18
  29. package/dist/{chunk-44AD5D3C.cjs.map → chunk-NNDNJCJ3.cjs.map} +1 -1
  30. package/dist/{chunk-PT233TJV.js → chunk-QSIZW6EX.js} +2 -2
  31. package/dist/{chunk-UPRY4I63.cjs → chunk-RT7DIGTN.cjs} +3 -3
  32. package/dist/{chunk-UPRY4I63.cjs.map → chunk-RT7DIGTN.cjs.map} +1 -1
  33. package/dist/{chunk-N2UFIQAD.cjs → chunk-RZL7I6YN.cjs} +7 -7
  34. package/dist/{chunk-N2UFIQAD.cjs.map → chunk-RZL7I6YN.cjs.map} +1 -1
  35. package/dist/{chunk-5HQV2F5K.cjs → chunk-UJZ6O2ON.cjs} +32 -32
  36. package/dist/{chunk-5HQV2F5K.cjs.map → chunk-UJZ6O2ON.cjs.map} +1 -1
  37. package/dist/{chunk-JUNKHNWE.js → chunk-VNE5R4LQ.js} +5 -5
  38. package/dist/{chunk-EQWE64RJ.js → chunk-X62ICFPJ.js} +2 -2
  39. package/dist/{chunk-YJ7SPS7I.js → chunk-XAQLBUCP.js} +2 -2
  40. package/dist/{chunk-NUT3HRKS.cjs → chunk-XT6S6DYS.cjs} +12 -12
  41. package/dist/{chunk-NUT3HRKS.cjs.map → chunk-XT6S6DYS.cjs.map} +1 -1
  42. package/dist/{chunk-YAZIVPUF.cjs → chunk-YSKSBLCG.cjs} +73 -73
  43. package/dist/{chunk-YAZIVPUF.cjs.map → chunk-YSKSBLCG.cjs.map} +1 -1
  44. package/dist/{chunk-MX2ITMKK.js → chunk-YXCYQKAX.js} +5 -5
  45. package/dist/components/case-studies/index.cjs +9 -9
  46. package/dist/components/case-studies/index.js +3 -3
  47. package/dist/components/chat/chat-message-list.d.ts.map +1 -1
  48. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  49. package/dist/components/chat/guide-welcome.d.ts.map +1 -1
  50. package/dist/components/chat/index.cjs +3 -9
  51. package/dist/components/chat/index.cjs.map +1 -1
  52. package/dist/components/chat/index.d.ts +0 -2
  53. package/dist/components/chat/index.d.ts.map +1 -1
  54. package/dist/components/chat/index.js +2 -8
  55. package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
  56. package/dist/components/chat/quick-action-chip.d.ts +48 -0
  57. package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
  58. package/dist/components/chat/quick-action-marquee.d.ts.map +1 -1
  59. package/dist/components/chat/quick-action-wall.d.ts +1 -2
  60. package/dist/components/chat/quick-action-wall.d.ts.map +1 -1
  61. package/dist/components/chat/types/component.types.d.ts +0 -12
  62. package/dist/components/chat/types/component.types.d.ts.map +1 -1
  63. package/dist/components/contact/index.cjs +4 -4
  64. package/dist/components/contact/index.js +3 -3
  65. package/dist/components/docs/index.cjs +6 -6
  66. package/dist/components/docs/index.js +5 -5
  67. package/dist/components/embeds/index.cjs +4 -4
  68. package/dist/components/embeds/index.js +3 -3
  69. package/dist/components/faq/index.cjs +5 -5
  70. package/dist/components/faq/index.js +4 -4
  71. package/dist/components/features/index.cjs +3 -3
  72. package/dist/components/features/index.js +2 -2
  73. package/dist/components/help-center-pages/index.cjs +22 -22
  74. package/dist/components/help-center-pages/index.js +13 -13
  75. package/dist/components/index.cjs +135 -141
  76. package/dist/components/index.cjs.map +1 -1
  77. package/dist/components/index.js +11 -17
  78. package/dist/components/index.js.map +1 -1
  79. package/dist/components/navigation/index.cjs +3 -3
  80. package/dist/components/navigation/index.js +2 -2
  81. package/dist/components/onboarding-guides/index.cjs +7 -7
  82. package/dist/components/onboarding-guides/index.js +6 -6
  83. package/dist/components/related-content/index.cjs +5 -5
  84. package/dist/components/related-content/index.js +4 -4
  85. package/dist/components/tickets/index.cjs +6 -6
  86. package/dist/components/tickets/index.js +5 -5
  87. package/dist/components/ui/index.cjs +3 -9
  88. package/dist/components/ui/index.cjs.map +1 -1
  89. package/dist/components/ui/index.js +2 -8
  90. package/dist/hooks/index.cjs +2 -4
  91. package/dist/hooks/index.cjs.map +1 -1
  92. package/dist/hooks/index.d.ts +0 -1
  93. package/dist/hooks/index.d.ts.map +1 -1
  94. package/dist/hooks/index.js +1 -3
  95. package/dist/index.cjs +3 -11
  96. package/dist/index.cjs.map +1 -1
  97. package/dist/index.js +2 -10
  98. package/package.json +1 -1
  99. package/src/components/chat/approval-request-message.tsx +1 -1
  100. package/src/components/chat/chat-context-picker.tsx +1 -1
  101. package/src/components/chat/chat-input.tsx +1 -1
  102. package/src/components/chat/chat-message-list.tsx +5 -1
  103. package/src/components/chat/chat-message-skeleton.tsx +1 -1
  104. package/src/components/chat/chat-sidebar-skeleton.tsx +1 -1
  105. package/src/components/chat/chat-sidebar.tsx +2 -2
  106. package/src/components/chat/chat-ticket-list.tsx +1 -1
  107. package/src/components/chat/context-items-list.tsx +1 -1
  108. package/src/components/chat/embeddable-chat.tsx +15 -3
  109. package/src/components/chat/guide-welcome.tsx +23 -14
  110. package/src/components/chat/index.ts +0 -2
  111. package/src/components/chat/mingo-chat-history.tsx +1 -1
  112. package/src/components/chat/mingo-welcome.tsx +41 -27
  113. package/src/components/chat/quick-action-chip.tsx +77 -0
  114. package/src/components/chat/quick-action-marquee.tsx +1 -2
  115. package/src/components/chat/quick-action-wall.tsx +6 -4
  116. package/src/components/chat/slash-command-suggestions.tsx +1 -1
  117. package/src/components/chat/tool-call-blocks.tsx +1 -1
  118. package/src/components/chat/types/component.types.ts +0 -15
  119. package/src/hooks/.index.md +0 -1
  120. package/src/hooks/index.ts +0 -1
  121. package/src/stories/ChatContainer.stories.tsx +15 -12
  122. package/src/stories/QuickActionWall.stories.tsx +1 -2
  123. package/dist/chunk-72VDY6MM.cjs.map +0 -1
  124. package/dist/chunk-MLFFBQ5B.js.map +0 -1
  125. package/dist/chunk-QF3NQW7C.cjs.map +0 -1
  126. package/dist/chunk-UOTHXOCS.js.map +0 -1
  127. package/dist/components/chat/chat-quick-action-row.d.ts +0 -84
  128. package/dist/components/chat/chat-quick-action-row.d.ts.map +0 -1
  129. package/dist/components/chat/chat-quick-action.d.ts +0 -11
  130. package/dist/components/chat/chat-quick-action.d.ts.map +0 -1
  131. package/dist/hooks/use-quick-action-hint.d.ts +0 -25
  132. package/dist/hooks/use-quick-action-hint.d.ts.map +0 -1
  133. package/src/components/chat/.chat-quick-action.md +0 -46
  134. package/src/components/chat/chat-quick-action-row.tsx +0 -282
  135. package/src/components/chat/chat-quick-action.tsx +0 -59
  136. package/src/hooks/.use-quick-action-hint.md +0 -43
  137. package/src/hooks/use-quick-action-hint.ts +0 -126
  138. /package/dist/{chunk-AJAF456I.js.map → chunk-2KUIA2AR.js.map} +0 -0
  139. /package/dist/{chunk-55ISAJFV.js.map → chunk-5YPKZM6Y.js.map} +0 -0
  140. /package/dist/{chunk-TMST2WFZ.js.map → chunk-6W4ZEVIC.js.map} +0 -0
  141. /package/dist/{chunk-UGFB5EAW.js.map → chunk-DGPKGESY.js.map} +0 -0
  142. /package/dist/{chunk-OGKDOG5D.js.map → chunk-EGTGRG7N.js.map} +0 -0
  143. /package/dist/{chunk-YED55PQY.js.map → chunk-JUUPMMKI.js.map} +0 -0
  144. /package/dist/{chunk-GOWE4WSU.js.map → chunk-LB3OZE4B.js.map} +0 -0
  145. /package/dist/{chunk-PT233TJV.js.map → chunk-QSIZW6EX.js.map} +0 -0
  146. /package/dist/{chunk-JUNKHNWE.js.map → chunk-VNE5R4LQ.js.map} +0 -0
  147. /package/dist/{chunk-EQWE64RJ.js.map → chunk-X62ICFPJ.js.map} +0 -0
  148. /package/dist/{chunk-YJ7SPS7I.js.map → chunk-XAQLBUCP.js.map} +0 -0
  149. /package/dist/{chunk-MX2ITMKK.js.map → chunk-YXCYQKAX.js.map} +0 -0
@@ -1,126 +0,0 @@
1
- 'use client'
2
-
3
- import { useEffect, useState, useRef, useCallback } from 'react'
4
-
5
- interface UseQuickActionHintOptions {
6
- /** Number of quick actions to cycle through */
7
- actionCount: number
8
- /** Duration each action is highlighted in milliseconds */
9
- cycleDuration?: number
10
- /** Whether the hint should be enabled */
11
- enabled?: boolean
12
- }
13
-
14
- interface UseQuickActionHintReturn {
15
- /** The index of the currently active hint (-1 if none) */
16
- activeHintIndex: number
17
- /** Manually stop the hint animation */
18
- stopHint: () => void
19
- /** Reference to attach to the container element (not used in simplified version) */
20
- containerRef: React.RefObject<HTMLDivElement | null>
21
- }
22
-
23
- /**
24
- * SIMPLIFIED hook for managing quick action hint animations
25
- *
26
- * Cycles infinitely through quick actions until user interacts.
27
- * Simple mount-based trigger - no complex visibility detection.
28
- */
29
- export function useQuickActionHint({
30
- actionCount,
31
- cycleDuration = 5000,
32
- enabled = true
33
- }: UseQuickActionHintOptions): UseQuickActionHintReturn {
34
- const [activeHintIndex, setActiveHintIndex] = useState(-1)
35
- const containerRef = useRef<HTMLDivElement | null>(null)
36
- const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null)
37
- const cycleCountRef = useRef(0)
38
- const currentIndexRef = useRef(0)
39
- const sequenceRef = useRef<number[]>([])
40
-
41
- /**
42
- * Fisher-Yates shuffle for random, non-repeating sequence
43
- */
44
- const shuffleIndices = useCallback((length: number): number[] => {
45
- const indices = Array.from({ length }, (_, i) => i)
46
- for (let i = indices.length - 1; i > 0; i--) {
47
- const j = Math.floor(Math.random() * (i + 1));
48
- [indices[i], indices[j]] = [indices[j], indices[i]]
49
- }
50
- return indices
51
- }, [])
52
-
53
- /**
54
- * Stop the hint animation
55
- */
56
- const stopHint = useCallback(() => {
57
- if (timeoutRef.current) {
58
- clearTimeout(timeoutRef.current)
59
- timeoutRef.current = null
60
- }
61
- setActiveHintIndex(-1)
62
- cycleCountRef.current = 0
63
- currentIndexRef.current = 0
64
- sequenceRef.current = []
65
- }, [])
66
-
67
- /**
68
- * Advance to next hint
69
- */
70
- const advanceHint = useCallback(() => {
71
- // Generate new sequence if starting a new cycle
72
- if (currentIndexRef.current === 0) {
73
- sequenceRef.current = shuffleIndices(actionCount)
74
- }
75
-
76
- // Get next index
77
- const nextIndex = sequenceRef.current[currentIndexRef.current]
78
- setActiveHintIndex(nextIndex)
79
-
80
- // Move to next position
81
- currentIndexRef.current++
82
-
83
- // Check if cycle complete - reset to continue infinitely
84
- if (currentIndexRef.current >= actionCount) {
85
- currentIndexRef.current = 0
86
- cycleCountRef.current++
87
- }
88
-
89
- // Schedule next hint - runs infinitely until stopped by user interaction
90
- timeoutRef.current = setTimeout(advanceHint, cycleDuration)
91
- }, [actionCount, cycleDuration, shuffleIndices])
92
-
93
- /**
94
- * Start hint animation when component mounts with actions
95
- */
96
- useEffect(() => {
97
- // Don't start if disabled, no actions, or reduced motion
98
- if (!enabled || actionCount === 0) {
99
- return
100
- }
101
-
102
- if (typeof window !== 'undefined') {
103
- const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches
104
- if (prefersReducedMotion) return
105
- }
106
-
107
- // Start after a short delay to allow component to settle
108
- const startTimeout = setTimeout(() => {
109
- cycleCountRef.current = 0
110
- currentIndexRef.current = 0
111
- advanceHint()
112
- }, 500)
113
-
114
- // Cleanup on unmount or when dependencies change
115
- return () => {
116
- clearTimeout(startTimeout)
117
- stopHint()
118
- }
119
- }, [enabled, actionCount, advanceHint, stopHint])
120
-
121
- return {
122
- activeHintIndex,
123
- stopHint,
124
- containerRef
125
- }
126
- }