@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.
- package/dist/{chunk-AJAF456I.js → chunk-2KUIA2AR.js} +3 -3
- package/dist/{chunk-55ISAJFV.js → chunk-5YPKZM6Y.js} +6 -6
- package/dist/{chunk-72VDY6MM.cjs → chunk-62AXZKYN.cjs} +539 -674
- package/dist/chunk-62AXZKYN.cjs.map +1 -0
- package/dist/{chunk-TMST2WFZ.js → chunk-6W4ZEVIC.js} +3 -3
- package/dist/{chunk-MLFFBQ5B.js → chunk-BD3JBEUC.js} +65 -135
- package/dist/chunk-BD3JBEUC.js.map +1 -0
- package/dist/{chunk-ACUD4XVZ.cjs → chunk-BE77G7GW.cjs} +40 -40
- package/dist/{chunk-ACUD4XVZ.cjs.map → chunk-BE77G7GW.cjs.map} +1 -1
- package/dist/{chunk-OZZ4VQ52.cjs → chunk-D5PBUVGB.cjs} +5 -5
- package/dist/{chunk-OZZ4VQ52.cjs.map → chunk-D5PBUVGB.cjs.map} +1 -1
- package/dist/{chunk-UGFB5EAW.js → chunk-DGPKGESY.js} +4 -4
- package/dist/{chunk-OGKDOG5D.js → chunk-EGTGRG7N.js} +2 -2
- package/dist/{chunk-XH33VG5A.cjs → chunk-FCVF4YAB.cjs} +40 -40
- package/dist/{chunk-XH33VG5A.cjs.map → chunk-FCVF4YAB.cjs.map} +1 -1
- package/dist/{chunk-WLUIXASU.cjs → chunk-GNYV6HYO.cjs} +15 -15
- package/dist/{chunk-WLUIXASU.cjs.map → chunk-GNYV6HYO.cjs.map} +1 -1
- package/dist/{chunk-PB24PKG2.cjs → chunk-IDCPYG7N.cjs} +29 -29
- package/dist/{chunk-PB24PKG2.cjs.map → chunk-IDCPYG7N.cjs.map} +1 -1
- package/dist/{chunk-YED55PQY.js → chunk-JUUPMMKI.js} +3 -3
- package/dist/{chunk-QF3NQW7C.cjs → chunk-KTGGM5WA.cjs} +2 -72
- package/dist/chunk-KTGGM5WA.cjs.map +1 -0
- package/dist/{chunk-GOWE4WSU.js → chunk-LB3OZE4B.js} +6 -6
- package/dist/{chunk-IM5A5F2E.cjs → chunk-M5RT26WQ.cjs} +73 -73
- package/dist/{chunk-IM5A5F2E.cjs.map → chunk-M5RT26WQ.cjs.map} +1 -1
- package/dist/{chunk-UOTHXOCS.js → chunk-N4CHA7T7.js} +5416 -5551
- package/dist/chunk-N4CHA7T7.js.map +1 -0
- package/dist/{chunk-44AD5D3C.cjs → chunk-NNDNJCJ3.cjs} +18 -18
- package/dist/{chunk-44AD5D3C.cjs.map → chunk-NNDNJCJ3.cjs.map} +1 -1
- package/dist/{chunk-PT233TJV.js → chunk-QSIZW6EX.js} +2 -2
- package/dist/{chunk-UPRY4I63.cjs → chunk-RT7DIGTN.cjs} +3 -3
- package/dist/{chunk-UPRY4I63.cjs.map → chunk-RT7DIGTN.cjs.map} +1 -1
- package/dist/{chunk-N2UFIQAD.cjs → chunk-RZL7I6YN.cjs} +7 -7
- package/dist/{chunk-N2UFIQAD.cjs.map → chunk-RZL7I6YN.cjs.map} +1 -1
- package/dist/{chunk-5HQV2F5K.cjs → chunk-UJZ6O2ON.cjs} +32 -32
- package/dist/{chunk-5HQV2F5K.cjs.map → chunk-UJZ6O2ON.cjs.map} +1 -1
- package/dist/{chunk-JUNKHNWE.js → chunk-VNE5R4LQ.js} +5 -5
- package/dist/{chunk-EQWE64RJ.js → chunk-X62ICFPJ.js} +2 -2
- package/dist/{chunk-YJ7SPS7I.js → chunk-XAQLBUCP.js} +2 -2
- package/dist/{chunk-NUT3HRKS.cjs → chunk-XT6S6DYS.cjs} +12 -12
- package/dist/{chunk-NUT3HRKS.cjs.map → chunk-XT6S6DYS.cjs.map} +1 -1
- package/dist/{chunk-YAZIVPUF.cjs → chunk-YSKSBLCG.cjs} +73 -73
- package/dist/{chunk-YAZIVPUF.cjs.map → chunk-YSKSBLCG.cjs.map} +1 -1
- package/dist/{chunk-MX2ITMKK.js → chunk-YXCYQKAX.js} +5 -5
- package/dist/components/case-studies/index.cjs +9 -9
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +3 -9
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.d.ts +0 -2
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +2 -8
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/quick-action-chip.d.ts +48 -0
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/quick-action-marquee.d.ts.map +1 -1
- package/dist/components/chat/quick-action-wall.d.ts +1 -2
- package/dist/components/chat/quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/types/component.types.d.ts +0 -12
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- 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 +135 -141
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +11 -17
- package/dist/components/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/navigation/index.js +2 -2
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +3 -9
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +2 -8
- package/dist/hooks/index.cjs +2 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -3
- package/dist/index.cjs +3 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -10
- package/package.json +1 -1
- package/src/components/chat/approval-request-message.tsx +1 -1
- package/src/components/chat/chat-context-picker.tsx +1 -1
- package/src/components/chat/chat-input.tsx +1 -1
- package/src/components/chat/chat-message-list.tsx +5 -1
- package/src/components/chat/chat-message-skeleton.tsx +1 -1
- package/src/components/chat/chat-sidebar-skeleton.tsx +1 -1
- package/src/components/chat/chat-sidebar.tsx +2 -2
- package/src/components/chat/chat-ticket-list.tsx +1 -1
- package/src/components/chat/context-items-list.tsx +1 -1
- package/src/components/chat/embeddable-chat.tsx +15 -3
- package/src/components/chat/guide-welcome.tsx +23 -14
- package/src/components/chat/index.ts +0 -2
- package/src/components/chat/mingo-chat-history.tsx +1 -1
- package/src/components/chat/mingo-welcome.tsx +41 -27
- package/src/components/chat/quick-action-chip.tsx +77 -0
- package/src/components/chat/quick-action-marquee.tsx +1 -2
- package/src/components/chat/quick-action-wall.tsx +6 -4
- package/src/components/chat/slash-command-suggestions.tsx +1 -1
- package/src/components/chat/tool-call-blocks.tsx +1 -1
- package/src/components/chat/types/component.types.ts +0 -15
- package/src/hooks/.index.md +0 -1
- package/src/hooks/index.ts +0 -1
- package/src/stories/ChatContainer.stories.tsx +15 -12
- package/src/stories/QuickActionWall.stories.tsx +1 -2
- package/dist/chunk-72VDY6MM.cjs.map +0 -1
- package/dist/chunk-MLFFBQ5B.js.map +0 -1
- package/dist/chunk-QF3NQW7C.cjs.map +0 -1
- package/dist/chunk-UOTHXOCS.js.map +0 -1
- package/dist/components/chat/chat-quick-action-row.d.ts +0 -84
- package/dist/components/chat/chat-quick-action-row.d.ts.map +0 -1
- package/dist/components/chat/chat-quick-action.d.ts +0 -11
- package/dist/components/chat/chat-quick-action.d.ts.map +0 -1
- package/dist/hooks/use-quick-action-hint.d.ts +0 -25
- package/dist/hooks/use-quick-action-hint.d.ts.map +0 -1
- package/src/components/chat/.chat-quick-action.md +0 -46
- package/src/components/chat/chat-quick-action-row.tsx +0 -282
- package/src/components/chat/chat-quick-action.tsx +0 -59
- package/src/hooks/.use-quick-action-hint.md +0 -43
- package/src/hooks/use-quick-action-hint.ts +0 -126
- /package/dist/{chunk-AJAF456I.js.map → chunk-2KUIA2AR.js.map} +0 -0
- /package/dist/{chunk-55ISAJFV.js.map → chunk-5YPKZM6Y.js.map} +0 -0
- /package/dist/{chunk-TMST2WFZ.js.map → chunk-6W4ZEVIC.js.map} +0 -0
- /package/dist/{chunk-UGFB5EAW.js.map → chunk-DGPKGESY.js.map} +0 -0
- /package/dist/{chunk-OGKDOG5D.js.map → chunk-EGTGRG7N.js.map} +0 -0
- /package/dist/{chunk-YED55PQY.js.map → chunk-JUUPMMKI.js.map} +0 -0
- /package/dist/{chunk-GOWE4WSU.js.map → chunk-LB3OZE4B.js.map} +0 -0
- /package/dist/{chunk-PT233TJV.js.map → chunk-QSIZW6EX.js.map} +0 -0
- /package/dist/{chunk-JUNKHNWE.js.map → chunk-VNE5R4LQ.js.map} +0 -0
- /package/dist/{chunk-EQWE64RJ.js.map → chunk-X62ICFPJ.js.map} +0 -0
- /package/dist/{chunk-YJ7SPS7I.js.map → chunk-XAQLBUCP.js.map} +0 -0
- /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
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|