@flamingo-stack/openframe-frontend-core 0.0.483 → 0.0.484-snapshot.20260727133637
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-CG5OX6WF.cjs → chunk-22HNMZDS.cjs} +40 -40
- package/dist/{chunk-CG5OX6WF.cjs.map → chunk-22HNMZDS.cjs.map} +1 -1
- package/dist/{chunk-VCOL4C2W.cjs → chunk-A7IPON2V.cjs} +3 -2
- package/dist/chunk-A7IPON2V.cjs.map +1 -0
- package/dist/{chunk-T2S7A5IU.js → chunk-ABT6GOQK.js} +6 -6
- package/dist/{chunk-FIRIO2NB.js → chunk-BIJG7SAJ.js} +5 -5
- package/dist/{chunk-AGX565ZT.js → chunk-CWQACI4Z.js} +2 -2
- package/dist/{chunk-5YFXUXOV.cjs → chunk-EFAMTAJ3.cjs} +230 -132
- package/dist/chunk-EFAMTAJ3.cjs.map +1 -0
- package/dist/{chunk-RJ4OJWT5.js → chunk-EK7AIQCV.js} +106 -8
- package/dist/chunk-EK7AIQCV.js.map +1 -0
- package/dist/{chunk-6U7HIZSW.js → chunk-FXPXRITV.js} +2 -2
- package/dist/{chunk-UO7TF67V.cjs → chunk-HJQ3MKJ2.cjs} +73 -73
- package/dist/{chunk-UO7TF67V.cjs.map → chunk-HJQ3MKJ2.cjs.map} +1 -1
- package/dist/{chunk-JKRX3JHT.js → chunk-I6WVKYA3.js} +3 -3
- package/dist/{chunk-RFMH6MLM.cjs → chunk-IBW4SWUB.cjs} +32 -32
- package/dist/{chunk-RFMH6MLM.cjs.map → chunk-IBW4SWUB.cjs.map} +1 -1
- package/dist/{chunk-UTIW7O7R.cjs → chunk-IPO7TRVE.cjs} +5 -5
- package/dist/{chunk-UTIW7O7R.cjs.map → chunk-IPO7TRVE.cjs.map} +1 -1
- package/dist/{chunk-ZN56E4FX.cjs → chunk-IZADUOUG.cjs} +29 -29
- package/dist/{chunk-ZN56E4FX.cjs.map → chunk-IZADUOUG.cjs.map} +1 -1
- package/dist/{chunk-KDXEKD3K.cjs → chunk-JTO4HM7E.cjs} +40 -40
- package/dist/{chunk-KDXEKD3K.cjs.map → chunk-JTO4HM7E.cjs.map} +1 -1
- package/dist/{chunk-DYLIBE6I.cjs → chunk-JUJ2GGPX.cjs} +12 -12
- package/dist/{chunk-DYLIBE6I.cjs.map → chunk-JUJ2GGPX.cjs.map} +1 -1
- package/dist/{chunk-FEQW64Q5.cjs → chunk-KBQLTUKQ.cjs} +73 -73
- package/dist/{chunk-FEQW64Q5.cjs.map → chunk-KBQLTUKQ.cjs.map} +1 -1
- package/dist/{chunk-ZPUZPJDV.js → chunk-KLYHZRAD.js} +2 -1
- package/dist/{chunk-HAJQWSSU.js → chunk-KUX733VP.js} +3 -3
- package/dist/{chunk-UAFJX7YV.cjs → chunk-NAHV66OS.cjs} +7 -7
- package/dist/{chunk-UAFJX7YV.cjs.map → chunk-NAHV66OS.cjs.map} +1 -1
- package/dist/{chunk-AZZQLEKY.cjs → chunk-OHFDGIFD.cjs} +18 -18
- package/dist/{chunk-AZZQLEKY.cjs.map → chunk-OHFDGIFD.cjs.map} +1 -1
- package/dist/{chunk-WIITTL5I.js → chunk-OSM3D5IV.js} +6 -6
- package/dist/{chunk-FM5KWLKU.cjs → chunk-PECGZWQR.cjs} +3 -3
- package/dist/{chunk-FM5KWLKU.cjs.map → chunk-PECGZWQR.cjs.map} +1 -1
- package/dist/{chunk-JBC5DAI5.cjs → chunk-Q34CFBK6.cjs} +15 -15
- package/dist/{chunk-JBC5DAI5.cjs.map → chunk-Q34CFBK6.cjs.map} +1 -1
- package/dist/{chunk-3VMCJK7A.js → chunk-RNI55TAH.js} +3 -3
- package/dist/{chunk-Y37XYIWA.js → chunk-SJFAXFGB.js} +4 -4
- package/dist/{chunk-RDCAJDX7.js → chunk-T3GRPMTP.js} +5 -5
- package/dist/{chunk-GWJNTDXR.js → chunk-TW6MRSUF.js} +2 -2
- package/dist/{chunk-LT2PU6SK.js → chunk-VV2LUNTC.js} +2 -2
- package/dist/components/case-studies/index.cjs +9 -9
- package/dist/components/case-studies/index.js +3 -3
- 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/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +136 -136
- package/dist/components/index.js +11 -11
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/navigation/index.js +2 -2
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/data-table/data-table-skeleton.d.ts +7 -3
- package/dist/components/ui/data-table/data-table-skeleton.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +3 -3
- package/dist/components/ui/index.js +2 -2
- package/dist/components/ui/table/table-skeleton.d.ts +2 -2
- package/dist/components/ui/table/table-skeleton.d.ts.map +1 -1
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +17 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -2
- package/dist/utils/first-touch-attribution.d.ts +97 -0
- package/dist/utils/first-touch-attribution.d.ts.map +1 -0
- package/dist/utils/index.cjs +96 -1
- 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 +90 -2
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/data-table/.data-table-skeleton.md +2 -2
- package/src/components/ui/data-table/data-table-header.tsx +3 -1
- package/src/components/ui/data-table/data-table-row.tsx +1 -1
- package/src/components/ui/data-table/data-table-skeleton.tsx +7 -3
- package/src/components/ui/table/.table-skeleton.md +2 -2
- package/src/components/ui/table/table-skeleton.tsx +4 -2
- package/src/utils/__tests__/first-touch-attribution-persistence.test.ts +58 -0
- package/src/utils/__tests__/first-touch-attribution.test.ts +185 -0
- package/src/utils/first-touch-attribution.ts +200 -0
- package/src/utils/index.ts +1 -0
- package/dist/chunk-5YFXUXOV.cjs.map +0 -1
- package/dist/chunk-RJ4OJWT5.js.map +0 -1
- package/dist/chunk-VCOL4C2W.cjs.map +0 -1
- /package/dist/{chunk-T2S7A5IU.js.map → chunk-ABT6GOQK.js.map} +0 -0
- /package/dist/{chunk-FIRIO2NB.js.map → chunk-BIJG7SAJ.js.map} +0 -0
- /package/dist/{chunk-AGX565ZT.js.map → chunk-CWQACI4Z.js.map} +0 -0
- /package/dist/{chunk-6U7HIZSW.js.map → chunk-FXPXRITV.js.map} +0 -0
- /package/dist/{chunk-JKRX3JHT.js.map → chunk-I6WVKYA3.js.map} +0 -0
- /package/dist/{chunk-ZPUZPJDV.js.map → chunk-KLYHZRAD.js.map} +0 -0
- /package/dist/{chunk-HAJQWSSU.js.map → chunk-KUX733VP.js.map} +0 -0
- /package/dist/{chunk-WIITTL5I.js.map → chunk-OSM3D5IV.js.map} +0 -0
- /package/dist/{chunk-3VMCJK7A.js.map → chunk-RNI55TAH.js.map} +0 -0
- /package/dist/{chunk-Y37XYIWA.js.map → chunk-SJFAXFGB.js.map} +0 -0
- /package/dist/{chunk-RDCAJDX7.js.map → chunk-T3GRPMTP.js.map} +0 -0
- /package/dist/{chunk-GWJNTDXR.js.map → chunk-TW6MRSUF.js.map} +0 -0
- /package/dist/{chunk-LT2PU6SK.js.map → chunk-VV2LUNTC.js.map} +0 -0
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
NEAR_VIEWPORT_ROOT_MARGIN,
|
|
4
4
|
STICKY_HEADER_OFFSET_PX,
|
|
5
5
|
ToolIcon,
|
|
6
|
+
createLocalStorageAdapter,
|
|
6
7
|
dotColorByVariant,
|
|
7
8
|
embedAuthedFetch,
|
|
8
9
|
getEmbedProxyAuth,
|
|
@@ -33,7 +34,7 @@ import {
|
|
|
33
34
|
useResetOnPageHidden,
|
|
34
35
|
useSuppressCloneFocus,
|
|
35
36
|
useToast
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-KLYHZRAD.js";
|
|
37
38
|
import {
|
|
38
39
|
AlertCircleIcon,
|
|
39
40
|
AnthropicLogoGreyIcon,
|
|
@@ -25565,6 +25566,94 @@ function extractSections(markdown, options = {}) {
|
|
|
25565
25566
|
// src/utils/page-header-constants.ts
|
|
25566
25567
|
var SECTION_HERO_ICON_CLASS = "h-10 w-10 text-ods-accent";
|
|
25567
25568
|
|
|
25569
|
+
// src/utils/first-touch-attribution.ts
|
|
25570
|
+
var FIRST_TOUCH_ATTRIBUTION_KEY = "of.first_touch_attribution";
|
|
25571
|
+
var TRACKED_PARAMS = [
|
|
25572
|
+
"utm_source",
|
|
25573
|
+
"utm_medium",
|
|
25574
|
+
"utm_campaign",
|
|
25575
|
+
"utm_content",
|
|
25576
|
+
"utm_term",
|
|
25577
|
+
"rdt_cid"
|
|
25578
|
+
];
|
|
25579
|
+
var ALLOWED_KEYS = /* @__PURE__ */ new Set([
|
|
25580
|
+
...TRACKED_PARAMS,
|
|
25581
|
+
"landing_url",
|
|
25582
|
+
"captured_at"
|
|
25583
|
+
]);
|
|
25584
|
+
function sanitizeLandingUrl(url) {
|
|
25585
|
+
try {
|
|
25586
|
+
const parsed = new URL(url);
|
|
25587
|
+
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") return void 0;
|
|
25588
|
+
return `${parsed.origin}${parsed.pathname}`;
|
|
25589
|
+
} catch {
|
|
25590
|
+
return void 0;
|
|
25591
|
+
}
|
|
25592
|
+
}
|
|
25593
|
+
function makeAdapter() {
|
|
25594
|
+
return createLocalStorageAdapter({
|
|
25595
|
+
key: FIRST_TOUCH_ATTRIBUTION_KEY,
|
|
25596
|
+
backend: "session",
|
|
25597
|
+
logTag: "[first-touch-attribution]",
|
|
25598
|
+
// Anything running on this origin can write to sessionStorage, and whatever `load()`
|
|
25599
|
+
// returns is spread into submit bodies. So the stored shape is validated, not assumed:
|
|
25600
|
+
// allowlisted keys only, string values only. Without this a malformed or planted record
|
|
25601
|
+
// would inject arbitrary keys into an API payload.
|
|
25602
|
+
validate: (parsed) => {
|
|
25603
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return false;
|
|
25604
|
+
return Object.entries(parsed).every(
|
|
25605
|
+
([key, value]) => ALLOWED_KEYS.has(key) && typeof value === "string"
|
|
25606
|
+
);
|
|
25607
|
+
}
|
|
25608
|
+
});
|
|
25609
|
+
}
|
|
25610
|
+
function parseAttributionFromUrl(url) {
|
|
25611
|
+
const out = {};
|
|
25612
|
+
try {
|
|
25613
|
+
const parsed = new URL(url);
|
|
25614
|
+
for (const param of TRACKED_PARAMS) {
|
|
25615
|
+
const value = parsed.searchParams.get(param);
|
|
25616
|
+
if (value && value.trim()) out[param] = value.trim();
|
|
25617
|
+
}
|
|
25618
|
+
} catch {
|
|
25619
|
+
return {};
|
|
25620
|
+
}
|
|
25621
|
+
return out;
|
|
25622
|
+
}
|
|
25623
|
+
function captureFirstTouchAttribution(options = {}) {
|
|
25624
|
+
if (typeof window === "undefined") return {};
|
|
25625
|
+
const adapter = makeAdapter();
|
|
25626
|
+
const existing = adapter.load();
|
|
25627
|
+
if (existing && Object.keys(existing).length > 0) return existing;
|
|
25628
|
+
const href = options.url ?? window.location.href;
|
|
25629
|
+
const parsed = parseAttributionFromUrl(href);
|
|
25630
|
+
if (Object.keys(parsed).length === 0) return {};
|
|
25631
|
+
const landingUrl = sanitizeLandingUrl(href);
|
|
25632
|
+
const record = {
|
|
25633
|
+
...parsed,
|
|
25634
|
+
...landingUrl ? { landing_url: landingUrl } : {},
|
|
25635
|
+
captured_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
25636
|
+
};
|
|
25637
|
+
adapter.save(record);
|
|
25638
|
+
return adapter.load() ?? {};
|
|
25639
|
+
}
|
|
25640
|
+
function getFirstTouchAttribution() {
|
|
25641
|
+
if (typeof window === "undefined") return {};
|
|
25642
|
+
return makeAdapter().load() ?? {};
|
|
25643
|
+
}
|
|
25644
|
+
function withFirstTouchAttribution(body) {
|
|
25645
|
+
const stored = getFirstTouchAttribution();
|
|
25646
|
+
const merged = { ...stored, ...body };
|
|
25647
|
+
for (const [k, v] of Object.entries(merged)) {
|
|
25648
|
+
if (v === void 0 || v === null || v === "") delete merged[k];
|
|
25649
|
+
}
|
|
25650
|
+
return merged;
|
|
25651
|
+
}
|
|
25652
|
+
function clearFirstTouchAttribution() {
|
|
25653
|
+
if (typeof window === "undefined") return;
|
|
25654
|
+
makeAdapter().clear();
|
|
25655
|
+
}
|
|
25656
|
+
|
|
25568
25657
|
// src/components/ui/benefit-card.tsx
|
|
25569
25658
|
import { jsx as jsx172, jsxs as jsxs135 } from "react/jsx-runtime";
|
|
25570
25659
|
var BenefitCard = ({
|
|
@@ -40617,8 +40706,8 @@ function TableCell({
|
|
|
40617
40706
|
// src/components/ui/table/table-skeleton.tsx
|
|
40618
40707
|
init_cn();
|
|
40619
40708
|
import { Fragment as Fragment62, jsx as jsx319, jsxs as jsxs252 } from "react/jsx-runtime";
|
|
40620
|
-
var ROW_HEIGHT_DESKTOP = "h-[
|
|
40621
|
-
var ROW_HEIGHT_MOBILE = "h-[
|
|
40709
|
+
var ROW_HEIGHT_DESKTOP = "h-[66px] md:h-[78px]";
|
|
40710
|
+
var ROW_HEIGHT_MOBILE = "h-[66px]";
|
|
40622
40711
|
function TableCardSkeleton({
|
|
40623
40712
|
columns,
|
|
40624
40713
|
rows = 10,
|
|
@@ -41712,7 +41801,9 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
|
|
|
41712
41801
|
"div",
|
|
41713
41802
|
{
|
|
41714
41803
|
className: cn(
|
|
41715
|
-
|
|
41804
|
+
// Fixed 48px header height per design (20px label centered inside)
|
|
41805
|
+
// instead of the padding-driven 44px.
|
|
41806
|
+
"flex w-full items-center gap-[var(--spacing-system-xsf)] h-12 rounded-sm select-none transition-colors duration-200",
|
|
41716
41807
|
isLgUp && alignJustify(align),
|
|
41717
41808
|
canSort && "group cursor-pointer"
|
|
41718
41809
|
),
|
|
@@ -41772,8 +41863,8 @@ import { flexRender as flexRender2 } from "@tanstack/react-table";
|
|
|
41772
41863
|
// src/components/ui/data-table/data-table-skeleton.tsx
|
|
41773
41864
|
init_cn();
|
|
41774
41865
|
import { Fragment as Fragment65, jsx as jsx332, jsxs as jsxs262 } from "react/jsx-runtime";
|
|
41775
|
-
var ROW_HEIGHT_DESKTOP2 = "h-[
|
|
41776
|
-
var ROW_HEIGHT_MOBILE2 = "h-[
|
|
41866
|
+
var ROW_HEIGHT_DESKTOP2 = "h-[66px] md:h-[78px]";
|
|
41867
|
+
var ROW_HEIGHT_MOBILE2 = "h-[66px]";
|
|
41777
41868
|
function DataTableSkeleton({
|
|
41778
41869
|
rows = 10,
|
|
41779
41870
|
className,
|
|
@@ -41878,7 +41969,7 @@ function DataTableRowImpl({
|
|
|
41878
41969
|
{
|
|
41879
41970
|
className: cn(
|
|
41880
41971
|
"flex items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)]",
|
|
41881
|
-
compact ? "py-[var(--spacing-system-xsf)]" : autoHeight ? "py-[var(--spacing-system-sf)] min-h-[
|
|
41972
|
+
compact ? "py-[var(--spacing-system-xsf)]" : autoHeight ? "py-[var(--spacing-system-sf)] min-h-[66px] md:min-h-[78px]" : `py-0 ${ROW_HEIGHT_DESKTOP2}`,
|
|
41882
41973
|
hasSubRow && "border-b border-ods-border"
|
|
41883
41974
|
),
|
|
41884
41975
|
children: row.getVisibleCells().map((cell) => {
|
|
@@ -56095,6 +56186,13 @@ export {
|
|
|
56095
56186
|
markdownToPlainText,
|
|
56096
56187
|
extractSections,
|
|
56097
56188
|
SECTION_HERO_ICON_CLASS,
|
|
56189
|
+
FIRST_TOUCH_ATTRIBUTION_KEY,
|
|
56190
|
+
sanitizeLandingUrl,
|
|
56191
|
+
parseAttributionFromUrl,
|
|
56192
|
+
captureFirstTouchAttribution,
|
|
56193
|
+
getFirstTouchAttribution,
|
|
56194
|
+
withFirstTouchAttribution,
|
|
56195
|
+
clearFirstTouchAttribution,
|
|
56098
56196
|
BenefitCard,
|
|
56099
56197
|
BenefitCardGrid,
|
|
56100
56198
|
BrandAssociationCard,
|
|
@@ -56368,4 +56466,4 @@ export {
|
|
|
56368
56466
|
LogsList,
|
|
56369
56467
|
assets
|
|
56370
56468
|
};
|
|
56371
|
-
//# sourceMappingURL=chunk-
|
|
56469
|
+
//# sourceMappingURL=chunk-EK7AIQCV.js.map
|