@flamingo-stack/openframe-frontend-core 0.0.209 → 0.0.210-snapshot.20260528032637

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 (74) hide show
  1. package/dist/{chunk-HZT4YU33.js → chunk-3E5ANY55.js} +49 -26
  2. package/dist/chunk-3E5ANY55.js.map +1 -0
  3. package/dist/{chunk-RFSBDUXD.js → chunk-5BNWGK6D.js} +2 -2
  4. package/dist/{chunk-6RZYJICV.cjs → chunk-P5EE2VJX.cjs} +1 -1
  5. package/dist/chunk-P5EE2VJX.cjs.map +1 -0
  6. package/dist/{chunk-GIKD2LWD.js → chunk-QKFBZLIR.js} +2 -2
  7. package/dist/{chunk-Y7IXGY7T.cjs → chunk-VTUIMMHO.cjs} +24 -24
  8. package/dist/{chunk-Y7IXGY7T.cjs.map → chunk-VTUIMMHO.cjs.map} +1 -1
  9. package/dist/{chunk-SJQLTQC7.cjs → chunk-WI76ZUBE.cjs} +57 -34
  10. package/dist/chunk-WI76ZUBE.cjs.map +1 -0
  11. package/dist/{chunk-S2B3UFVP.cjs → chunk-ZFBLC5GV.cjs} +17 -17
  12. package/dist/{chunk-S2B3UFVP.cjs.map → chunk-ZFBLC5GV.cjs.map} +1 -1
  13. package/dist/{chunk-7L4DWM7P.js → chunk-ZG2YY5E7.js} +1 -1
  14. package/dist/chunk-ZG2YY5E7.js.map +1 -0
  15. package/dist/components/chat/entity-cards/blog-card.d.ts.map +1 -1
  16. package/dist/components/chat/hooks/use-chat-identity.d.ts +3 -3
  17. package/dist/components/chat/hooks/use-chat-identity.d.ts.map +1 -1
  18. package/dist/components/chat/index.cjs +3 -3
  19. package/dist/components/chat/index.js +2 -2
  20. package/dist/components/contact/index.cjs +4 -4
  21. package/dist/components/contact/index.js +3 -3
  22. package/dist/components/features/index.cjs +3 -3
  23. package/dist/components/features/index.js +2 -2
  24. package/dist/components/footer-waitlist-button.d.ts +21 -2
  25. package/dist/components/footer-waitlist-button.d.ts.map +1 -1
  26. package/dist/components/index.cjs +87 -91
  27. package/dist/components/index.cjs.map +1 -1
  28. package/dist/components/index.js +12 -16
  29. package/dist/components/index.js.map +1 -1
  30. package/dist/components/navigation/index.cjs +3 -3
  31. package/dist/components/navigation/index.js +2 -2
  32. package/dist/components/navigation/sticky-section-nav.d.ts.map +1 -1
  33. package/dist/components/tickets/help-center-card.d.ts.map +1 -1
  34. package/dist/components/tickets/index.cjs +139 -98
  35. package/dist/components/tickets/index.cjs.map +1 -1
  36. package/dist/components/tickets/index.js +95 -54
  37. package/dist/components/tickets/index.js.map +1 -1
  38. package/dist/components/tickets/ticket-row.d.ts.map +1 -1
  39. package/dist/components/ui/index.cjs +3 -3
  40. package/dist/components/ui/index.js +2 -2
  41. package/dist/contexts/chat-runtime-context.d.ts +6 -3
  42. package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
  43. package/dist/contexts/index.cjs +2 -2
  44. package/dist/contexts/index.js +1 -1
  45. package/dist/index.cjs +5 -3
  46. package/dist/index.cjs.map +1 -1
  47. package/dist/index.js +4 -2
  48. package/dist/utils/index.cjs +10 -0
  49. package/dist/utils/index.cjs.map +1 -1
  50. package/dist/utils/index.d.ts +1 -0
  51. package/dist/utils/index.d.ts.map +1 -1
  52. package/dist/utils/index.js +10 -1
  53. package/dist/utils/index.js.map +1 -1
  54. package/dist/utils/scroll-into-view.d.ts +63 -0
  55. package/dist/utils/scroll-into-view.d.ts.map +1 -0
  56. package/package.json +1 -1
  57. package/src/components/chat/entity-cards/blog-card.tsx +25 -16
  58. package/src/components/chat/hooks/use-chat-identity.ts +8 -7
  59. package/src/components/footer-waitlist-button.tsx +33 -16
  60. package/src/components/navigation/sticky-section-nav.tsx +6 -4
  61. package/src/components/tickets/help-center-card.tsx +55 -1
  62. package/src/components/tickets/help-center-list.tsx +9 -1
  63. package/src/components/tickets/ticket-detail-drawer.tsx +19 -4
  64. package/src/components/tickets/ticket-row.tsx +30 -19
  65. package/src/contexts/chat-runtime-context.tsx +6 -3
  66. package/src/stories/EmbeddableChat.stories.tsx +1 -1
  67. package/src/utils/index.ts +12 -0
  68. package/src/utils/scroll-into-view.ts +74 -0
  69. package/dist/chunk-6RZYJICV.cjs.map +0 -1
  70. package/dist/chunk-7L4DWM7P.js.map +0 -1
  71. package/dist/chunk-HZT4YU33.js.map +0 -1
  72. package/dist/chunk-SJQLTQC7.cjs.map +0 -1
  73. /package/dist/{chunk-RFSBDUXD.js.map → chunk-5BNWGK6D.js.map} +0 -0
  74. /package/dist/{chunk-GIKD2LWD.js.map → chunk-QKFBZLIR.js.map} +0 -0
