@flamingo-stack/openframe-frontend-core 0.0.644 → 0.0.645
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/README.md +2 -2
- package/dist/{chunk-FOSIR4QF.js → chunk-3DWDJ54N.js} +5 -5
- package/dist/{chunk-CBXZSTAG.cjs → chunk-3J7YNAYI.cjs} +973 -793
- package/dist/chunk-3J7YNAYI.cjs.map +1 -0
- package/dist/{chunk-3DGRXC74.js → chunk-3PGYHT67.js} +5 -5
- package/dist/{chunk-YB6FI2G3.js → chunk-3SMLYVM2.js} +1 -1
- package/dist/{chunk-YB6FI2G3.js.map → chunk-3SMLYVM2.js.map} +1 -1
- package/dist/{chunk-DCCY54LU.cjs → chunk-46G4WFA7.cjs} +14 -14
- package/dist/{chunk-DCCY54LU.cjs.map → chunk-46G4WFA7.cjs.map} +1 -1
- package/dist/{chunk-OMSUWB6A.cjs → chunk-4A4DQSTI.cjs} +118 -118
- package/dist/{chunk-OMSUWB6A.cjs.map → chunk-4A4DQSTI.cjs.map} +1 -1
- package/dist/{chunk-4EEUB62O.js → chunk-4HVWGYHI.js} +2 -2
- package/dist/{chunk-UKV52KAP.cjs → chunk-56FDKQ7R.cjs} +44 -44
- package/dist/{chunk-UKV52KAP.cjs.map → chunk-56FDKQ7R.cjs.map} +1 -1
- package/dist/{chunk-G5U4JP45.js → chunk-5ONM3FHQ.js} +4 -4
- package/dist/{chunk-PFV4DAX5.js → chunk-6PMUA6JW.js} +10 -10
- package/dist/{chunk-GELNUDBT.cjs → chunk-77BLJHKI.cjs} +10 -10
- package/dist/{chunk-GELNUDBT.cjs.map → chunk-77BLJHKI.cjs.map} +1 -1
- package/dist/{chunk-KJWPAJRT.js → chunk-7EI3NES7.js} +3 -3
- package/dist/{chunk-3IXDZI3R.cjs → chunk-DOVVKQMZ.cjs} +3 -3
- package/dist/{chunk-3IXDZI3R.cjs.map → chunk-DOVVKQMZ.cjs.map} +1 -1
- package/dist/{chunk-KOQCA5X5.cjs → chunk-DWJREJRA.cjs} +5 -5
- package/dist/{chunk-KOQCA5X5.cjs.map → chunk-DWJREJRA.cjs.map} +1 -1
- package/dist/{chunk-S2KMNFFN.js → chunk-EI3SLIWL.js} +7 -7
- package/dist/{chunk-7R2DIGG4.cjs → chunk-EX5PJGVA.cjs} +76 -76
- package/dist/{chunk-7R2DIGG4.cjs.map → chunk-EX5PJGVA.cjs.map} +1 -1
- package/dist/{chunk-GBEUGDZG.cjs → chunk-F6U2H42L.cjs} +23 -23
- package/dist/{chunk-GBEUGDZG.cjs.map → chunk-F6U2H42L.cjs.map} +1 -1
- package/dist/{chunk-KEKN76JR.js → chunk-FRQ2DE5Z.js} +5 -5
- package/dist/{chunk-3UBT2OIX.cjs → chunk-GPZ6Q2NP.cjs} +74 -74
- package/dist/{chunk-3UBT2OIX.cjs.map → chunk-GPZ6Q2NP.cjs.map} +1 -1
- package/dist/{chunk-JOV64HW5.js → chunk-GRBZC5N3.js} +3 -3
- package/dist/{chunk-CHIHYC7Q.cjs → chunk-GSD62VAY.cjs} +21 -21
- package/dist/{chunk-CHIHYC7Q.cjs.map → chunk-GSD62VAY.cjs.map} +1 -1
- package/dist/{chunk-UEXIMEVU.js → chunk-GSNX2GDA.js} +10 -10
- package/dist/{chunk-LPMDCQLL.js → chunk-H3EJDISW.js} +2 -2
- package/dist/{chunk-RNMGKAS6.js → chunk-HDCIDJSP.js} +15 -15
- package/dist/{chunk-7Q5XXPCB.js → chunk-HHE7UNGR.js} +14 -14
- package/dist/{chunk-KOLVBEW5.js → chunk-IWISVG4P.js} +3 -3
- package/dist/{chunk-GNKM6R55.cjs → chunk-JH5P72AF.cjs} +25 -25
- package/dist/{chunk-GNKM6R55.cjs.map → chunk-JH5P72AF.cjs.map} +1 -1
- package/dist/{chunk-LCK7T2RM.cjs → chunk-JU6SBF3C.cjs} +13 -13
- package/dist/{chunk-LCK7T2RM.cjs.map → chunk-JU6SBF3C.cjs.map} +1 -1
- package/dist/{chunk-27RD5XTP.js → chunk-JZVSQT2V.js} +5 -5
- package/dist/{chunk-F2KBCLUG.js → chunk-KKSSA4CS.js} +2 -2
- package/dist/{chunk-MRIOYSXH.js → chunk-KYIOOOQY.js} +5 -5
- package/dist/{chunk-FKBM6U43.js → chunk-LZLT67PE.js} +2 -2
- package/dist/{chunk-LZYPSDFE.cjs → chunk-M2MTAES4.cjs} +90 -90
- package/dist/{chunk-LZYPSDFE.cjs.map → chunk-M2MTAES4.cjs.map} +1 -1
- package/dist/{chunk-B3Z3RJRW.js → chunk-M4AD2PHE.js} +5 -5
- package/dist/{chunk-BVQEU5JB.js → chunk-MT5A25AX.js} +2 -2
- package/dist/{chunk-TTVOBWAH.js → chunk-MTC6DWVH.js} +5 -5
- package/dist/{chunk-OVXYX47B.cjs → chunk-N4Q5GKBN.cjs} +19 -19
- package/dist/{chunk-OVXYX47B.cjs.map → chunk-N4Q5GKBN.cjs.map} +1 -1
- package/dist/{chunk-FAD5WURS.cjs → chunk-OGBM3JPR.cjs} +124 -124
- package/dist/{chunk-FAD5WURS.cjs.map → chunk-OGBM3JPR.cjs.map} +1 -1
- package/dist/chunk-OXB6LRBK.js +20 -0
- package/dist/chunk-OXB6LRBK.js.map +1 -0
- package/dist/{chunk-TGUA3C4U.cjs → chunk-Q7XUKTBB.cjs} +9 -9
- package/dist/{chunk-TGUA3C4U.cjs.map → chunk-Q7XUKTBB.cjs.map} +1 -1
- package/dist/{chunk-RFFF2EYD.cjs → chunk-QXML4X4W.cjs} +15 -15
- package/dist/{chunk-RFFF2EYD.cjs.map → chunk-QXML4X4W.cjs.map} +1 -1
- package/dist/{chunk-HOGOQA2X.js → chunk-R3CH2ASE.js} +3 -3
- package/dist/{chunk-SKABQX44.js → chunk-RUC2V3VH.js} +7 -7
- package/dist/{chunk-MCQAOIUK.cjs → chunk-SID5YPKF.cjs} +37 -37
- package/dist/{chunk-MCQAOIUK.cjs.map → chunk-SID5YPKF.cjs.map} +1 -1
- package/dist/{chunk-HPWLIYRL.js → chunk-T36DLNMO.js} +14 -14
- package/dist/{chunk-UPKZU6QU.cjs → chunk-U2YLMFJK.cjs} +1 -1
- package/dist/{chunk-UPKZU6QU.cjs.map → chunk-U2YLMFJK.cjs.map} +1 -1
- package/dist/{chunk-B5IFXCRF.cjs → chunk-UF7AUQ3M.cjs} +41 -41
- package/dist/{chunk-B5IFXCRF.cjs.map → chunk-UF7AUQ3M.cjs.map} +1 -1
- package/dist/{chunk-IXD6SHQ6.js → chunk-ULJNU46H.js} +6 -6
- package/dist/{chunk-CCWI3622.cjs → chunk-VTYP25OW.cjs} +4 -4
- package/dist/{chunk-CCWI3622.cjs.map → chunk-VTYP25OW.cjs.map} +1 -1
- package/dist/{chunk-C5Y5T6GC.cjs → chunk-WIYSHSNU.cjs} +20 -20
- package/dist/{chunk-C5Y5T6GC.cjs.map → chunk-WIYSHSNU.cjs.map} +1 -1
- package/dist/{chunk-T3C3JLGV.cjs → chunk-WKX7DYFM.cjs} +8 -8
- package/dist/{chunk-T3C3JLGV.cjs.map → chunk-WKX7DYFM.cjs.map} +1 -1
- package/dist/{chunk-4WVWRFGP.js → chunk-WSRGTWQL.js} +9 -9
- package/dist/chunk-X7CEWD6V.cjs +20 -0
- package/dist/chunk-X7CEWD6V.cjs.map +1 -0
- package/dist/{chunk-I57XLISO.js → chunk-X7LGHPH5.js} +195 -15
- package/dist/chunk-X7LGHPH5.js.map +1 -0
- package/dist/{chunk-5JUTGEZE.js → chunk-XBTZOO74.js} +2 -2
- package/dist/{chunk-RWURXICE.cjs → chunk-XGD6SCHN.cjs} +44 -44
- package/dist/{chunk-RWURXICE.cjs.map → chunk-XGD6SCHN.cjs.map} +1 -1
- package/dist/{chunk-RB6L5EGM.cjs → chunk-XILTWY3L.cjs} +1131 -1131
- package/dist/{chunk-RB6L5EGM.cjs.map → chunk-XILTWY3L.cjs.map} +1 -1
- package/dist/{chunk-EHAYNUOL.cjs → chunk-XOGD2AME.cjs} +3 -3
- package/dist/{chunk-EHAYNUOL.cjs.map → chunk-XOGD2AME.cjs.map} +1 -1
- package/dist/{chunk-IIXB5REN.cjs → chunk-YEXV52L5.cjs} +16 -16
- package/dist/{chunk-IIXB5REN.cjs.map → chunk-YEXV52L5.cjs.map} +1 -1
- package/dist/{chunk-65EVGKFV.cjs → chunk-YQZXCJQL.cjs} +14 -14
- package/dist/{chunk-65EVGKFV.cjs.map → chunk-YQZXCJQL.cjs.map} +1 -1
- package/dist/{chunk-N6HNK25A.cjs → chunk-YWUZL3RT.cjs} +11 -11
- package/dist/{chunk-N6HNK25A.cjs.map → chunk-YWUZL3RT.cjs.map} +1 -1
- package/dist/{chunk-VE52MSYC.js → chunk-Z7UIO5RQ.js} +8 -8
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/calendar.js +2 -2
- package/dist/components/case-studies/index.cjs +30 -30
- package/dist/components/case-studies/index.js +14 -14
- package/dist/components/chat/embeddable-chat.d.ts +1 -1
- package/dist/components/chat/index.cjs +9 -9
- package/dist/components/chat/index.js +8 -8
- package/dist/components/chat/utils/source-row-cta.d.ts +1 -1
- package/dist/components/command.d.ts +7 -7
- package/dist/components/contact/index.cjs +15 -15
- package/dist/components/contact/index.js +14 -14
- package/dist/components/docs/index.cjs +18 -18
- package/dist/components/docs/index.js +17 -17
- package/dist/components/embeds/index.cjs +15 -15
- package/dist/components/embeds/index.js +14 -14
- package/dist/components/faq/index.cjs +16 -16
- package/dist/components/faq/index.js +15 -15
- package/dist/components/features/index.cjs +14 -14
- package/dist/components/features/index.js +13 -13
- package/dist/components/help-center-pages/index.cjs +37 -37
- package/dist/components/help-center-pages/index.js +28 -28
- package/dist/components/icons/index.cjs +3 -3
- package/dist/components/icons/index.js +2 -2
- package/dist/components/index.cjs +115 -115
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +31 -31
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +119 -119
- package/dist/components/meeting-scheduler/index.js +15 -15
- package/dist/components/navigation/index.cjs +17 -17
- package/dist/components/navigation/index.js +16 -16
- package/dist/components/onboarding-guides/index.cjs +18 -18
- package/dist/components/onboarding-guides/index.js +17 -17
- package/dist/components/related-content/index.cjs +10 -10
- package/dist/components/related-content/index.js +9 -9
- package/dist/components/resizable.d.ts +1 -1
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/tickets/index.js +18 -18
- package/dist/components/ui/file-manager/index.cjs +57 -57
- package/dist/components/ui/file-manager/index.js +4 -4
- package/dist/components/ui/index.cjs +14 -14
- package/dist/components/ui/index.js +13 -13
- package/dist/contexts/chat-runtime-context.d.ts +1 -1
- package/dist/contexts/index.cjs +2 -2
- package/dist/contexts/index.js +1 -1
- package/dist/hooks/index.cjs +7 -7
- package/dist/hooks/index.js +6 -6
- package/dist/index.cjs +36 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +30 -22
- package/dist/index.js.map +1 -1
- package/dist/platform-domains.cjs +43 -0
- package/dist/platform-domains.cjs.map +1 -1
- package/dist/platform-domains.d.ts +62 -4
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +39 -1
- package/dist/platform-domains.js.map +1 -1
- package/dist/types/index.cjs +0 -104
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js +0 -104
- package/dist/types/index.js.map +1 -1
- package/dist/utils/cn.d.ts +0 -21
- package/dist/utils/cn.d.ts.map +1 -1
- package/dist/utils/index.cjs +53 -25
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +49 -25
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/platform-domains.test.ts +124 -0
- package/src/components/chat/embeddable-chat.tsx +2 -2
- package/src/components/chat/utils/__tests__/source-row-cta.test.ts +2 -2
- package/src/components/chat/utils/source-row-cta.ts +4 -4
- package/src/components/made-with-love.tsx +2 -2
- package/src/contexts/chat-runtime-context.tsx +1 -1
- package/src/platform-domains.ts +99 -4
- package/src/utils/.cn.md +3 -23
- package/src/utils/cn.ts +0 -47
- package/src/utils/index.ts +9 -2
- package/dist/chunk-23V5BSHD.cjs +0 -169
- package/dist/chunk-23V5BSHD.cjs.map +0 -1
- package/dist/chunk-CBXZSTAG.cjs.map +0 -1
- package/dist/chunk-I57XLISO.js.map +0 -1
- package/dist/chunk-O4MCCKKN.js +0 -169
- package/dist/chunk-O4MCCKKN.js.map +0 -1
- /package/dist/{chunk-FOSIR4QF.js.map → chunk-3DWDJ54N.js.map} +0 -0
- /package/dist/{chunk-3DGRXC74.js.map → chunk-3PGYHT67.js.map} +0 -0
- /package/dist/{chunk-4EEUB62O.js.map → chunk-4HVWGYHI.js.map} +0 -0
- /package/dist/{chunk-G5U4JP45.js.map → chunk-5ONM3FHQ.js.map} +0 -0
- /package/dist/{chunk-PFV4DAX5.js.map → chunk-6PMUA6JW.js.map} +0 -0
- /package/dist/{chunk-KJWPAJRT.js.map → chunk-7EI3NES7.js.map} +0 -0
- /package/dist/{chunk-S2KMNFFN.js.map → chunk-EI3SLIWL.js.map} +0 -0
- /package/dist/{chunk-KEKN76JR.js.map → chunk-FRQ2DE5Z.js.map} +0 -0
- /package/dist/{chunk-JOV64HW5.js.map → chunk-GRBZC5N3.js.map} +0 -0
- /package/dist/{chunk-UEXIMEVU.js.map → chunk-GSNX2GDA.js.map} +0 -0
- /package/dist/{chunk-LPMDCQLL.js.map → chunk-H3EJDISW.js.map} +0 -0
- /package/dist/{chunk-RNMGKAS6.js.map → chunk-HDCIDJSP.js.map} +0 -0
- /package/dist/{chunk-7Q5XXPCB.js.map → chunk-HHE7UNGR.js.map} +0 -0
- /package/dist/{chunk-KOLVBEW5.js.map → chunk-IWISVG4P.js.map} +0 -0
- /package/dist/{chunk-27RD5XTP.js.map → chunk-JZVSQT2V.js.map} +0 -0
- /package/dist/{chunk-F2KBCLUG.js.map → chunk-KKSSA4CS.js.map} +0 -0
- /package/dist/{chunk-MRIOYSXH.js.map → chunk-KYIOOOQY.js.map} +0 -0
- /package/dist/{chunk-FKBM6U43.js.map → chunk-LZLT67PE.js.map} +0 -0
- /package/dist/{chunk-B3Z3RJRW.js.map → chunk-M4AD2PHE.js.map} +0 -0
- /package/dist/{chunk-BVQEU5JB.js.map → chunk-MT5A25AX.js.map} +0 -0
- /package/dist/{chunk-TTVOBWAH.js.map → chunk-MTC6DWVH.js.map} +0 -0
- /package/dist/{chunk-HOGOQA2X.js.map → chunk-R3CH2ASE.js.map} +0 -0
- /package/dist/{chunk-SKABQX44.js.map → chunk-RUC2V3VH.js.map} +0 -0
- /package/dist/{chunk-HPWLIYRL.js.map → chunk-T36DLNMO.js.map} +0 -0
- /package/dist/{chunk-IXD6SHQ6.js.map → chunk-ULJNU46H.js.map} +0 -0
- /package/dist/{chunk-4WVWRFGP.js.map → chunk-WSRGTWQL.js.map} +0 -0
- /package/dist/{chunk-5JUTGEZE.js.map → chunk-XBTZOO74.js.map} +0 -0
- /package/dist/{chunk-VE52MSYC.js.map → chunk-Z7UIO5RQ.js.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkF6U2H42Lcjs = require('./chunk-F6U2H42L.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkX7CEWD6Vcjs = require('./chunk-X7CEWD6V.cjs');
|
|
8
8
|
|
|
9
9
|
// src/utils/content-ref-groups.ts
|
|
10
10
|
var CONTENT_REF_GROUPS = {
|
|
@@ -87,9 +87,9 @@ var Pagination = ({ currentPage, totalPages, onPageChange, className }) => {
|
|
|
87
87
|
return pages;
|
|
88
88
|
};
|
|
89
89
|
const pageNumbers = getPageNumbers();
|
|
90
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { role: "navigation", "aria-label": "pagination", className:
|
|
90
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { role: "navigation", "aria-label": "pagination", className: _chunkX7CEWD6Vcjs.cn.call(void 0, "mx-auto flex w-full justify-center", className), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "ul", { className: "flex flex-row items-center gap-1", children: [
|
|
91
91
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
92
|
-
|
|
92
|
+
_chunkF6U2H42Lcjs.Button,
|
|
93
93
|
{
|
|
94
94
|
variant: "outline",
|
|
95
95
|
size: "icon",
|
|
@@ -108,7 +108,7 @@ var Pagination = ({ currentPage, totalPages, onPageChange, className }) => {
|
|
|
108
108
|
] }) }, `ellipsis-${index}`);
|
|
109
109
|
}
|
|
110
110
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
111
|
-
|
|
111
|
+
_chunkF6U2H42Lcjs.Button,
|
|
112
112
|
{
|
|
113
113
|
variant: currentPage === page ? "accent" : "outline",
|
|
114
114
|
size: "icon",
|
|
@@ -121,7 +121,7 @@ var Pagination = ({ currentPage, totalPages, onPageChange, className }) => {
|
|
|
121
121
|
) }, page);
|
|
122
122
|
}),
|
|
123
123
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
124
|
-
|
|
124
|
+
_chunkF6U2H42Lcjs.Button,
|
|
125
125
|
{
|
|
126
126
|
variant: "outline",
|
|
127
127
|
size: "icon",
|
|
@@ -139,12 +139,12 @@ var Pagination = ({ currentPage, totalPages, onPageChange, className }) => {
|
|
|
139
139
|
};
|
|
140
140
|
var PaginationContent = _react.forwardRef.call(void 0,
|
|
141
141
|
({ className, ...props }, ref) => {
|
|
142
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { ref, className:
|
|
142
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { ref, className: _chunkX7CEWD6Vcjs.cn.call(void 0, "flex items-center justify-center", className), ...props });
|
|
143
143
|
}
|
|
144
144
|
);
|
|
145
145
|
PaginationContent.displayName = "PaginationContent";
|
|
146
146
|
var PaginationItem = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => {
|
|
147
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { ref, className:
|
|
147
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { ref, className: _chunkX7CEWD6Vcjs.cn.call(void 0, "", className), ...props });
|
|
148
148
|
});
|
|
149
149
|
PaginationItem.displayName = "PaginationItem";
|
|
150
150
|
var PaginationLink = _react.forwardRef.call(void 0,
|
|
@@ -153,7 +153,7 @@ var PaginationLink = _react.forwardRef.call(void 0,
|
|
|
153
153
|
"button",
|
|
154
154
|
{
|
|
155
155
|
ref,
|
|
156
|
-
className:
|
|
156
|
+
className: _chunkX7CEWD6Vcjs.cn.call(void 0,
|
|
157
157
|
"inline-flex h-10 w-10 items-center justify-center rounded-md border border-input bg-background transition-colors text-h6 hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
158
158
|
className
|
|
159
159
|
),
|
|
@@ -169,7 +169,7 @@ var PaginationEllipsis = _react.forwardRef.call(void 0,
|
|
|
169
169
|
"span",
|
|
170
170
|
{
|
|
171
171
|
ref,
|
|
172
|
-
className:
|
|
172
|
+
className: _chunkX7CEWD6Vcjs.cn.call(void 0, "flex h-10 w-10 items-center justify-center text-muted-foreground", className),
|
|
173
173
|
...props,
|
|
174
174
|
children: [
|
|
175
175
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.MoreHorizontal, { className: "h-4 w-4" }),
|
|
@@ -182,7 +182,7 @@ var PaginationEllipsis = _react.forwardRef.call(void 0,
|
|
|
182
182
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
183
183
|
var PaginationPrevious = _react.forwardRef.call(void 0,
|
|
184
184
|
({ className, ...props }, ref) => {
|
|
185
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
185
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkF6U2H42Lcjs.Button, { ref, variant: "outline", size: "icon", className: _chunkX7CEWD6Vcjs.cn.call(void 0, "h-10 w-10", className), ...props, children: [
|
|
186
186
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" }),
|
|
187
187
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Previous page" })
|
|
188
188
|
] });
|
|
@@ -191,7 +191,7 @@ var PaginationPrevious = _react.forwardRef.call(void 0,
|
|
|
191
191
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
192
192
|
var PaginationNext = _react.forwardRef.call(void 0,
|
|
193
193
|
({ className, ...props }, ref) => {
|
|
194
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
194
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkF6U2H42Lcjs.Button, { ref, variant: "outline", size: "icon", className: _chunkX7CEWD6Vcjs.cn.call(void 0, "h-10 w-10", className), ...props, children: [
|
|
195
195
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
|
|
196
196
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Next page" })
|
|
197
197
|
] });
|
|
@@ -213,4 +213,4 @@ PaginationNext.displayName = "PaginationNext";
|
|
|
213
213
|
|
|
214
214
|
|
|
215
215
|
exports.CONTENT_REF_GROUPS = CONTENT_REF_GROUPS; exports.getContentRefLabel = getContentRefLabel; exports.getContentRefLabelOrTitleCase = getContentRefLabelOrTitleCase; exports.orderContentRefTypes = orderContentRefTypes; exports.buildSuggestionUrl = buildSuggestionUrl; exports.Pagination = Pagination; exports.PaginationContent = PaginationContent; exports.PaginationItem = PaginationItem; exports.PaginationLink = PaginationLink; exports.PaginationEllipsis = PaginationEllipsis; exports.PaginationPrevious = PaginationPrevious; exports.PaginationNext = PaginationNext;
|
|
216
|
-
//# sourceMappingURL=chunk-
|
|
216
|
+
//# sourceMappingURL=chunk-JU6SBF3C.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-LCK7T2RM.cjs","../src/utils/content-ref-groups.ts","../src/utils/suggestion-url.ts","../src/components/pagination.tsx"],"names":[],"mappings":"AAAA,6rBAAY;AACZ;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACA;ACqCO,IAAM,mBAAA,EAA4D;AAAA,EACvE,eAAA,EAAiB,EAAE,KAAA,EAAO,kBAAA,EAAoB,KAAA,EAAO,CAAA,EAAG,MAAA,EAAQ,MAAA,EAAQ,QAAA,EAAU,UAAU,CAAA;AAAA,EAC5F,eAAA,EAAiB,EAAE,KAAA,EAAO,kBAAA,EAAoB,KAAA,EAAO,CAAA,EAAG,MAAA,EAAQ,MAAA,EAAQ,QAAA,EAAU,KAAK,CAAA;AAAA,EACvF,OAAA,EAAS,EAAE,KAAA,EAAO,UAAA,EAAY,KAAA,EAAO,CAAA,EAAG,MAAA,EAAQ,MAAA,EAAQ,QAAA,EAAU,UAAU,CAAA;AAAA,EAC5E,OA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AACA,QAAA;AACA,QAAA;AAEA,QAAA;AAAiC,MAAA;AAErC,IAAA;AAEC,IAAA;AACK,MAAA;AAEF,QAAA;AAGM,0BAAA;AACA,0BAAA;AAAoC,QAAA;AAI5C,MAAA;AAEA,MAAA;AAEK,QAAA;AAAA,QAAA;AACC,UAAA;AACA,UAAA;AACA,UAAA;AACA,UAAA;AACA,UAAA;AACA,UAAA;AAEC,UAAA;AAAA,QAAA;AACH,MAAA;AAGL,IAAA;AAED,oBAAA;AACG,MAAA;AAAA,MAAA;AACC,QAAA;AACA,QAAA;AACA,QAAA;AACA,QAAA;AACA,QAAA;AACA,QAAA;AAEA,QAAA;AAAA,0BAAA;AACA,0BAAA;AAAmC,QAAA;AAAA,MAAA;AAEvC,IAAA;AAEJ,EAAA;AAEJ;AAEM;AACD,EAAA;AACD,IAAA;AACF,EAAA;AACF;AACA;AAEM;AACG,EAAA;AACR;AACD;AAEM;AACD,EAAA;AACD,IAAA;AACG,MAAA;AAAA,MAAA;AACC,QAAA;AACA,QAAA;AACE,UAAA;AACA,UAAA;AACF,QAAA;AACC,QAAA;AAAG,MAAA;AACN,IAAA;AAEJ,EAAA;AACF;AACA;AAEM;AACD,EAAA;AACD,IAAA;AACG,MAAA;AAAA,MAAA;AACC,QAAA;AACA,QAAA;AACC,QAAA;AAED,QAAA;AAAA,0BAAA;AACA,0BAAA;AAAoC,QAAA;AAAA,MAAA;AACtC,IAAA;AAEJ,EAAA;AACF;AACA;AAEM;AACD,EAAA;AACD,IAAA;AAEI,sBAAA;AACA,sBAAA;AACF,IAAA;AAEJ,EAAA;AACF;AACA;AAEM;AACD,EAAA;AACD,IAAA;AAEI,sBAAA;AACA,sBAAA;AACF,IAAA;AAEJ,EAAA;AACF;AACA;AHKU;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-LCK7T2RM.cjs","sourcesContent":[null,"/**\n * Content Ref Group Configuration\n *\n * Single source of truth for grouping content_refs by type. Used by both:\n * - components/related-content (detail page rail — lives in this lib)\n * - the hub's lib/utils/investor-email-utils.ts (email builder, via the\n * hub's re-export shim at lib/config/content-ref-groups.ts)\n *\n * Lives in utils/ (server-safe tsup block) so hub server-side code can\n * import it.\n *\n * Each entry carries the metadata RelatedContentSection needs to render the\n * group WITHOUT re-implementing per-type logic locally:\n * - `label`: section heading.\n * - `order`: source-stable ordering (lowest first).\n * - `layout`: 'list' (one-per-row, full-width cards) or 'grid' (responsive\n * column grid).\n * - `gridSize`: card-size variant passed to the per-type card dispatch.\n * `'lg'` matches the canonical large-card variant openframe + flamingo\n * apps already use; `'default'` is the legacy denser variant. New types\n * should pick `'lg'` whenever the card has a large variant.\n *\n * Adding a new content type = one entry here. RelatedContentSection picks up\n * the new group automatically (no hardcoded set to update). NOTE: the hub's\n * related-content SUGGESTION candidate list is DERIVED from these keys (minus\n * an explicit exclusion knob) — a new entry here becomes a suggestion\n * candidate iff it also resolves through the hub's TYPE_TO_ENTITY → RAG\n * config chain (unresolvable entries are dropped loudly at module load).\n */\n\nexport type ContentRefLayout = 'list' | 'grid';\n\n/** Subset of `EntityCardSize` (entity-card dispatch) appropriate for\n * grid/list rendering in RelatedContentSection. Duplicated as a literal\n * union here to avoid a config→component import cycle. Kept in lockstep\n * with `EntityCardSize`; widen here when a new size is added there. */\nexport type ContentRefGridSize = 'lg' | 'default' | 'sm';\n\nexport interface ContentRefGroupConfig {\n label: string;\n order: number;\n layout: ContentRefLayout;\n gridSize: ContentRefGridSize;\n}\n\nexport const CONTENT_REF_GROUPS: Record<string, ContentRefGroupConfig> = {\n investor_update: { label: 'Investor Updates', order: 1, layout: 'grid', gridSize: 'default' },\n product_release: { label: 'Product Releases', order: 2, layout: 'list', gridSize: 'lg' },\n podcast: { label: 'Podcasts', order: 3, layout: 'list', gridSize: 'default' },\n webinar: { label: 'Webinars', order: 4, layout: 'list', gridSize: 'default' },\n case_study: { label: 'Case Studies', order: 5, layout: 'grid', gridSize: 'default' },\n event: { label: 'Events', order: 6, layout: 'list', gridSize: 'default' },\n blog_post_existing: { label: 'Blog Posts', order: 7, layout: 'grid', gridSize: 'default' },\n customer_interview: { label: 'Customer Interviews', order: 8, layout: 'grid', gridSize: 'default' },\n onboarding_guide: { label: 'Onboarding Guides', order: 9, layout: 'list', gridSize: 'default' },\n what_i_shipped: { label: 'What I Shipped', order: 10, layout: 'grid', gridSize: 'default' },\n how_i_work: { label: 'How I Work', order: 11, layout: 'grid', gridSize: 'default' },\n ai_prompt: { label: 'Squawkbox', order: 12, layout: 'grid', gridSize: 'default' },\n};\n\n/** Human-readable label for a content_ref `type`. Returns null when the type\n * isn't registered — caller decides the fallback. Use `getContentRefLabelOrTitleCase`\n * to get a consistent title-cased fallback across all surfaces. */\nexport function getContentRefLabel(type: string): string | null {\n return CONTENT_REF_GROUPS[type]?.label ?? null;\n}\n\n/** Resolved label with a single shared fallback shape — title-cased version\n * of the raw type string for any unregistered type. Both RelatedContentSection\n * AND the investor-email builder consume this so cross-surface label rendering\n * for unregistered types is identical (no drift between \"podcast guest\" and\n * \"Podcast Guest\"). */\nexport function getContentRefLabelOrTitleCase(type: string): string {\n return CONTENT_REF_GROUPS[type]?.label ?? type.replace(/_/g, ' ').replace(/\\b\\w/g, ch => ch.toUpperCase());\n}\n\n/** Sort a set of present content_ref types into the canonical group order\n * (registered types first in CONTENT_REF_GROUPS `order`, then unregistered\n * types appended in insertion order). Used by RelatedContentSection AND the\n * investor-email builder so cross-surface ordering stays identical. */\nexport function orderContentRefTypes(present: Iterable<string>): string[] {\n const presentSet = new Set(present);\n const registeredInOrder = Object.entries(CONTENT_REF_GROUPS)\n .sort(([, a], [, b]) => a.order - b.order)\n .map(([type]) => type)\n .filter(type => presentSet.has(type));\n const unregistered = [...presentSet].filter(type => !CONTENT_REF_GROUPS[type]);\n return [...registeredInOrder, ...unregistered];\n}\n","/**\n * Shared fetch-URL composer for the two suggestion sections (FaqSection +\n * RelatedContentSection) — ONE owner of the entityType/entityId/count query\n * shape so the sections can never drift. Pure + server-safe.\n *\n * Byte-parity contract with the original `buildFaqsUrl`: when only\n * entityType/entityId are set, the param order is `entityType`, `entityId`;\n * with nothing set, the bare `path` is returned (no `?`).\n */\nexport interface SuggestionUrlOptions {\n /** Fetch-URL prefix for third-party embeds / reverse proxies\n * ('' = same-origin relative). */\n apiBaseUrl?: string;\n /** Both required together for entity scope; partial → bare path. */\n entityType?: string;\n entityId?: number | string;\n /** Maps to the server's `count` param. Undefined → param not sent\n * (server default applies). */\n count?: number;\n /** Extra query params appended after the shared trio (e.g. the\n * related-content `excludeTypes` deny-list). Empty/undefined values\n * are skipped. */\n extraParams?: Record<string, string | undefined>;\n}\n\nexport function buildSuggestionUrl(path: string, opts: SuggestionUrlOptions = {}): string {\n const qs = new URLSearchParams();\n const { entityType, entityId } = opts;\n if (entityType && entityId !== undefined && entityId !== null && entityId !== '') {\n qs.set('entityType', entityType);\n qs.set('entityId', String(entityId));\n }\n if (opts.count !== undefined) qs.set('count', String(opts.count));\n for (const [key, value] of Object.entries(opts.extraParams ?? {})) {\n if (value !== undefined && value !== '') qs.set(key, value);\n }\n const query = qs.toString();\n return `${opts.apiBaseUrl ?? ''}${path}${query ? `?${query}` : ''}`;\n}\n","'use client';\n\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';\nimport { type ButtonHTMLAttributes, type HTMLAttributes, forwardRef } from 'react';\nimport { cn } from '../utils/cn';\nimport { Button } from './ui/button';\n\ninterface PaginationProps {\n currentPage: number;\n totalPages: number;\n onPageChange: (page: number) => void;\n className?: string;\n}\n\nconst Pagination = ({ currentPage, totalPages, onPageChange, className }: PaginationProps) => {\n // Generate page numbers to display\n const getPageNumbers = () => {\n const pages = [];\n const maxPagesToShow = 5;\n\n if (totalPages <= maxPagesToShow) {\n // Show all pages if there are fewer than maxPagesToShow\n for (let i = 1; i <= totalPages; i++) {\n pages.push(i);\n }\n } else {\n // Always show first page\n pages.push(1);\n\n // Calculate start and end of page range\n let start = Math.max(2, currentPage - 1);\n let end = Math.min(totalPages - 1, currentPage + 1);\n\n // Adjust if at the beginning or end\n if (currentPage <= 2) {\n end = Math.min(totalPages - 1, 4);\n } else if (currentPage >= totalPages - 1) {\n start = Math.max(2, totalPages - 3);\n }\n\n // Add ellipsis if needed\n if (start > 2) {\n pages.push(-1); // -1 represents ellipsis\n }\n\n // Add middle pages\n for (let i = start; i <= end; i++) {\n pages.push(i);\n }\n\n // Add ellipsis if needed\n if (end < totalPages - 1) {\n pages.push(-2); // -2 represents ellipsis\n }\n\n // Always show last page\n if (totalPages > 1) {\n pages.push(totalPages);\n }\n }\n\n return pages;\n };\n\n const pageNumbers = getPageNumbers();\n\n return (\n <nav role=\"navigation\" aria-label=\"pagination\" className={cn('mx-auto flex w-full justify-center', className)}>\n <ul className=\"flex flex-row items-center gap-1\">\n <li>\n <Button\n variant=\"outline\"\n size=\"icon\"\n onClick={() => onPageChange(currentPage - 1)}\n disabled={currentPage === 1}\n aria-label=\"Go to previous page\"\n className=\"!h-10 !w-10 md:!h-10 md:!w-10\"\n >\n <ChevronLeft className=\"h-4 w-4\" />\n </Button>\n </li>\n\n {pageNumbers.map((page, index) => {\n if (page < 0) {\n // Render ellipsis\n return (\n <li key={`ellipsis-${index}`}>\n <span className=\"flex h-9 w-9 items-center justify-center text-muted-foreground text-h6\">\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n </li>\n );\n }\n\n return (\n <li key={page}>\n <Button\n variant={currentPage === page ? 'accent' : 'outline'}\n size=\"icon\"\n onClick={() => onPageChange(page)}\n className=\"!h-9 !w-9 md:!h-9 md:!w-9\"\n aria-label={`Page ${page}`}\n aria-current={currentPage === page ? 'page' : undefined}\n >\n {page}\n </Button>\n </li>\n );\n })}\n\n <li>\n <Button\n variant=\"outline\"\n size=\"icon\"\n onClick={() => onPageChange(currentPage + 1)}\n disabled={currentPage === totalPages}\n aria-label=\"Go to next page\"\n className=\"!h-10 !w-10 md:!h-10 md:!w-10\"\n >\n <ChevronRight className=\"h-4 w-4\" />\n <span className=\"sr-only\">Next page</span>\n </Button>\n </li>\n </ul>\n </nav>\n );\n};\n\nconst PaginationContent = forwardRef<HTMLUListElement, HTMLAttributes<HTMLUListElement>>(\n ({ className, ...props }, ref) => {\n return <ul ref={ref} className={cn('flex items-center justify-center', className)} {...props} />;\n },\n);\nPaginationContent.displayName = 'PaginationContent';\n\nconst PaginationItem = forwardRef<HTMLLIElement, HTMLAttributes<HTMLLIElement>>(({ className, ...props }, ref) => {\n return <li ref={ref} className={cn('', className)} {...props} />;\n});\nPaginationItem.displayName = 'PaginationItem';\n\nconst PaginationLink = forwardRef<HTMLButtonElement, ButtonHTMLAttributes<HTMLButtonElement>>(\n ({ className, ...props }, ref) => {\n return (\n <button\n ref={ref}\n className={cn(\n 'inline-flex h-10 w-10 items-center justify-center rounded-md border border-input bg-background transition-colors text-h6 hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',\n className,\n )}\n {...props}\n />\n );\n },\n);\nPaginationLink.displayName = 'PaginationLink';\n\nconst PaginationEllipsis = forwardRef<HTMLSpanElement, HTMLAttributes<HTMLSpanElement>>(\n ({ className, ...props }, ref) => {\n return (\n <span\n ref={ref}\n className={cn('flex h-10 w-10 items-center justify-center text-muted-foreground', className)}\n {...props}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n );\n },\n);\nPaginationEllipsis.displayName = 'PaginationEllipsis';\n\nconst PaginationPrevious = forwardRef<HTMLButtonElement, ButtonHTMLAttributes<HTMLButtonElement>>(\n ({ className, ...props }, ref) => {\n return (\n <Button ref={ref} variant=\"outline\" size=\"icon\" className={cn('h-10 w-10', className)} {...props}>\n <ChevronLeft className=\"h-4 w-4\" />\n <span className=\"sr-only\">Previous page</span>\n </Button>\n );\n },\n);\nPaginationPrevious.displayName = 'PaginationPrevious';\n\nconst PaginationNext = forwardRef<HTMLButtonElement, ButtonHTMLAttributes<HTMLButtonElement>>(\n ({ className, ...props }, ref) => {\n return (\n <Button ref={ref} variant=\"outline\" size=\"icon\" className={cn('h-10 w-10', className)} {...props}>\n <ChevronRight className=\"h-4 w-4\" />\n <span className=\"sr-only\">Next page</span>\n </Button>\n );\n },\n);\nPaginationNext.displayName = 'PaginationNext';\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-JU6SBF3C.cjs","../src/utils/content-ref-groups.ts","../src/utils/suggestion-url.ts","../src/components/pagination.tsx"],"names":[],"mappings":"AAAA,6rBAAY;AACZ;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACA;ACqCO,IAAM,mBAAA,EAA4D;AAAA,EACvE,eAAA,EAAiB,EAAE,KAAA,EAAO,kBAAA,EAAoB,KAAA,EAAO,CAAA,EAAG,MAAA,EAAQ,MAAA,EAAQ,QAAA,EAAU,UAAU,CAAA;AAAA,EAC5F,eAAA,EAAiB,EAAE,KAAA,EAAO,kBAAA,EAAoB,KAAA,EAAO,CAAA,EAAG,MAAA,EAAQ,MAAA,EAAQ,QAAA,EAAU,KAAK,CAAA;AAAA,EACvF,OAAA,EAAS,EAAE,KAAA,EAAO,UAAA,EAAY,KAAA,EAAO,CAAA,EAAG,MAAA,EAAQ,MAAA,EAAQ,QAAA,EAAU,UAAU,CAAA;AAAA,EAC5E,OAAA,EAAS,EAAE,KAAA,EAAO,UAAA,EAAY,KAAA,EAAO,CAAA,EAAG,MAAA,EAAQ,MAAA,EAAQ,QAAA,EAAU,UAAU,CAAA;AAAA,EAC5E,UAAA,EAAY,EAAE,KAAA,EAAO,cAAA,EAAgB,KAAA,EAAO,CAAA,EAAG,M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,UAAA;AACA,UAAA;AACA,UAAA;AACA,UAAA;AACA,UAAA;AAEC,UAAA;AAAA,QAAA;AACH,MAAA;AAGL,IAAA;AAED,oBAAA;AACG,MAAA;AAAA,MAAA;AACC,QAAA;AACA,QAAA;AACA,QAAA;AACA,QAAA;AACA,QAAA;AACA,QAAA;AAEA,QAAA;AAAA,0BAAA;AACA,0BAAA;AAAmC,QAAA;AAAA,MAAA;AAEvC,IAAA;AAEJ,EAAA;AAEJ;AAEM;AACD,EAAA;AACD,IAAA;AACF,EAAA;AACF;AACA;AAEM;AACG,EAAA;AACR;AACD;AAEM;AACD,EAAA;AACD,IAAA;AACG,MAAA;AAAA,MAAA;AACC,QAAA;AACA,QAAA;AACE,UAAA;AACA,UAAA;AACF,QAAA;AACC,QAAA;AAAG,MAAA;AACN,IAAA;AAEJ,EAAA;AACF;AACA;AAEM;AACD,EAAA;AACD,IAAA;AACG,MAAA;AAAA,MAAA;AACC,QAAA;AACA,QAAA;AACC,QAAA;AAED,QAAA;AAAA,0BAAA;AACA,0BAAA;AAAoC,QAAA;AAAA,MAAA;AACtC,IAAA;AAEJ,EAAA;AACF;AACA;AAEM;AACD,EAAA;AACD,IAAA;AAEI,sBAAA;AACA,sBAAA;AACF,IAAA;AAEJ,EAAA;AACF;AACA;AAEM;AACD,EAAA;AACD,IAAA;AAEI,sBAAA;AACA,sBAAA;AACF,IAAA;AAEJ,EAAA;AACF;AACA;AHKU;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-JU6SBF3C.cjs","sourcesContent":[null,"/**\n * Content Ref Group Configuration\n *\n * Single source of truth for grouping content_refs by type. Used by both:\n * - components/related-content (detail page rail — lives in this lib)\n * - the hub's lib/utils/investor-email-utils.ts (email builder, via the\n * hub's re-export shim at lib/config/content-ref-groups.ts)\n *\n * Lives in utils/ (server-safe tsup block) so hub server-side code can\n * import it.\n *\n * Each entry carries the metadata RelatedContentSection needs to render the\n * group WITHOUT re-implementing per-type logic locally:\n * - `label`: section heading.\n * - `order`: source-stable ordering (lowest first).\n * - `layout`: 'list' (one-per-row, full-width cards) or 'grid' (responsive\n * column grid).\n * - `gridSize`: card-size variant passed to the per-type card dispatch.\n * `'lg'` matches the canonical large-card variant openframe + flamingo\n * apps already use; `'default'` is the legacy denser variant. New types\n * should pick `'lg'` whenever the card has a large variant.\n *\n * Adding a new content type = one entry here. RelatedContentSection picks up\n * the new group automatically (no hardcoded set to update). NOTE: the hub's\n * related-content SUGGESTION candidate list is DERIVED from these keys (minus\n * an explicit exclusion knob) — a new entry here becomes a suggestion\n * candidate iff it also resolves through the hub's TYPE_TO_ENTITY → RAG\n * config chain (unresolvable entries are dropped loudly at module load).\n */\n\nexport type ContentRefLayout = 'list' | 'grid';\n\n/** Subset of `EntityCardSize` (entity-card dispatch) appropriate for\n * grid/list rendering in RelatedContentSection. Duplicated as a literal\n * union here to avoid a config→component import cycle. Kept in lockstep\n * with `EntityCardSize`; widen here when a new size is added there. */\nexport type ContentRefGridSize = 'lg' | 'default' | 'sm';\n\nexport interface ContentRefGroupConfig {\n label: string;\n order: number;\n layout: ContentRefLayout;\n gridSize: ContentRefGridSize;\n}\n\nexport const CONTENT_REF_GROUPS: Record<string, ContentRefGroupConfig> = {\n investor_update: { label: 'Investor Updates', order: 1, layout: 'grid', gridSize: 'default' },\n product_release: { label: 'Product Releases', order: 2, layout: 'list', gridSize: 'lg' },\n podcast: { label: 'Podcasts', order: 3, layout: 'list', gridSize: 'default' },\n webinar: { label: 'Webinars', order: 4, layout: 'list', gridSize: 'default' },\n case_study: { label: 'Case Studies', order: 5, layout: 'grid', gridSize: 'default' },\n event: { label: 'Events', order: 6, layout: 'list', gridSize: 'default' },\n blog_post_existing: { label: 'Blog Posts', order: 7, layout: 'grid', gridSize: 'default' },\n customer_interview: { label: 'Customer Interviews', order: 8, layout: 'grid', gridSize: 'default' },\n onboarding_guide: { label: 'Onboarding Guides', order: 9, layout: 'list', gridSize: 'default' },\n what_i_shipped: { label: 'What I Shipped', order: 10, layout: 'grid', gridSize: 'default' },\n how_i_work: { label: 'How I Work', order: 11, layout: 'grid', gridSize: 'default' },\n ai_prompt: { label: 'Squawkbox', order: 12, layout: 'grid', gridSize: 'default' },\n};\n\n/** Human-readable label for a content_ref `type`. Returns null when the type\n * isn't registered — caller decides the fallback. Use `getContentRefLabelOrTitleCase`\n * to get a consistent title-cased fallback across all surfaces. */\nexport function getContentRefLabel(type: string): string | null {\n return CONTENT_REF_GROUPS[type]?.label ?? null;\n}\n\n/** Resolved label with a single shared fallback shape — title-cased version\n * of the raw type string for any unregistered type. Both RelatedContentSection\n * AND the investor-email builder consume this so cross-surface label rendering\n * for unregistered types is identical (no drift between \"podcast guest\" and\n * \"Podcast Guest\"). */\nexport function getContentRefLabelOrTitleCase(type: string): string {\n return CONTENT_REF_GROUPS[type]?.label ?? type.replace(/_/g, ' ').replace(/\\b\\w/g, ch => ch.toUpperCase());\n}\n\n/** Sort a set of present content_ref types into the canonical group order\n * (registered types first in CONTENT_REF_GROUPS `order`, then unregistered\n * types appended in insertion order). Used by RelatedContentSection AND the\n * investor-email builder so cross-surface ordering stays identical. */\nexport function orderContentRefTypes(present: Iterable<string>): string[] {\n const presentSet = new Set(present);\n const registeredInOrder = Object.entries(CONTENT_REF_GROUPS)\n .sort(([, a], [, b]) => a.order - b.order)\n .map(([type]) => type)\n .filter(type => presentSet.has(type));\n const unregistered = [...presentSet].filter(type => !CONTENT_REF_GROUPS[type]);\n return [...registeredInOrder, ...unregistered];\n}\n","/**\n * Shared fetch-URL composer for the two suggestion sections (FaqSection +\n * RelatedContentSection) — ONE owner of the entityType/entityId/count query\n * shape so the sections can never drift. Pure + server-safe.\n *\n * Byte-parity contract with the original `buildFaqsUrl`: when only\n * entityType/entityId are set, the param order is `entityType`, `entityId`;\n * with nothing set, the bare `path` is returned (no `?`).\n */\nexport interface SuggestionUrlOptions {\n /** Fetch-URL prefix for third-party embeds / reverse proxies\n * ('' = same-origin relative). */\n apiBaseUrl?: string;\n /** Both required together for entity scope; partial → bare path. */\n entityType?: string;\n entityId?: number | string;\n /** Maps to the server's `count` param. Undefined → param not sent\n * (server default applies). */\n count?: number;\n /** Extra query params appended after the shared trio (e.g. the\n * related-content `excludeTypes` deny-list). Empty/undefined values\n * are skipped. */\n extraParams?: Record<string, string | undefined>;\n}\n\nexport function buildSuggestionUrl(path: string, opts: SuggestionUrlOptions = {}): string {\n const qs = new URLSearchParams();\n const { entityType, entityId } = opts;\n if (entityType && entityId !== undefined && entityId !== null && entityId !== '') {\n qs.set('entityType', entityType);\n qs.set('entityId', String(entityId));\n }\n if (opts.count !== undefined) qs.set('count', String(opts.count));\n for (const [key, value] of Object.entries(opts.extraParams ?? {})) {\n if (value !== undefined && value !== '') qs.set(key, value);\n }\n const query = qs.toString();\n return `${opts.apiBaseUrl ?? ''}${path}${query ? `?${query}` : ''}`;\n}\n","'use client';\n\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';\nimport { type ButtonHTMLAttributes, type HTMLAttributes, forwardRef } from 'react';\nimport { cn } from '../utils/cn';\nimport { Button } from './ui/button';\n\ninterface PaginationProps {\n currentPage: number;\n totalPages: number;\n onPageChange: (page: number) => void;\n className?: string;\n}\n\nconst Pagination = ({ currentPage, totalPages, onPageChange, className }: PaginationProps) => {\n // Generate page numbers to display\n const getPageNumbers = () => {\n const pages = [];\n const maxPagesToShow = 5;\n\n if (totalPages <= maxPagesToShow) {\n // Show all pages if there are fewer than maxPagesToShow\n for (let i = 1; i <= totalPages; i++) {\n pages.push(i);\n }\n } else {\n // Always show first page\n pages.push(1);\n\n // Calculate start and end of page range\n let start = Math.max(2, currentPage - 1);\n let end = Math.min(totalPages - 1, currentPage + 1);\n\n // Adjust if at the beginning or end\n if (currentPage <= 2) {\n end = Math.min(totalPages - 1, 4);\n } else if (currentPage >= totalPages - 1) {\n start = Math.max(2, totalPages - 3);\n }\n\n // Add ellipsis if needed\n if (start > 2) {\n pages.push(-1); // -1 represents ellipsis\n }\n\n // Add middle pages\n for (let i = start; i <= end; i++) {\n pages.push(i);\n }\n\n // Add ellipsis if needed\n if (end < totalPages - 1) {\n pages.push(-2); // -2 represents ellipsis\n }\n\n // Always show last page\n if (totalPages > 1) {\n pages.push(totalPages);\n }\n }\n\n return pages;\n };\n\n const pageNumbers = getPageNumbers();\n\n return (\n <nav role=\"navigation\" aria-label=\"pagination\" className={cn('mx-auto flex w-full justify-center', className)}>\n <ul className=\"flex flex-row items-center gap-1\">\n <li>\n <Button\n variant=\"outline\"\n size=\"icon\"\n onClick={() => onPageChange(currentPage - 1)}\n disabled={currentPage === 1}\n aria-label=\"Go to previous page\"\n className=\"!h-10 !w-10 md:!h-10 md:!w-10\"\n >\n <ChevronLeft className=\"h-4 w-4\" />\n </Button>\n </li>\n\n {pageNumbers.map((page, index) => {\n if (page < 0) {\n // Render ellipsis\n return (\n <li key={`ellipsis-${index}`}>\n <span className=\"flex h-9 w-9 items-center justify-center text-muted-foreground text-h6\">\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n </li>\n );\n }\n\n return (\n <li key={page}>\n <Button\n variant={currentPage === page ? 'accent' : 'outline'}\n size=\"icon\"\n onClick={() => onPageChange(page)}\n className=\"!h-9 !w-9 md:!h-9 md:!w-9\"\n aria-label={`Page ${page}`}\n aria-current={currentPage === page ? 'page' : undefined}\n >\n {page}\n </Button>\n </li>\n );\n })}\n\n <li>\n <Button\n variant=\"outline\"\n size=\"icon\"\n onClick={() => onPageChange(currentPage + 1)}\n disabled={currentPage === totalPages}\n aria-label=\"Go to next page\"\n className=\"!h-10 !w-10 md:!h-10 md:!w-10\"\n >\n <ChevronRight className=\"h-4 w-4\" />\n <span className=\"sr-only\">Next page</span>\n </Button>\n </li>\n </ul>\n </nav>\n );\n};\n\nconst PaginationContent = forwardRef<HTMLUListElement, HTMLAttributes<HTMLUListElement>>(\n ({ className, ...props }, ref) => {\n return <ul ref={ref} className={cn('flex items-center justify-center', className)} {...props} />;\n },\n);\nPaginationContent.displayName = 'PaginationContent';\n\nconst PaginationItem = forwardRef<HTMLLIElement, HTMLAttributes<HTMLLIElement>>(({ className, ...props }, ref) => {\n return <li ref={ref} className={cn('', className)} {...props} />;\n});\nPaginationItem.displayName = 'PaginationItem';\n\nconst PaginationLink = forwardRef<HTMLButtonElement, ButtonHTMLAttributes<HTMLButtonElement>>(\n ({ className, ...props }, ref) => {\n return (\n <button\n ref={ref}\n className={cn(\n 'inline-flex h-10 w-10 items-center justify-center rounded-md border border-input bg-background transition-colors text-h6 hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',\n className,\n )}\n {...props}\n />\n );\n },\n);\nPaginationLink.displayName = 'PaginationLink';\n\nconst PaginationEllipsis = forwardRef<HTMLSpanElement, HTMLAttributes<HTMLSpanElement>>(\n ({ className, ...props }, ref) => {\n return (\n <span\n ref={ref}\n className={cn('flex h-10 w-10 items-center justify-center text-muted-foreground', className)}\n {...props}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n );\n },\n);\nPaginationEllipsis.displayName = 'PaginationEllipsis';\n\nconst PaginationPrevious = forwardRef<HTMLButtonElement, ButtonHTMLAttributes<HTMLButtonElement>>(\n ({ className, ...props }, ref) => {\n return (\n <Button ref={ref} variant=\"outline\" size=\"icon\" className={cn('h-10 w-10', className)} {...props}>\n <ChevronLeft className=\"h-4 w-4\" />\n <span className=\"sr-only\">Previous page</span>\n </Button>\n );\n },\n);\nPaginationPrevious.displayName = 'PaginationPrevious';\n\nconst PaginationNext = forwardRef<HTMLButtonElement, ButtonHTMLAttributes<HTMLButtonElement>>(\n ({ className, ...props }, ref) => {\n return (\n <Button ref={ref} variant=\"outline\" size=\"icon\" className={cn('h-10 w-10', className)} {...props}>\n <ChevronRight className=\"h-4 w-4\" />\n <span className=\"sr-only\">Next page</span>\n </Button>\n );\n },\n);\nPaginationNext.displayName = 'PaginationNext';\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n"]}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createSseSubscription
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-T36DLNMO.js";
|
|
5
5
|
import {
|
|
6
6
|
useChatIdentity
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-X7LGHPH5.js";
|
|
8
8
|
import {
|
|
9
9
|
embedAuthedFetch
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LZLT67PE.js";
|
|
11
11
|
import {
|
|
12
12
|
useChatRuntime
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3SMLYVM2.js";
|
|
14
14
|
|
|
15
15
|
// src/components/tickets/ticket-live-provider.tsx
|
|
16
16
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -275,4 +275,4 @@ export {
|
|
|
275
275
|
TICKET_MARK_READ_DEBOUNCE_MS,
|
|
276
276
|
TOAST_COPY
|
|
277
277
|
};
|
|
278
|
-
//# sourceMappingURL=chunk-
|
|
278
|
+
//# sourceMappingURL=chunk-JZVSQT2V.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
contentFetch
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MT5A25AX.js";
|
|
5
5
|
|
|
6
6
|
// src/hooks/use-self-fetch.ts
|
|
7
7
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -83,4 +83,4 @@ function useSelfFetch(url, options) {
|
|
|
83
83
|
export {
|
|
84
84
|
useSelfFetch
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=chunk-
|
|
86
|
+
//# sourceMappingURL=chunk-KKSSA4CS.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
EmbedViewerFrame
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-T36DLNMO.js";
|
|
5
5
|
import {
|
|
6
6
|
toGoogleSheetsEmbedUrl,
|
|
7
7
|
toGoogleSheetsOriginalUrl
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FRQ2DE5Z.js";
|
|
9
9
|
import {
|
|
10
10
|
AdobePdfIcon,
|
|
11
11
|
GoogleSheetsIcon
|
|
12
12
|
} from "./chunk-YQPPHBGE.js";
|
|
13
13
|
import {
|
|
14
14
|
formatFileSize
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3DWDJ54N.js";
|
|
16
16
|
import {
|
|
17
17
|
Button
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4HVWGYHI.js";
|
|
19
19
|
|
|
20
20
|
// src/components/embeds/file-download-card.tsx
|
|
21
21
|
import { FileText, Download } from "lucide-react";
|
|
@@ -124,4 +124,4 @@ export {
|
|
|
124
124
|
GoogleSheetsViewer,
|
|
125
125
|
PdfViewer
|
|
126
126
|
};
|
|
127
|
-
//# sourceMappingURL=chunk-
|
|
127
|
+
//# sourceMappingURL=chunk-KYIOOOQY.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useChatRuntime
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3SMLYVM2.js";
|
|
5
5
|
|
|
6
6
|
// src/hooks/ui/use-image-edge-color.ts
|
|
7
7
|
import { useState, useEffect } from "react";
|
|
@@ -700,4 +700,4 @@ export {
|
|
|
700
700
|
buildOgPlaceholderUrl,
|
|
701
701
|
useOgPlaceholderUrl
|
|
702
702
|
};
|
|
703
|
-
//# sourceMappingURL=chunk-
|
|
703
|
+
//# sourceMappingURL=chunk-LZLT67PE.js.map
|