@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.
Files changed (112) hide show
  1. package/dist/{chunk-RWKVTABY.js → chunk-463X3AW2.js} +2 -2
  2. package/dist/{chunk-2B5FIJE5.js → chunk-4HAVKWTJ.js} +2 -2
  3. package/dist/{chunk-7YKHVAUU.cjs → chunk-556BG7SX.cjs} +31 -31
  4. package/dist/{chunk-7YKHVAUU.cjs.map → chunk-556BG7SX.cjs.map} +1 -1
  5. package/dist/{chunk-YON2QYWK.js → chunk-56XCRZ7I.js} +2 -2
  6. package/dist/{chunk-5P5WMTVW.js → chunk-6VR7BJF6.js} +4 -4
  7. package/dist/{chunk-Q4HI3DGY.cjs → chunk-6XQJSN7G.cjs} +15 -15
  8. package/dist/{chunk-Q4HI3DGY.cjs.map → chunk-6XQJSN7G.cjs.map} +1 -1
  9. package/dist/{chunk-FRLLKYMO.cjs → chunk-ABRDOCVN.cjs} +7 -7
  10. package/dist/{chunk-FRLLKYMO.cjs.map → chunk-ABRDOCVN.cjs.map} +1 -1
  11. package/dist/{chunk-QOOWYEPL.cjs → chunk-EFTKJFEF.cjs} +5 -5
  12. package/dist/{chunk-QOOWYEPL.cjs.map → chunk-EFTKJFEF.cjs.map} +1 -1
  13. package/dist/{chunk-PMR74LEE.js → chunk-FHEIG7QO.js} +2 -2
  14. package/dist/{chunk-FLDYBM25.js → chunk-I4XG5PJA.js} +2 -2
  15. package/dist/{chunk-QDERWRT4.cjs → chunk-ILWSJCWD.cjs} +26 -26
  16. package/dist/{chunk-QDERWRT4.cjs.map → chunk-ILWSJCWD.cjs.map} +1 -1
  17. package/dist/{chunk-F2LZ67KM.cjs → chunk-J6IQQJJQ.cjs} +1172 -1165
  18. package/dist/chunk-J6IQQJJQ.cjs.map +1 -0
  19. package/dist/{chunk-TGWHUEPD.cjs → chunk-KIC4ZEZ7.cjs} +62 -62
  20. package/dist/{chunk-TGWHUEPD.cjs.map → chunk-KIC4ZEZ7.cjs.map} +1 -1
  21. package/dist/{chunk-MZPEN27A.js → chunk-LAL63W5J.js} +4 -4
  22. package/dist/{chunk-3GXZPZHR.cjs → chunk-MFRP2UDK.cjs} +26 -26
  23. package/dist/{chunk-3GXZPZHR.cjs.map → chunk-MFRP2UDK.cjs.map} +1 -1
  24. package/dist/{chunk-V4YFWSB2.js → chunk-MQRTT3DO.js} +4 -4
  25. package/dist/{chunk-PLB6Z3E4.cjs → chunk-OPD5V57R.cjs} +12 -12
  26. package/dist/{chunk-PLB6Z3E4.cjs.map → chunk-OPD5V57R.cjs.map} +1 -1
  27. package/dist/{chunk-B3IDZ6JJ.js → chunk-PD5MXNTJ.js} +4 -4
  28. package/dist/{chunk-VIEWUAFE.cjs → chunk-QGQ76SSR.cjs} +9 -9
  29. package/dist/{chunk-VIEWUAFE.cjs.map → chunk-QGQ76SSR.cjs.map} +1 -1
  30. package/dist/{chunk-BI23LOMC.cjs → chunk-RSFHAFZN.cjs} +37 -37
  31. package/dist/{chunk-BI23LOMC.cjs.map → chunk-RSFHAFZN.cjs.map} +1 -1
  32. package/dist/{chunk-V3NY65ET.js → chunk-RYPCNUXA.js} +2 -2
  33. package/dist/{chunk-TZDROKLI.js → chunk-UFP45JLE.js} +2 -2
  34. package/dist/{chunk-EDR55RQJ.js → chunk-UYBNOHTC.js} +4714 -4707
  35. package/dist/chunk-UYBNOHTC.js.map +1 -0
  36. package/dist/{chunk-CG7LIPSA.cjs → chunk-VTSEL7CJ.cjs} +59 -59
  37. package/dist/{chunk-CG7LIPSA.cjs.map → chunk-VTSEL7CJ.cjs.map} +1 -1
  38. package/dist/components/case-studies/index.cjs +8 -8
  39. package/dist/components/case-studies/index.js +2 -2
  40. package/dist/components/chat/chat-ticket-list.d.ts.map +1 -1
  41. package/dist/components/chat/guide-welcome.d.ts.map +1 -1
  42. package/dist/components/chat/index.cjs +2 -2
  43. package/dist/components/chat/index.js +1 -1
  44. package/dist/components/chat/mingo-chat-history.d.ts.map +1 -1
  45. package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
  46. package/dist/components/contact/index.cjs +3 -3
  47. package/dist/components/contact/index.js +2 -2
  48. package/dist/components/docs/index.cjs +5 -5
  49. package/dist/components/docs/index.js +4 -4
  50. package/dist/components/embeds/index.cjs +3 -3
  51. package/dist/components/embeds/index.js +2 -2
  52. package/dist/components/faq/index.cjs +3 -3
  53. package/dist/components/faq/index.js +2 -2
  54. package/dist/components/features/index.cjs +2 -2
  55. package/dist/components/features/index.js +1 -1
  56. package/dist/components/help-center-pages/index.cjs +20 -20
  57. package/dist/components/help-center-pages/index.js +11 -11
  58. package/dist/components/index.cjs +120 -126
  59. package/dist/components/index.cjs.map +1 -1
  60. package/dist/components/index.js +9 -15
  61. package/dist/components/index.js.map +1 -1
  62. package/dist/components/navigation/index.cjs +2 -2
  63. package/dist/components/navigation/index.js +1 -1
  64. package/dist/components/onboarding-guides/index.cjs +5 -5
  65. package/dist/components/onboarding-guides/index.js +4 -4
  66. package/dist/components/related-content/index.cjs +3 -3
  67. package/dist/components/related-content/index.js +2 -2
  68. package/dist/components/tickets/index.cjs +5 -5
  69. package/dist/components/tickets/index.js +4 -4
  70. package/dist/components/ui/data-table/data-table-header.d.ts.map +1 -1
  71. package/dist/components/ui/data-table/types.d.ts +0 -6
  72. package/dist/components/ui/data-table/types.d.ts.map +1 -1
  73. package/dist/components/ui/date-picker.d.ts +4 -41
  74. package/dist/components/ui/date-picker.d.ts.map +1 -1
  75. package/dist/components/ui/filter-modal.d.ts +1 -16
  76. package/dist/components/ui/filter-modal.d.ts.map +1 -1
  77. package/dist/components/ui/index.cjs +2 -8
  78. package/dist/components/ui/index.cjs.map +1 -1
  79. package/dist/components/ui/index.d.ts +0 -1
  80. package/dist/components/ui/index.d.ts.map +1 -1
  81. package/dist/components/ui/index.js +1 -7
  82. package/dist/index.cjs +2 -8
  83. package/dist/index.cjs.map +1 -1
  84. package/dist/index.js +1 -7
  85. package/package.json +1 -1
  86. package/src/components/chat/chat-ticket-list.tsx +36 -8
  87. package/src/components/chat/guide-welcome.tsx +43 -5
  88. package/src/components/chat/mingo-chat-history.tsx +40 -6
  89. package/src/components/chat/mingo-welcome.tsx +47 -7
  90. package/src/components/ui/data-table/data-table-header.tsx +3 -6
  91. package/src/components/ui/data-table/types.ts +0 -6
  92. package/src/components/ui/date-picker.tsx +41 -149
  93. package/src/components/ui/filter-modal.tsx +2 -57
  94. package/src/components/ui/index.ts +0 -1
  95. package/src/stories/DatePicker.stories.tsx +2 -4
  96. package/src/stories/FilterModal.stories.tsx +0 -33
  97. package/dist/chunk-EDR55RQJ.js.map +0 -1
  98. package/dist/chunk-F2LZ67KM.cjs.map +0 -1
  99. package/dist/components/ui/scroll-fade.d.ts +0 -33
  100. package/dist/components/ui/scroll-fade.d.ts.map +0 -1
  101. package/src/components/ui/scroll-fade.tsx +0 -90
  102. /package/dist/{chunk-RWKVTABY.js.map → chunk-463X3AW2.js.map} +0 -0
  103. /package/dist/{chunk-2B5FIJE5.js.map → chunk-4HAVKWTJ.js.map} +0 -0
  104. /package/dist/{chunk-YON2QYWK.js.map → chunk-56XCRZ7I.js.map} +0 -0
  105. /package/dist/{chunk-5P5WMTVW.js.map → chunk-6VR7BJF6.js.map} +0 -0
  106. /package/dist/{chunk-PMR74LEE.js.map → chunk-FHEIG7QO.js.map} +0 -0
  107. /package/dist/{chunk-FLDYBM25.js.map → chunk-I4XG5PJA.js.map} +0 -0
  108. /package/dist/{chunk-MZPEN27A.js.map → chunk-LAL63W5J.js.map} +0 -0
  109. /package/dist/{chunk-V4YFWSB2.js.map → chunk-MQRTT3DO.js.map} +0 -0
  110. /package/dist/{chunk-B3IDZ6JJ.js.map → chunk-PD5MXNTJ.js.map} +0 -0
  111. /package/dist/{chunk-V3NY65ET.js.map → chunk-RYPCNUXA.js.map} +0 -0
  112. /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
- }