@flamingo-stack/openframe-frontend-core 0.0.210 → 0.0.211

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 (72) hide show
  1. package/dist/{chunk-R5RNRH62.js → chunk-3E5ANY55.js} +14 -5
  2. package/dist/chunk-3E5ANY55.js.map +1 -0
  3. package/dist/{chunk-WJBPLMBX.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-ATEUJQKU.js → chunk-QKFBZLIR.js} +2 -2
  7. package/dist/{chunk-MDTIOPVS.cjs → chunk-VTUIMMHO.cjs} +24 -24
  8. package/dist/{chunk-MDTIOPVS.cjs.map → chunk-VTUIMMHO.cjs.map} +1 -1
  9. package/dist/{chunk-TWKPYZNQ.cjs → chunk-WI76ZUBE.cjs} +26 -17
  10. package/dist/chunk-WI76ZUBE.cjs.map +1 -0
  11. package/dist/{chunk-VBFOCTMD.cjs → chunk-ZFBLC5GV.cjs} +17 -17
  12. package/dist/{chunk-VBFOCTMD.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/hooks/use-chat-identity.d.ts +3 -3
  16. package/dist/components/chat/hooks/use-chat-identity.d.ts.map +1 -1
  17. package/dist/components/chat/index.cjs +3 -3
  18. package/dist/components/chat/index.js +2 -2
  19. package/dist/components/contact/index.cjs +4 -4
  20. package/dist/components/contact/index.js +3 -3
  21. package/dist/components/features/index.cjs +3 -3
  22. package/dist/components/features/index.js +2 -2
  23. package/dist/components/footer-waitlist-button.d.ts +21 -2
  24. package/dist/components/footer-waitlist-button.d.ts.map +1 -1
  25. package/dist/components/index.cjs +87 -91
  26. package/dist/components/index.cjs.map +1 -1
  27. package/dist/components/index.js +12 -16
  28. package/dist/components/index.js.map +1 -1
  29. package/dist/components/navigation/index.cjs +3 -3
  30. package/dist/components/navigation/index.js +2 -2
  31. package/dist/components/navigation/sticky-section-nav.d.ts.map +1 -1
  32. package/dist/components/tickets/help-center-card.d.ts.map +1 -1
  33. package/dist/components/tickets/index.cjs +139 -98
  34. package/dist/components/tickets/index.cjs.map +1 -1
  35. package/dist/components/tickets/index.js +95 -54
  36. package/dist/components/tickets/index.js.map +1 -1
  37. package/dist/components/tickets/ticket-row.d.ts.map +1 -1
  38. package/dist/components/ui/index.cjs +3 -3
  39. package/dist/components/ui/index.js +2 -2
  40. package/dist/contexts/chat-runtime-context.d.ts +6 -3
  41. package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
  42. package/dist/contexts/index.cjs +2 -2
  43. package/dist/contexts/index.js +1 -1
  44. package/dist/index.cjs +5 -3
  45. package/dist/index.cjs.map +1 -1
  46. package/dist/index.js +4 -2
  47. package/dist/utils/index.cjs +10 -0
  48. package/dist/utils/index.cjs.map +1 -1
  49. package/dist/utils/index.d.ts +1 -0
  50. package/dist/utils/index.d.ts.map +1 -1
  51. package/dist/utils/index.js +10 -1
  52. package/dist/utils/index.js.map +1 -1
  53. package/dist/utils/scroll-into-view.d.ts +63 -0
  54. package/dist/utils/scroll-into-view.d.ts.map +1 -0
  55. package/package.json +1 -1
  56. package/src/components/chat/hooks/use-chat-identity.ts +8 -7
  57. package/src/components/footer-waitlist-button.tsx +33 -16
  58. package/src/components/navigation/sticky-section-nav.tsx +6 -4
  59. package/src/components/tickets/help-center-card.tsx +55 -1
  60. package/src/components/tickets/help-center-list.tsx +9 -1
  61. package/src/components/tickets/ticket-detail-drawer.tsx +19 -4
  62. package/src/components/tickets/ticket-row.tsx +30 -19
  63. package/src/contexts/chat-runtime-context.tsx +6 -3
  64. package/src/stories/EmbeddableChat.stories.tsx +1 -1
  65. package/src/utils/index.ts +12 -0
  66. package/src/utils/scroll-into-view.ts +74 -0
  67. package/dist/chunk-6RZYJICV.cjs.map +0 -1
  68. package/dist/chunk-7L4DWM7P.js.map +0 -1
  69. package/dist/chunk-R5RNRH62.js.map +0 -1
  70. package/dist/chunk-TWKPYZNQ.cjs.map +0 -1
  71. /package/dist/{chunk-WJBPLMBX.js.map → chunk-5BNWGK6D.js.map} +0 -0
  72. /package/dist/{chunk-ATEUJQKU.js.map → chunk-QKFBZLIR.js.map} +0 -0
@@ -139,7 +139,7 @@ import {
139
139
  } from "./chunk-W72U7OU7.js";
140
140
  import {
141
141
  useRequiredChatRuntime
142
- } from "./chunk-7L4DWM7P.js";
142
+ } from "./chunk-ZG2YY5E7.js";
143
143
  import {
144
144
  dynamic
145
145
  } from "./chunk-EL5YVPD5.js";
