@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.
- package/dist/{chunk-R5RNRH62.js → chunk-3E5ANY55.js} +14 -5
- package/dist/chunk-3E5ANY55.js.map +1 -0
- package/dist/{chunk-WJBPLMBX.js → chunk-5BNWGK6D.js} +2 -2
- package/dist/{chunk-6RZYJICV.cjs → chunk-P5EE2VJX.cjs} +1 -1
- package/dist/chunk-P5EE2VJX.cjs.map +1 -0
- package/dist/{chunk-ATEUJQKU.js → chunk-QKFBZLIR.js} +2 -2
- package/dist/{chunk-MDTIOPVS.cjs → chunk-VTUIMMHO.cjs} +24 -24
- package/dist/{chunk-MDTIOPVS.cjs.map → chunk-VTUIMMHO.cjs.map} +1 -1
- package/dist/{chunk-TWKPYZNQ.cjs → chunk-WI76ZUBE.cjs} +26 -17
- package/dist/chunk-WI76ZUBE.cjs.map +1 -0
- package/dist/{chunk-VBFOCTMD.cjs → chunk-ZFBLC5GV.cjs} +17 -17
- package/dist/{chunk-VBFOCTMD.cjs.map → chunk-ZFBLC5GV.cjs.map} +1 -1
- package/dist/{chunk-7L4DWM7P.js → chunk-ZG2YY5E7.js} +1 -1
- package/dist/chunk-ZG2YY5E7.js.map +1 -0
- package/dist/components/chat/hooks/use-chat-identity.d.ts +3 -3
- package/dist/components/chat/hooks/use-chat-identity.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/footer-waitlist-button.d.ts +21 -2
- package/dist/components/footer-waitlist-button.d.ts.map +1 -1
- package/dist/components/index.cjs +87 -91
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +12 -16
- 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/navigation/sticky-section-nav.d.ts.map +1 -1
- package/dist/components/tickets/help-center-card.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +139 -98
- package/dist/components/tickets/index.cjs.map +1 -1
- package/dist/components/tickets/index.js +95 -54
- package/dist/components/tickets/index.js.map +1 -1
- package/dist/components/tickets/ticket-row.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +3 -3
- package/dist/components/ui/index.js +2 -2
- package/dist/contexts/chat-runtime-context.d.ts +6 -3
- package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
- package/dist/contexts/index.cjs +2 -2
- package/dist/contexts/index.js +1 -1
- package/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/utils/index.cjs +10 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +10 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/scroll-into-view.d.ts +63 -0
- package/dist/utils/scroll-into-view.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/chat/hooks/use-chat-identity.ts +8 -7
- package/src/components/footer-waitlist-button.tsx +33 -16
- package/src/components/navigation/sticky-section-nav.tsx +6 -4
- package/src/components/tickets/help-center-card.tsx +55 -1
- package/src/components/tickets/help-center-list.tsx +9 -1
- package/src/components/tickets/ticket-detail-drawer.tsx +19 -4
- package/src/components/tickets/ticket-row.tsx +30 -19
- package/src/contexts/chat-runtime-context.tsx +6 -3
- package/src/stories/EmbeddableChat.stories.tsx +1 -1
- package/src/utils/index.ts +12 -0
- package/src/utils/scroll-into-view.ts +74 -0
- package/dist/chunk-6RZYJICV.cjs.map +0 -1
- package/dist/chunk-7L4DWM7P.js.map +0 -1
- package/dist/chunk-R5RNRH62.js.map +0 -1
- package/dist/chunk-TWKPYZNQ.cjs.map +0 -1
- /package/dist/{chunk-WJBPLMBX.js.map → chunk-5BNWGK6D.js.map} +0 -0
- /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-
|
|
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
|
-
|
|
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.
|
|
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-
|
|
39224
|
+
//# sourceMappingURL=chunk-3E5ANY55.js.map
|