@@ -11,7 +11,7 @@ import {
11
11
  UnifiedPagination,
12
12
  init_unified_pagination,
13
13
  unified_pagination_exports
14
- } from "../chunk-GIKD2LWD.js";
14
+ } from "../chunk-QKFBZLIR.js";
15
15
  import "../chunk-4XLJWX2N.js";
16
16
  import {
17
17
  AIEnrichButton,
@@ -617,7 +617,7 @@ import {
617
617
  useTheme,
618
618
  useThemeToggle,
619
619
  useUnifiedChat
620
- } from "../chunk-HZT4YU33.js";
620
+ } from "../chunk-3E5ANY55.js";
621
621
  import {
622
622
  CommandApprovalToast,
623
623
  ToastCard,
@@ -785,7 +785,9 @@ import {
785
785
  PlayIcon
786
786
  } from "../chunk-EDW2NVRV.js";
787
787
  import "../chunk-W72U7OU7.js";
788
- import "../chunk-7L4DWM7P.js";
788
+ import {
789
+ useChatRuntime
790
+ } from "../chunk-ZG2YY5E7.js";
789
791
  import {
790
792
  useEndpointsRuntime
791
793
  } from "../chunk-MJNXIEV2.js";
@@ -2546,21 +2548,15 @@ init_button();
2546
2548
  import { jsx as jsx17 } from "react/jsx-runtime";
2547
2549
  function FooterWaitlistButton({ className }) {
2548
2550
  const router = useRouter();
2549
- const pathname = usePathname();
2551
+ const runtime = useChatRuntime();
2550
2552
  const handleClick = useCallback2(() => {
2551
- if (pathname?.startsWith("/waitlist")) {
2552
- const anchor = document.getElementById("waitlist-form");
2553
- if (anchor) {
2554
- anchor.scrollIntoView({ behavior: "smooth", block: "center" });
2555
- setTimeout(() => {
2556
- const input = anchor.querySelector('input[type="email"]');
2557
- input?.focus();
2558
- }, 400);
2559
- return;
2560
- }
2553
+ const href = "/waitlist#top";
2554
+ if (runtime?.navigation?.navigate) {
2555
+ const handled = runtime.navigation.navigate({ href });
2556
+ if (handled) return;
2561
2557
  }
2562
- router.push("/waitlist#waitlist-form");
2563
- }, [pathname, router]);
2558
+ router.push(href);
2559
+ }, [router, runtime]);
2564
2560
  return /* @__PURE__ */ jsx17(
2565
2561
  Button,
2566
2562
  {