@@ -15016,6 +15016,15 @@ var OPENFRAME_DEV_SECTIONS = {
15016
15016
  }
15017
15017
  };
15018
15018
 
15019
+ // src/utils/scroll-into-view.ts
15020
+ function scrollElementIntoView(target, options = {}) {
15021
+ if (typeof window === "undefined" || !target) return;
15022
+ const { headerOffset = 0, behavior = "smooth", adjustTargetY } = options;
15023
+ const rawTargetY = target.getBoundingClientRect().top + window.scrollY - headerOffset;
15024
+ const finalY = adjustTargetY ? adjustTargetY(rawTargetY) : rawTargetY;
15025
+ window.scrollTo({ top: Math.max(0, finalY), behavior });
15026
+ }
15027
+
15019
15028
  // src/components/ui/benefit-card.tsx
15020
15029
  import { jsx as jsx111, jsxs as jsxs87 } from "react/jsx-runtime";
15021
15030
  var BenefitCard = ({
@@ -23768,8 +23777,7 @@ function useSectionNavigation(sections, options) {
23768
23777
  if (!targetElement) return;
23769
23778
  isScrollingFromClick.current = true;
23770
23779
  setActiveSection(sectionId);
23771
- const top = targetElement.offsetTop - offset2;
23772
- window.scrollTo({ top, behavior: "smooth" });
23780
+ scrollElementIntoView(targetElement, { headerOffset: offset2 });
23773
23781
  setTimeout(() => {
23774
23782
  isScrollingFromClick.current = false;
23775
23783
  }, 500);
@@ -35877,7 +35885,7 @@ var ANON_DEFAULTS = {
35877
35885
  };
35878
35886
  function useChatIdentity() {
35879
35887
  const runtime = useRequiredChatRuntime();
35880
- const url = runtime.endpoints.chatIdentityUrl;
35888
+ const url = runtime.endpoints.identityUrl;
35881
35889
  const proxyEmail = getEmbedProxyAuth()?.email ?? null;
35882
35890
  const [data, setData] = useState78(ANON_DEFAULTS);
35883
35891
  const [isLoading, setIsLoading] = useState78(true);
@@ -38999,6 +39007,7 @@ export {
38999
39007
  DELIVERY_TASK_TYPE_OPTIONS,
39000
39008
  TICKET_STATUS_OPTIONS,
39001
39009
  OPENFRAME_DEV_SECTIONS,
39010
+ scrollElementIntoView,
39002
39011
  BenefitCard,
39003
39012
  BenefitCardGrid,
39004
39013
  BrandAssociationCard,
@@ -39212,4 +39221,4 @@ export {
39212
39221
  LogsList,
39213
39222
  assets
39214
39223
  };
39215
- //# sourceMappingURL=chunk-R5RNRH62.js.map
39224
+ //# sourceMappingURL=chunk-3E5ANY55.js.map