@flamingo-stack/openframe-frontend-core 0.0.400-snapshot.20260710144905 → 0.0.400
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-RWKVTABY.js → chunk-463X3AW2.js} +2 -2
- package/dist/{chunk-2B5FIJE5.js → chunk-4HAVKWTJ.js} +2 -2
- package/dist/{chunk-7YKHVAUU.cjs → chunk-556BG7SX.cjs} +31 -31
- package/dist/{chunk-7YKHVAUU.cjs.map → chunk-556BG7SX.cjs.map} +1 -1
- package/dist/{chunk-YON2QYWK.js → chunk-56XCRZ7I.js} +2 -2
- package/dist/{chunk-5P5WMTVW.js → chunk-6VR7BJF6.js} +4 -4
- package/dist/{chunk-Q4HI3DGY.cjs → chunk-6XQJSN7G.cjs} +15 -15
- package/dist/{chunk-Q4HI3DGY.cjs.map → chunk-6XQJSN7G.cjs.map} +1 -1
- package/dist/{chunk-FRLLKYMO.cjs → chunk-ABRDOCVN.cjs} +7 -7
- package/dist/{chunk-FRLLKYMO.cjs.map → chunk-ABRDOCVN.cjs.map} +1 -1
- package/dist/{chunk-QOOWYEPL.cjs → chunk-EFTKJFEF.cjs} +5 -5
- package/dist/{chunk-QOOWYEPL.cjs.map → chunk-EFTKJFEF.cjs.map} +1 -1
- package/dist/{chunk-PMR74LEE.js → chunk-FHEIG7QO.js} +2 -2
- package/dist/{chunk-FLDYBM25.js → chunk-I4XG5PJA.js} +2 -2
- package/dist/{chunk-QDERWRT4.cjs → chunk-ILWSJCWD.cjs} +26 -26
- package/dist/{chunk-QDERWRT4.cjs.map → chunk-ILWSJCWD.cjs.map} +1 -1
- package/dist/{chunk-F2LZ67KM.cjs → chunk-J6IQQJJQ.cjs} +1172 -1165
- package/dist/chunk-J6IQQJJQ.cjs.map +1 -0
- package/dist/{chunk-TGWHUEPD.cjs → chunk-KIC4ZEZ7.cjs} +62 -62
- package/dist/{chunk-TGWHUEPD.cjs.map → chunk-KIC4ZEZ7.cjs.map} +1 -1
- package/dist/{chunk-MZPEN27A.js → chunk-LAL63W5J.js} +4 -4
- package/dist/{chunk-3GXZPZHR.cjs → chunk-MFRP2UDK.cjs} +26 -26
- package/dist/{chunk-3GXZPZHR.cjs.map → chunk-MFRP2UDK.cjs.map} +1 -1
- package/dist/{chunk-V4YFWSB2.js → chunk-MQRTT3DO.js} +4 -4
- package/dist/{chunk-PLB6Z3E4.cjs → chunk-OPD5V57R.cjs} +12 -12
- package/dist/{chunk-PLB6Z3E4.cjs.map → chunk-OPD5V57R.cjs.map} +1 -1
- package/dist/{chunk-B3IDZ6JJ.js → chunk-PD5MXNTJ.js} +4 -4
- package/dist/{chunk-VIEWUAFE.cjs → chunk-QGQ76SSR.cjs} +9 -9
- package/dist/{chunk-VIEWUAFE.cjs.map → chunk-QGQ76SSR.cjs.map} +1 -1
- package/dist/{chunk-BI23LOMC.cjs → chunk-RSFHAFZN.cjs} +37 -37
- package/dist/{chunk-BI23LOMC.cjs.map → chunk-RSFHAFZN.cjs.map} +1 -1
- package/dist/{chunk-V3NY65ET.js → chunk-RYPCNUXA.js} +2 -2
- package/dist/{chunk-TZDROKLI.js → chunk-UFP45JLE.js} +2 -2
- package/dist/{chunk-EDR55RQJ.js → chunk-UYBNOHTC.js} +4714 -4707
- package/dist/chunk-UYBNOHTC.js.map +1 -0
- package/dist/{chunk-CG7LIPSA.cjs → chunk-VTSEL7CJ.cjs} +59 -59
- package/dist/{chunk-CG7LIPSA.cjs.map → chunk-VTSEL7CJ.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/chat-ticket-list.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/chat/mingo-chat-history.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.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/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +20 -20
- package/dist/components/help-center-pages/index.js +11 -11
- package/dist/components/index.cjs +120 -126
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +9 -15
- package/dist/components/index.js.map +1 -1
- 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/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +5 -5
- package/dist/components/tickets/index.js +4 -4
- package/dist/components/ui/data-table/data-table-header.d.ts.map +1 -1
- package/dist/components/ui/data-table/types.d.ts +0 -6
- package/dist/components/ui/data-table/types.d.ts.map +1 -1
- package/dist/components/ui/date-picker.d.ts +4 -41
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/filter-modal.d.ts +1 -16
- package/dist/components/ui/filter-modal.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +2 -8
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +0 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -7
- package/dist/index.cjs +2 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -7
- package/package.json +1 -1
- package/src/components/chat/chat-ticket-list.tsx +36 -8
- package/src/components/chat/guide-welcome.tsx +43 -5
- package/src/components/chat/mingo-chat-history.tsx +40 -6
- package/src/components/chat/mingo-welcome.tsx +47 -7
- package/src/components/ui/data-table/data-table-header.tsx +3 -6
- package/src/components/ui/data-table/types.ts +0 -6
- package/src/components/ui/date-picker.tsx +41 -149
- package/src/components/ui/filter-modal.tsx +2 -57
- package/src/components/ui/index.ts +0 -1
- package/src/stories/DatePicker.stories.tsx +2 -4
- package/src/stories/FilterModal.stories.tsx +0 -33
- package/dist/chunk-EDR55RQJ.js.map +0 -1
- package/dist/chunk-F2LZ67KM.cjs.map +0 -1
- package/dist/components/ui/scroll-fade.d.ts +0 -33
- package/dist/components/ui/scroll-fade.d.ts.map +0 -1
- package/src/components/ui/scroll-fade.tsx +0 -90
- /package/dist/{chunk-RWKVTABY.js.map → chunk-463X3AW2.js.map} +0 -0
- /package/dist/{chunk-2B5FIJE5.js.map → chunk-4HAVKWTJ.js.map} +0 -0
- /package/dist/{chunk-YON2QYWK.js.map → chunk-56XCRZ7I.js.map} +0 -0
- /package/dist/{chunk-5P5WMTVW.js.map → chunk-6VR7BJF6.js.map} +0 -0
- /package/dist/{chunk-PMR74LEE.js.map → chunk-FHEIG7QO.js.map} +0 -0
- /package/dist/{chunk-FLDYBM25.js.map → chunk-I4XG5PJA.js.map} +0 -0
- /package/dist/{chunk-MZPEN27A.js.map → chunk-LAL63W5J.js.map} +0 -0
- /package/dist/{chunk-V4YFWSB2.js.map → chunk-MQRTT3DO.js.map} +0 -0
- /package/dist/{chunk-B3IDZ6JJ.js.map → chunk-PD5MXNTJ.js.map} +0 -0
- /package/dist/{chunk-V3NY65ET.js.map → chunk-RYPCNUXA.js.map} +0 -0
- /package/dist/{chunk-TZDROKLI.js.map → chunk-UFP45JLE.js.map} +0 -0
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Tracks whether a scrollable element is scrolled away from its top/bottom
|
|
4
|
-
* edge, so edge fades ("scroll shadows") can be shown only where content
|
|
5
|
-
* continues. Attach `scrollRef` to the scrollable element and `update` to its
|
|
6
|
-
* `onScroll`; content/size changes are re-measured via ResizeObserver.
|
|
7
|
-
*
|
|
8
|
-
* Canonical fade pattern shared by chat lists and FilterModal.
|
|
9
|
-
*/
|
|
10
|
-
export declare function useScrollFade<T extends HTMLElement = HTMLDivElement>(): {
|
|
11
|
-
scrollRef: React.RefObject<T | null>;
|
|
12
|
-
fadeTop: boolean;
|
|
13
|
-
fadeBottom: boolean;
|
|
14
|
-
update: () => void;
|
|
15
|
-
};
|
|
16
|
-
export interface ScrollFadeOverlayProps {
|
|
17
|
-
/** Which edge of the scroll container the fade sits on. */
|
|
18
|
-
edge: 'top' | 'bottom';
|
|
19
|
-
/** Whether the fade is currently shown (content continues past this edge). */
|
|
20
|
-
visible: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* CSS color the content fades into — should match the surface behind the
|
|
23
|
-
* list. Defaults to the page background token.
|
|
24
|
-
*/
|
|
25
|
-
color?: string;
|
|
26
|
-
className?: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Edge overlay that fades scrollable content into the surface behind it.
|
|
30
|
-
* Render inside a `relative` wrapper around the scrollable element.
|
|
31
|
-
*/
|
|
32
|
-
export declare function ScrollFadeOverlay({ edge, visible, color, className, }: ScrollFadeOverlayProps): React.JSX.Element;
|
|
33
|
-
//# sourceMappingURL=scroll-fade.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-fade.d.ts","sourceRoot":"","sources":["../../../src/components/ui/scroll-fade.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,WAAW,GAAG,cAAc;;;;;EAqCnE;AAED,MAAM,WAAW,sBAAsB;IACrC,2DAA2D;IAC3D,IAAI,EAAE,KAAK,GAAG,QAAQ,CAAA;IACtB,8EAA8E;IAC9E,OAAO,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,OAAO,EACP,KAAyB,EACzB,SAAS,GACV,EAAE,sBAAsB,qBAexB"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
|
|
3
|
-
import * as React from 'react'
|
|
4
|
-
import { cn } from '../../utils/cn'
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Tracks whether a scrollable element is scrolled away from its top/bottom
|
|
8
|
-
* edge, so edge fades ("scroll shadows") can be shown only where content
|
|
9
|
-
* continues. Attach `scrollRef` to the scrollable element and `update` to its
|
|
10
|
-
* `onScroll`; content/size changes are re-measured via ResizeObserver.
|
|
11
|
-
*
|
|
12
|
-
* Canonical fade pattern shared by chat lists and FilterModal.
|
|
13
|
-
*/
|
|
14
|
-
export function useScrollFade<T extends HTMLElement = HTMLDivElement>() {
|
|
15
|
-
const scrollRef = React.useRef<T | null>(null)
|
|
16
|
-
const [fade, setFade] = React.useState({ top: false, bottom: false })
|
|
17
|
-
|
|
18
|
-
const update = React.useCallback(() => {
|
|
19
|
-
const el = scrollRef.current
|
|
20
|
-
if (!el) return
|
|
21
|
-
setFade((prev) => {
|
|
22
|
-
const top = el.scrollTop > 0
|
|
23
|
-
const bottom = el.scrollHeight - el.scrollTop - el.clientHeight > 1
|
|
24
|
-
return prev.top === top && prev.bottom === bottom ? prev : { top, bottom }
|
|
25
|
-
})
|
|
26
|
-
}, [])
|
|
27
|
-
|
|
28
|
-
React.useLayoutEffect(() => {
|
|
29
|
-
update()
|
|
30
|
-
const el = scrollRef.current
|
|
31
|
-
if (!el) return
|
|
32
|
-
const cleanups: Array<() => void> = []
|
|
33
|
-
if (typeof ResizeObserver !== 'undefined') {
|
|
34
|
-
const resizeObserver = new ResizeObserver(update)
|
|
35
|
-
resizeObserver.observe(el)
|
|
36
|
-
cleanups.push(() => resizeObserver.disconnect())
|
|
37
|
-
}
|
|
38
|
-
// ResizeObserver only sees the container box; content growth (appended
|
|
39
|
-
// list items) changes scrollHeight without resizing it — watch mutations.
|
|
40
|
-
if (typeof MutationObserver !== 'undefined') {
|
|
41
|
-
const mutationObserver = new MutationObserver(update)
|
|
42
|
-
mutationObserver.observe(el, { childList: true, subtree: true, characterData: true })
|
|
43
|
-
cleanups.push(() => mutationObserver.disconnect())
|
|
44
|
-
}
|
|
45
|
-
return () => {
|
|
46
|
-
for (const cleanup of cleanups) cleanup()
|
|
47
|
-
}
|
|
48
|
-
}, [update])
|
|
49
|
-
|
|
50
|
-
return { scrollRef, fadeTop: fade.top, fadeBottom: fade.bottom, update }
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface ScrollFadeOverlayProps {
|
|
54
|
-
/** Which edge of the scroll container the fade sits on. */
|
|
55
|
-
edge: 'top' | 'bottom'
|
|
56
|
-
/** Whether the fade is currently shown (content continues past this edge). */
|
|
57
|
-
visible: boolean
|
|
58
|
-
/**
|
|
59
|
-
* CSS color the content fades into — should match the surface behind the
|
|
60
|
-
* list. Defaults to the page background token.
|
|
61
|
-
*/
|
|
62
|
-
color?: string
|
|
63
|
-
className?: string
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Edge overlay that fades scrollable content into the surface behind it.
|
|
68
|
-
* Render inside a `relative` wrapper around the scrollable element.
|
|
69
|
-
*/
|
|
70
|
-
export function ScrollFadeOverlay({
|
|
71
|
-
edge,
|
|
72
|
-
visible,
|
|
73
|
-
color = 'var(--color-bg)',
|
|
74
|
-
className,
|
|
75
|
-
}: ScrollFadeOverlayProps) {
|
|
76
|
-
return (
|
|
77
|
-
<div
|
|
78
|
-
aria-hidden
|
|
79
|
-
className={cn(
|
|
80
|
-
'pointer-events-none absolute inset-x-0 h-16 transition-opacity duration-150',
|
|
81
|
-
edge === 'top' ? 'top-0' : 'bottom-0',
|
|
82
|
-
visible ? 'opacity-100' : 'opacity-0',
|
|
83
|
-
className,
|
|
84
|
-
)}
|
|
85
|
-
style={{
|
|
86
|
-
background: `linear-gradient(${edge === 'top' ? '0deg' : '180deg'}, transparent 0%, ${color} 100%)`,
|
|
87
|
-
}}
|
|
88
|
-
/>
|
|
89
|
-
)
|
|
90
|
-
}
|
|
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
|