@flamingo-stack/openframe-frontend-core 0.0.644 → 0.0.645-2219.6362.1
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-IXD6SHQ6.js → chunk-2SNL36JV.js} +6 -6
- package/dist/{chunk-FOSIR4QF.js → chunk-3DWDJ54N.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-UKV52KAP.cjs → chunk-3WLHNR2G.cjs} +44 -44
- package/dist/{chunk-UKV52KAP.cjs.map → chunk-3WLHNR2G.cjs.map} +1 -1
- package/dist/{chunk-FAD5WURS.cjs → chunk-4GZZYHG5.cjs} +124 -124
- package/dist/{chunk-FAD5WURS.cjs.map → chunk-4GZZYHG5.cjs.map} +1 -1
- package/dist/{chunk-4EEUB62O.js → chunk-4HVWGYHI.js} +2 -2
- package/dist/{chunk-RFFF2EYD.cjs → chunk-5F5WKIDW.cjs} +15 -15
- package/dist/{chunk-RFFF2EYD.cjs.map → chunk-5F5WKIDW.cjs.map} +1 -1
- package/dist/{chunk-G5U4JP45.js → chunk-5ONM3FHQ.js} +4 -4
- 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-C5Y5T6GC.cjs → chunk-AHC2CQDD.cjs} +20 -20
- package/dist/{chunk-C5Y5T6GC.cjs.map → chunk-AHC2CQDD.cjs.map} +1 -1
- package/dist/{chunk-MCQAOIUK.cjs → chunk-BH34E2RJ.cjs} +37 -37
- package/dist/{chunk-MCQAOIUK.cjs.map → chunk-BH34E2RJ.cjs.map} +1 -1
- package/dist/{chunk-TGUA3C4U.cjs → chunk-BWGV4TI5.cjs} +9 -9
- package/dist/{chunk-TGUA3C4U.cjs.map → chunk-BWGV4TI5.cjs.map} +1 -1
- package/dist/{chunk-I57XLISO.js → chunk-CLVJC6SI.js} +195 -15
- package/dist/chunk-CLVJC6SI.js.map +1 -0
- package/dist/{chunk-27RD5XTP.js → chunk-CYXV5HPV.js} +5 -5
- package/dist/{chunk-4WVWRFGP.js → chunk-DEIYPXGD.js} +9 -9
- 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-TTVOBWAH.js → chunk-EADBLRNF.js} +5 -5
- package/dist/{chunk-MRIOYSXH.js → chunk-EBDCDHOT.js} +5 -5
- package/dist/{chunk-RNMGKAS6.js → chunk-EDNZ2HN3.js} +15 -15
- 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-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-LPMDCQLL.js → chunk-H3EJDISW.js} +2 -2
- package/dist/{chunk-3DGRXC74.js → chunk-HQBC7YRF.js} +5 -5
- package/dist/{chunk-VE52MSYC.js → chunk-IERXOVIS.js} +8 -8
- 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-OMSUWB6A.cjs → chunk-K72YMLCU.cjs} +118 -118
- package/dist/{chunk-OMSUWB6A.cjs.map → chunk-K72YMLCU.cjs.map} +1 -1
- package/dist/{chunk-CBXZSTAG.cjs → chunk-KHHFMHYE.cjs} +973 -793
- package/dist/chunk-KHHFMHYE.cjs.map +1 -0
- package/dist/{chunk-F2KBCLUG.js → chunk-KKSSA4CS.js} +2 -2
- package/dist/{chunk-IIXB5REN.cjs → chunk-KL3Z26IS.cjs} +16 -16
- package/dist/{chunk-IIXB5REN.cjs.map → chunk-KL3Z26IS.cjs.map} +1 -1
- package/dist/{chunk-FKBM6U43.js → chunk-LZLT67PE.js} +2 -2
- package/dist/{chunk-B3Z3RJRW.js → chunk-M4AD2PHE.js} +5 -5
- package/dist/{chunk-BVQEU5JB.js → chunk-MT5A25AX.js} +2 -2
- package/dist/{chunk-UEXIMEVU.js → chunk-N7IAE3DN.js} +10 -10
- package/dist/{chunk-DCCY54LU.cjs → chunk-O2SLSYJC.cjs} +14 -14
- package/dist/{chunk-DCCY54LU.cjs.map → chunk-O2SLSYJC.cjs.map} +1 -1
- package/dist/{chunk-3UBT2OIX.cjs → chunk-O3YNMOIS.cjs} +74 -74
- package/dist/{chunk-3UBT2OIX.cjs.map → chunk-O3YNMOIS.cjs.map} +1 -1
- package/dist/{chunk-HOGOQA2X.js → chunk-O7LA444D.js} +3 -3
- package/dist/{chunk-PFV4DAX5.js → chunk-OBBAT4AU.js} +10 -10
- package/dist/{chunk-B5IFXCRF.cjs → chunk-OPNEE5XD.cjs} +41 -41
- package/dist/{chunk-B5IFXCRF.cjs.map → chunk-OPNEE5XD.cjs.map} +1 -1
- package/dist/chunk-OXB6LRBK.js +20 -0
- package/dist/chunk-OXB6LRBK.js.map +1 -0
- package/dist/{chunk-SKABQX44.js → chunk-QP7Z4EN7.js} +7 -7
- package/dist/{chunk-HPWLIYRL.js → chunk-REDPQ7F6.js} +14 -14
- package/dist/{chunk-OVXYX47B.cjs → chunk-TIYVK2BE.cjs} +19 -19
- package/dist/{chunk-OVXYX47B.cjs.map → chunk-TIYVK2BE.cjs.map} +1 -1
- 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-7Q5XXPCB.js → chunk-UF5VXOVZ.js} +14 -14
- package/dist/{chunk-65EVGKFV.cjs → chunk-UOOA73XL.cjs} +14 -14
- package/dist/{chunk-65EVGKFV.cjs.map → chunk-UOOA73XL.cjs.map} +1 -1
- 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-RB6L5EGM.cjs → chunk-WDFDZSAK.cjs} +1131 -1131
- package/dist/{chunk-RB6L5EGM.cjs.map → chunk-WDFDZSAK.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-S2KMNFFN.js → chunk-WWPANZTL.js} +7 -7
- package/dist/chunk-X7CEWD6V.cjs +20 -0
- package/dist/chunk-X7CEWD6V.cjs.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-EHAYNUOL.cjs → chunk-XOGD2AME.cjs} +3 -3
- package/dist/{chunk-EHAYNUOL.cjs.map → chunk-XOGD2AME.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-LZYPSDFE.cjs → chunk-ZC7BVCDJ.cjs} +90 -90
- package/dist/{chunk-LZYPSDFE.cjs.map → chunk-ZC7BVCDJ.cjs.map} +1 -1
- 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 +59 -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 +116 -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 +96 -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-IXD6SHQ6.js.map → chunk-2SNL36JV.js.map} +0 -0
- /package/dist/{chunk-FOSIR4QF.js.map → chunk-3DWDJ54N.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-KJWPAJRT.js.map → chunk-7EI3NES7.js.map} +0 -0
- /package/dist/{chunk-27RD5XTP.js.map → chunk-CYXV5HPV.js.map} +0 -0
- /package/dist/{chunk-4WVWRFGP.js.map → chunk-DEIYPXGD.js.map} +0 -0
- /package/dist/{chunk-TTVOBWAH.js.map → chunk-EADBLRNF.js.map} +0 -0
- /package/dist/{chunk-MRIOYSXH.js.map → chunk-EBDCDHOT.js.map} +0 -0
- /package/dist/{chunk-RNMGKAS6.js.map → chunk-EDNZ2HN3.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-LPMDCQLL.js.map → chunk-H3EJDISW.js.map} +0 -0
- /package/dist/{chunk-3DGRXC74.js.map → chunk-HQBC7YRF.js.map} +0 -0
- /package/dist/{chunk-VE52MSYC.js.map → chunk-IERXOVIS.js.map} +0 -0
- /package/dist/{chunk-KOLVBEW5.js.map → chunk-IWISVG4P.js.map} +0 -0
- /package/dist/{chunk-F2KBCLUG.js.map → chunk-KKSSA4CS.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-UEXIMEVU.js.map → chunk-N7IAE3DN.js.map} +0 -0
- /package/dist/{chunk-HOGOQA2X.js.map → chunk-O7LA444D.js.map} +0 -0
- /package/dist/{chunk-PFV4DAX5.js.map → chunk-OBBAT4AU.js.map} +0 -0
- /package/dist/{chunk-SKABQX44.js.map → chunk-QP7Z4EN7.js.map} +0 -0
- /package/dist/{chunk-HPWLIYRL.js.map → chunk-REDPQ7F6.js.map} +0 -0
- /package/dist/{chunk-7Q5XXPCB.js.map → chunk-UF5VXOVZ.js.map} +0 -0
- /package/dist/{chunk-S2KMNFFN.js.map → chunk-WWPANZTL.js.map} +0 -0
- /package/dist/{chunk-5JUTGEZE.js.map → chunk-XBTZOO74.js.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk77BLJHKIcjs = require('./chunk-77BLJHKI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkX7CEWD6Vcjs = require('./chunk-X7CEWD6V.cjs');
|
|
8
8
|
|
|
9
9
|
// src/components/persistent-pagination.tsx
|
|
10
10
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -20,7 +20,7 @@ function PersistentPagination({
|
|
|
20
20
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
23
|
-
className:
|
|
23
|
+
className: _chunkX7CEWD6Vcjs.cn.call(void 0,
|
|
24
24
|
"relative transition-all ease-in-out",
|
|
25
25
|
"flex items-center justify-center",
|
|
26
26
|
isLoading && "pointer-events-none",
|
|
@@ -44,7 +44,7 @@ function PersistentPagination({
|
|
|
44
44
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
|
-
className:
|
|
47
|
+
className: _chunkX7CEWD6Vcjs.cn.call(void 0, "relative transition-all ease-in-out", isLoading && "cursor-not-allowed"),
|
|
48
48
|
style: {
|
|
49
49
|
transitionDuration: `${transitionDuration}ms`
|
|
50
50
|
},
|
|
@@ -91,7 +91,7 @@ function PersistentPaginationWrapper({
|
|
|
91
91
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
92
92
|
"div",
|
|
93
93
|
{
|
|
94
|
-
className:
|
|
94
|
+
className: _chunkX7CEWD6Vcjs.cn.call(void 0,
|
|
95
95
|
"relative flex items-center justify-center transition-all ease-in-out",
|
|
96
96
|
(isPaginationDisabled || hasNoResults) && "pointer-events-none",
|
|
97
97
|
className
|
|
@@ -110,13 +110,13 @@ function PersistentPaginationWrapper({
|
|
|
110
110
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
111
111
|
"div",
|
|
112
112
|
{
|
|
113
|
-
className:
|
|
113
|
+
className: _chunkX7CEWD6Vcjs.cn.call(void 0, "relative transition-all ease-in-out", isPaginationDisabled && "cursor-not-allowed"),
|
|
114
114
|
style: {
|
|
115
115
|
transitionDuration: "300ms"
|
|
116
116
|
},
|
|
117
117
|
"aria-hidden": isPaginationDisabled,
|
|
118
118
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
119
|
-
|
|
119
|
+
_chunk77BLJHKIcjs.UnifiedPagination,
|
|
120
120
|
{
|
|
121
121
|
currentPage: displayCurrentPage,
|
|
122
122
|
totalPages: displayTotalPages,
|
|
@@ -136,4 +136,4 @@ function PersistentPaginationWrapper({
|
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
exports.PersistentPagination = PersistentPagination; exports.usePaginationLoading = usePaginationLoading; exports.PersistentPaginationWrapper = PersistentPaginationWrapper;
|
|
139
|
-
//# sourceMappingURL=chunk-
|
|
139
|
+
//# sourceMappingURL=chunk-WKX7DYFM.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-WKX7DYFM.cjs","../src/components/persistent-pagination.tsx"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACA;ACwFQ,+CAAA;AA/BD,SAAS,oBAAA,CAAqB;AAAA,EACnC,SAAA;AAAA,EACA,QAAA;AAAA,EACA,WAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,gBAAA,EAAkB,GAAA;AAAA,EAClB,mBAAA,EAAqB;AACvB,CAAA,EAA8B;AAI5B,EAAA,uBACE,8BAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,kCAAA;AAAA,QACT,qCAAA;AAAA,QACA,kCAAA;AAAA,QACA,UAAA,GAAa,qBAAA;AAAA,QACb;AAAA,MACF,CAAA;AAAA,MACA,KAAA,EAAO;AAAA,QACL,OAAA,EAAS,UAAA,EAAY,gBAAA,EAAkB,CAAA;AAAA,QACvC,kBAAA,EAAoB,CAAA,EAAA;AACtB,MAAA;AACK,MAAA;AACM,MAAA;AACA,MAAA;AACG,MAAA;AAGb,MAAA;AACC,QAAA;AAA0D,UAAA;AACJ,UAAA;AAAY,UAAA;AAAK,UAAA;AACvE,QAAA;AAIF,wBAAA;AAAC,UAAA;AAAA,UAAA;AACe,YAAA;AACP,YAAA;AACL,cAAA;AACF,YAAA;AACa,YAAA;AAEZ,YAAA;AAAA,UAAA;AACH,QAAA;AAAA,MAAA;AAAA,IAAA;AAGF,EAAA;AAEJ;AAKgB;AACR,EAAA;AAEkB,EAAA;AACT,IAAA;AACG,IAAA;AACK,IAAA;AACD,IAAA;AACtB,EAAA;AAE0B,EAAA;AACT,IAAA;AACU,MAAA;AACzB,IAAA;AACe,IAAA;AACjB,EAAA;AAEO,EAAA;AACL,IAAA;AACA,IAAA;AACA,IAAA;AACF,EAAA;AACF;AAcgB;AACd,EAAA;AACA,EAAA;AACA,EAAA;AACA,EAAA;AACA,EAAA;AACmC;AAGhB,EAAA;AACO,EAAA;AACC,EAAA;AAErB,EAAA;AACgB,EAAA;AAGpB,EAAA;AAAC,IAAA;AAAA,IAAA;AACY,MAAA;AACT,QAAA;AACC,QAAA;AACD,QAAA;AACF,MAAA;AACO,MAAA;AACI,QAAA;AACW,QAAA;AACtB,MAAA;AACK,MAAA;AACM,MAAA;AACA,MAAA;AACG,MAAA;AACI,MAAA;AAGhB,MAAA;AAAc,QAAA;AAShB,wBAAA;AAAC,UAAA;AAAA,UAAA;AACe,YAAA;AACP,YAAA;AACL,cAAA;AACF,YAAA;AACa,YAAA;AAKb,YAAA;AAAC,cAAA;AAAA,cAAA;AACc,gBAAA;AACD,gBAAA;AACZ,gBAAA;AAAiD,gBAAA;AAAA,cAAA;AACnD,YAAA;AAAA,UAAA;AACF,QAAA;AAAA,MAAA;AAAA,IAAA;AAGF,EAAA;AAEJ;ADvF6B;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-WKX7DYFM.cjs","sourcesContent":[null,"'use client';\n\nimport type { ReactNode } from 'react';\nimport { cn } from '../utils/cn';\nimport { UnifiedPagination } from './unified-pagination';\n\ninterface PersistentPaginationProps {\n /**\n * Whether pagination is currently in a loading state\n */\n isLoading: boolean;\n /**\n * The pagination component\n */\n children: ReactNode;\n /**\n * Current page number\n */\n currentPage: number;\n /**\n * Total number of pages\n */\n totalPages: number;\n /**\n * Additional CSS classes\n */\n className?: string;\n /**\n * Disabled opacity (0-1)\n */\n disabledOpacity?: number;\n /**\n * Transition duration in milliseconds\n */\n transitionDuration?: number;\n /**\n * Whether to show loading state in pagination\n */\n showLoadingState?: boolean;\n}\n\n/**\n * PersistentPagination\n *\n * A wrapper component that keeps pagination visible during loading states\n * but provides visual feedback that it's temporarily disabled.\n *\n * Features:\n * - Maintains pagination visibility during content loading\n * - Disables interaction but preserves layout\n * - Shows current page context even when loading\n * - Provides accessibility support for loading states\n * - Smooth transitions between enabled/disabled states\n *\n * Usage:\n * ```tsx\n * <PersistentPagination\n * isLoading={isLoadingVendors}\n * currentPage={currentPage}\n * totalPages={totalPages}\n * >\n * <Pagination currentPage={currentPage} totalPages={totalPages} />\n * </PersistentPagination>\n * ```\n */\nexport function PersistentPagination({\n isLoading,\n children,\n currentPage,\n totalPages,\n className,\n disabledOpacity = 0.5,\n transitionDuration = 300,\n}: PersistentPaginationProps) {\n // ALWAYS show pagination for predictable layout - just gray it out when not needed\n // Removed condition that hides pagination completely\n\n return (\n <div\n className={cn(\n 'relative transition-all ease-in-out',\n 'flex items-center justify-center',\n isLoading && 'pointer-events-none',\n className,\n )}\n style={{\n opacity: isLoading ? disabledOpacity : 1,\n transitionDuration: `${transitionDuration}ms`,\n }}\n role=\"navigation\"\n aria-label=\"Pagination\"\n aria-busy={isLoading}\n data-loading={isLoading}\n >\n {/* Loading state announcement for screen readers */}\n {isLoading && (\n <div className=\"sr-only\" role=\"status\" aria-live=\"polite\">\n Pagination temporarily disabled while loading page {currentPage} of {totalPages}\n </div>\n )}\n\n {/* Pagination controls with disabled state */}\n <div\n className={cn('relative transition-all ease-in-out', isLoading && 'cursor-not-allowed')}\n style={{\n transitionDuration: `${transitionDuration}ms`,\n }}\n aria-hidden={isLoading}\n >\n {children}\n </div>\n\n {/* REMOVED: Loading overlay - only card skeletons should show during loading */}\n </div>\n );\n}\n\n/**\n * Hook for managing pagination loading states\n */\nexport function usePaginationLoading(isLoading: boolean, currentPage: number, totalPages: number) {\n const shouldShowPagination = totalPages > 1 || isLoading;\n\n const paginationProps = {\n 'aria-busy': isLoading,\n 'data-loading': isLoading,\n 'data-current-page': currentPage,\n 'data-total-pages': totalPages,\n };\n\n const getLoadingMessage = () => {\n if (isLoading) {\n return `Loading page ${currentPage} of ${totalPages}`;\n }\n return `Page ${currentPage} of ${totalPages}`;\n };\n\n return {\n shouldShowPagination,\n paginationProps,\n getLoadingMessage,\n };\n}\n\n/**\n * Enhanced pagination component that includes loading states\n */\ninterface PersistentPaginationWrapperProps {\n isLoading: boolean;\n currentPage: number;\n totalPages: number;\n onPageChange?: (page: number) => void;\n className?: string;\n variant?: 'vendor' | 'blog';\n}\n\nexport function PersistentPaginationWrapper({\n isLoading,\n currentPage,\n totalPages,\n onPageChange,\n className,\n}: PersistentPaginationWrapperProps) {\n // ALWAYS show pagination for predictable layout\n // For no results (totalPages = 0), show grayed out pagination\n const hasResults = totalPages > 0;\n const displayTotalPages = hasResults ? totalPages : 1;\n const displayCurrentPage = hasResults ? currentPage : 1;\n // Only disable during loading, but still show when no results (just grayed out)\n const isPaginationDisabled = isLoading;\n const hasNoResults = !hasResults && !isLoading;\n\n return (\n <div\n className={cn(\n 'relative flex items-center justify-center transition-all ease-in-out',\n (isPaginationDisabled || hasNoResults) && 'pointer-events-none',\n className,\n )}\n style={{\n opacity: isPaginationDisabled ? 0.3 : hasNoResults ? 0.5 : 1,\n transitionDuration: '300ms',\n }}\n role=\"navigation\"\n aria-label=\"Pagination\"\n aria-busy={isLoading}\n data-loading={isLoading}\n data-has-results={hasResults}\n >\n {/* Loading/no results state announcement for screen readers */}\n {(isLoading || !hasResults) && (\n <div className=\"sr-only\" role=\"status\" aria-live=\"polite\">\n {isLoading\n ? `Pagination temporarily disabled while loading page ${displayCurrentPage} of ${displayTotalPages}`\n : `No results available - pagination disabled`}\n </div>\n )}\n\n {/* Pagination controls with disabled state */}\n <div\n className={cn('relative transition-all ease-in-out', isPaginationDisabled && 'cursor-not-allowed')}\n style={{\n transitionDuration: '300ms',\n }}\n aria-hidden={isPaginationDisabled}\n >\n {/* UnifiedPagination directly — Pagination and BlogPagination in\n multi-platform-hub are both thin wrappers around it, so the wrapper\n never has to be handed down from the consuming app. */}\n <UnifiedPagination\n currentPage={displayCurrentPage}\n totalPages={displayTotalPages}\n onPageChange={hasResults ? onPageChange : () => {}} // Provide empty function instead of undefined\n />\n </div>\n\n {/* REMOVED: Loading overlays - only card skeletons should show during loading */}\n </div>\n );\n}\n"]}
|
|
@@ -8,27 +8,27 @@ import {
|
|
|
8
8
|
SelectTrigger,
|
|
9
9
|
SelectValue,
|
|
10
10
|
Textarea
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-REDPQ7F6.js";
|
|
12
12
|
import {
|
|
13
13
|
useContactSubmission,
|
|
14
14
|
useHumanitySignals
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FRQ2DE5Z.js";
|
|
16
16
|
import {
|
|
17
17
|
Input,
|
|
18
18
|
RequiredMark
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IWISVG4P.js";
|
|
20
20
|
import {
|
|
21
21
|
ChatAttachmentAddButton,
|
|
22
22
|
ChatAttachmentChipStrip,
|
|
23
23
|
SECTION_HEADING_CLASS,
|
|
24
24
|
useChatAttachments
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CLVJC6SI.js";
|
|
26
26
|
import {
|
|
27
27
|
Label
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XBTZOO74.js";
|
|
29
29
|
import {
|
|
30
30
|
Button
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4HVWGYHI.js";
|
|
32
32
|
|
|
33
33
|
// src/components/contact/contact-form.tsx
|
|
34
34
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
@@ -376,4 +376,4 @@ function ContactForm({
|
|
|
376
376
|
export {
|
|
377
377
|
ContactForm
|
|
378
378
|
};
|
|
379
|
-
//# sourceMappingURL=chunk-
|
|
379
|
+
//# sourceMappingURL=chunk-WWPANZTL.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
// src/utils/cn.ts
|
|
4
|
+
var _clsx = require('clsx');
|
|
5
|
+
var _tailwindmerge = require('tailwind-merge');
|
|
6
|
+
var twMerge = _tailwindmerge.extendTailwindMerge.call(void 0, {
|
|
7
|
+
extend: {
|
|
8
|
+
classGroups: {
|
|
9
|
+
"ods-typography": ["text-h1", "text-h2", "text-h3", "text-h4", "text-h5", "text-h6", "text-code", "text-badge"]
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
function cn(...inputs) {
|
|
14
|
+
return twMerge(_clsx.clsx.call(void 0, inputs));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
exports.cn = cn;
|
|
20
|
+
//# sourceMappingURL=chunk-X7CEWD6V.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-X7CEWD6V.cjs","../src/utils/cn.ts"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACA;ACFA,4BAAsC;AACtC,+CAAoC;AAmBpC,IAAM,QAAA,EAAU,gDAAA;AAAsC,EACpD,MAAA,EAAQ;AAAA,IACN,WAAA,EAAa;AAAA,MACX,gBAAA,EAAkB,CAAC,SAAA,EAAW,SAAA,EAAW,SAAA,EAAW,SAAA,EAAW,SAAA,EAAW,SAAA,EAAW,WAAA,EAAa,YAAY;AAAA,IAChH;AAAA,EACF;AACF,CAAC,CAAA;AAKM,SAAS,EAAA,CAAA,GAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,wBAAA,MAAW,CAAC,CAAA;AAC7B;ADlBA;AACA;AACE;AACF,gBAAC","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-X7CEWD6V.cjs","sourcesContent":[null,"import { clsx, type ClassValue } from 'clsx';\nimport { extendTailwindMerge } from 'tailwind-merge';\n\n/**\n * EVERY custom `text-*` utility we add in `tailwind.config.ts` MUST be listed here.\n *\n * tailwind-merge has no knowledge of our utilities, and `text-<word>` is\n * indistinguishable from a text COLOUR to it. So an unlisted `text-badge` gets\n * filed in tailwind-merge's `text-color` group, where it and any real colour\n * class silently annihilate each other — last one wins, the other is dropped\n * from the output entirely:\n *\n * cn('text-badge', 'text-ods-text-on-accent') -> 'text-ods-text-on-accent' (size lost)\n * cn('text-[--some-colour]', 'text-badge') -> 'text-badge' (colour lost)\n *\n * Listing them in their own group makes them non-conflicting with colours, so\n * both survive. This is why `text-h1`…`text-h6` are here; `text-code` and\n * `text-badge` were added to the config later and missing them shipped exactly\n * the two failures above (huge badges, and badge text losing its colour).\n */\nconst twMerge = extendTailwindMerge<'ods-typography'>({\n extend: {\n classGroups: {\n 'ods-typography': ['text-h1', 'text-h2', 'text-h3', 'text-h4', 'text-h5', 'text-h6', 'text-code', 'text-badge'],\n },\n },\n});\n\n/**\n * Combine class names with Tailwind's merge utility\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
cn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OXB6LRBK.js";
|
|
5
5
|
|
|
6
6
|
// src/components/ui/label.tsx
|
|
7
7
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
@@ -302,4 +302,4 @@ export {
|
|
|
302
302
|
SkeletonList,
|
|
303
303
|
SkeletonNavigation
|
|
304
304
|
};
|
|
305
|
-
//# sourceMappingURL=chunk-
|
|
305
|
+
//# sourceMappingURL=chunk-XBTZOO74.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
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 _chunkDOVVKQMZcjs = require('./chunk-DOVVKQMZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkJU6SBF3Ccjs = require('./chunk-JU6SBF3C.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkVTYP25OWcjs = require('./chunk-VTYP25OW.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -41,7 +41,7 @@ var _chunkCCWI3622cjs = require('./chunk-CCWI3622.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkEX5PJGVAcjs = require('./chunk-EX5PJGVA.cjs');
|
|
45
45
|
|
|
46
46
|
// src/components/related-content/related-content-section.tsx
|
|
47
47
|
var _react = require('react');
|
|
@@ -419,13 +419,13 @@ function cardEntry(definition) {
|
|
|
419
419
|
}
|
|
420
420
|
function programEntry(configKey) {
|
|
421
421
|
return cardEntry({
|
|
422
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
422
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.ProgramCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
423
423
|
decode: decodeProgramRow,
|
|
424
424
|
render: (item, ctx) => {
|
|
425
425
|
const config = _optionalChain([ctx, 'access', _2 => _2.extras, 'optionalAccess', _3 => _3.programConfigs, 'optionalAccess', _4 => _4[configKey]]);
|
|
426
426
|
if (!config) return null;
|
|
427
427
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
428
|
-
|
|
428
|
+
_chunkEX5PJGVAcjs.ProgramCard,
|
|
429
429
|
{
|
|
430
430
|
config,
|
|
431
431
|
item,
|
|
@@ -441,10 +441,10 @@ function programEntry(configKey) {
|
|
|
441
441
|
}
|
|
442
442
|
function roadmapEntry(cardType) {
|
|
443
443
|
return cardEntry({
|
|
444
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
444
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.RoadmapCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
445
445
|
decode: decodeRoadmapRow,
|
|
446
446
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
447
|
-
|
|
447
|
+
_chunkEX5PJGVAcjs.RoadmapCard,
|
|
448
448
|
{
|
|
449
449
|
item,
|
|
450
450
|
href: ctx.href,
|
|
@@ -461,10 +461,10 @@ function roadmapEntry(cardType) {
|
|
|
461
461
|
}
|
|
462
462
|
var RELATED_CARD_REGISTRY = {
|
|
463
463
|
blog_post_existing: cardEntry({
|
|
464
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
464
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.BlogCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
465
465
|
decode: decodeBlogRow,
|
|
466
466
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
467
|
-
|
|
467
|
+
_chunkEX5PJGVAcjs.BlogCard,
|
|
468
468
|
{
|
|
469
469
|
post,
|
|
470
470
|
size: ctx.legacySize,
|
|
@@ -476,10 +476,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
476
476
|
)
|
|
477
477
|
}),
|
|
478
478
|
case_study: cardEntry({
|
|
479
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
479
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.CaseStudyCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
480
480
|
decode: decodeCaseStudyRow,
|
|
481
481
|
render: (study, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
482
|
-
|
|
482
|
+
_chunkEX5PJGVAcjs.CaseStudyCard,
|
|
483
483
|
{
|
|
484
484
|
study,
|
|
485
485
|
size: ctx.legacySize,
|
|
@@ -491,10 +491,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
491
491
|
)
|
|
492
492
|
}),
|
|
493
493
|
customer_interview: cardEntry({
|
|
494
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
494
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.CustomerInterviewCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
495
495
|
decode: decodeCustomerInterviewRow,
|
|
496
496
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
497
|
-
|
|
497
|
+
_chunkEX5PJGVAcjs.CustomerInterviewCard,
|
|
498
498
|
{
|
|
499
499
|
interview,
|
|
500
500
|
size: ctx.legacySize,
|
|
@@ -512,13 +512,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
512
512
|
* record, and the three props the rail sets itself are read off it.
|
|
513
513
|
*/
|
|
514
514
|
product_release: cardEntry({
|
|
515
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
515
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.ProductReleaseCardSkeleton, { size: size === "sm" ? "sm" : "lg" }),
|
|
516
516
|
decode: asRecord,
|
|
517
517
|
render: (release, ctx) => {
|
|
518
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _5 => _5.extras, 'optionalAccess', _6 => _6.buildProductReleaseCardProps]), () => (
|
|
518
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _5 => _5.extras, 'optionalAccess', _6 => _6.buildProductReleaseCardProps]), () => ( _chunkEX5PJGVAcjs.buildProductReleaseCardProps));
|
|
519
519
|
const releaseProps = buildReleaseProps(release);
|
|
520
520
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
521
|
-
|
|
521
|
+
_chunkEX5PJGVAcjs.ProductReleaseCard,
|
|
522
522
|
{
|
|
523
523
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
524
524
|
title: str(release, "title"),
|
|
@@ -534,10 +534,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
534
534
|
webinar: programEntry("webinar"),
|
|
535
535
|
event: programEntry("event"),
|
|
536
536
|
investor_update: cardEntry({
|
|
537
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
537
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.InvestorUpdateCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
538
538
|
decode: decodeInvestorUpdateRow,
|
|
539
539
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
540
|
-
|
|
540
|
+
_chunkEX5PJGVAcjs.InvestorUpdateCard,
|
|
541
541
|
{
|
|
542
542
|
update,
|
|
543
543
|
size: ctx.legacySize,
|
|
@@ -552,10 +552,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
552
552
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
553
553
|
* section" rail, not this full-width row. */
|
|
554
554
|
onboarding_guide: cardEntry({
|
|
555
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
555
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.OnboardingGuideCardSkeleton, { size: size === "sm" ? "sm" : "catalog" }),
|
|
556
556
|
decode: decodeOnboardingGuideRow,
|
|
557
557
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
558
|
-
|
|
558
|
+
_chunkEX5PJGVAcjs.OnboardingGuideCard,
|
|
559
559
|
{
|
|
560
560
|
guide,
|
|
561
561
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -572,10 +572,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
572
572
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
573
573
|
* card in a dead <a>. */
|
|
574
574
|
what_i_shipped: cardEntry({
|
|
575
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
575
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.WhatIShippedCardSkeleton, {}),
|
|
576
576
|
decode: decodeEmployeeEntryRow,
|
|
577
577
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
578
|
-
|
|
578
|
+
_chunkEX5PJGVAcjs.WhatIShippedCard,
|
|
579
579
|
{
|
|
580
580
|
entry,
|
|
581
581
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -585,10 +585,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
585
585
|
}),
|
|
586
586
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
587
587
|
how_i_work: cardEntry({
|
|
588
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
588
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.HowIWorkCardSkeleton, {}),
|
|
589
589
|
decode: decodeEmployeeEntryRow,
|
|
590
590
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
591
|
-
|
|
591
|
+
_chunkEX5PJGVAcjs.HowIWorkCard,
|
|
592
592
|
{
|
|
593
593
|
entry,
|
|
594
594
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -598,10 +598,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
598
598
|
}),
|
|
599
599
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
600
600
|
ai_prompt: cardEntry({
|
|
601
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
601
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.AiPromptCardSkeleton, {}),
|
|
602
602
|
decode: decodeEmployeeEntryRow,
|
|
603
603
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
604
|
-
|
|
604
|
+
_chunkEX5PJGVAcjs.AiPromptCard,
|
|
605
605
|
{
|
|
606
606
|
entry,
|
|
607
607
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -622,7 +622,7 @@ function DefaultLinkPropsProvider({
|
|
|
622
622
|
children
|
|
623
623
|
}) {
|
|
624
624
|
if (!href) return children(null);
|
|
625
|
-
const newTab =
|
|
625
|
+
const newTab = _chunkEX5PJGVAcjs.decideNewTab.call(void 0, { href, targetPlatform, currentSource: "" });
|
|
626
626
|
return children(newTab ? { href, target: "_blank", rel: "noopener noreferrer" } : { href });
|
|
627
627
|
}
|
|
628
628
|
function defaultResolveHref(ref) {
|
|
@@ -678,15 +678,15 @@ function CardForType({
|
|
|
678
678
|
function useGroupItems(type, refs, buildUrl) {
|
|
679
679
|
const ids = refs.map((r) => r.id);
|
|
680
680
|
const url = ids.length > 0 ? buildUrl(type, ids) : null;
|
|
681
|
-
const { data, isLoading } =
|
|
682
|
-
const items = data != null ?
|
|
681
|
+
const { data, isLoading } = _chunkDOVVKQMZcjs.useSelfFetch.call(void 0, url);
|
|
682
|
+
const items = data != null ? _chunkEX5PJGVAcjs.extractItems.call(void 0, data) : null;
|
|
683
683
|
return { items, isLoading };
|
|
684
684
|
}
|
|
685
685
|
function gridClassFor(columns) {
|
|
686
686
|
return columns === 3 ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6" : "grid grid-cols-1 sm:grid-cols-2 gap-6";
|
|
687
687
|
}
|
|
688
688
|
function resolveGroupConfig(type) {
|
|
689
|
-
return _nullishCoalesce(
|
|
689
|
+
return _nullishCoalesce(_chunkJU6SBF3Ccjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
690
690
|
label: type,
|
|
691
691
|
order: 999,
|
|
692
692
|
layout: "grid",
|
|
@@ -718,10 +718,10 @@ function ContentGroup({
|
|
|
718
718
|
setPage(1);
|
|
719
719
|
}
|
|
720
720
|
}, [refsKey]);
|
|
721
|
-
const totalGroupPages =
|
|
721
|
+
const totalGroupPages = _chunkVTYP25OWcjs.pageCount.call(void 0, refs.length, GROUP_PAGE_SIZE);
|
|
722
722
|
const safePage = Math.min(page, totalGroupPages);
|
|
723
723
|
const visibleGroupRefs = refs.length > GROUP_PAGE_SIZE ? refs.slice((safePage - 1) * GROUP_PAGE_SIZE, safePage * GROUP_PAGE_SIZE) : refs;
|
|
724
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
724
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJU6SBF3Ccjs.Pagination, { currentPage: safePage, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
725
725
|
if (isLoading && !items) {
|
|
726
726
|
const skeletons = visibleGroupRefs.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: renderSkeletonForType(type, cardSize, adminCampaignCard) }, r.id));
|
|
727
727
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
@@ -731,7 +731,7 @@ function ContentGroup({
|
|
|
731
731
|
}
|
|
732
732
|
if (!items || items.length === 0) return null;
|
|
733
733
|
const rowKey = (it) => {
|
|
734
|
-
const extracted =
|
|
734
|
+
const extracted = _chunkEX5PJGVAcjs.extractItemId.call(void 0, type, it);
|
|
735
735
|
if (extracted !== null) return extracted;
|
|
736
736
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
737
737
|
};
|
|
@@ -799,11 +799,11 @@ function RelatedContentSection({
|
|
|
799
799
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
800
800
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
801
801
|
};
|
|
802
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
802
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunkJU6SBF3Ccjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
803
803
|
apiBaseUrl,
|
|
804
804
|
extraParams: { authorId, ...typeFilterParams }
|
|
805
805
|
}) : null;
|
|
806
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
806
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunkJU6SBF3Ccjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
807
807
|
apiBaseUrl,
|
|
808
808
|
entityType,
|
|
809
809
|
entityId,
|
|
@@ -820,9 +820,9 @@ function RelatedContentSection({
|
|
|
820
820
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
821
821
|
[initialItems, suggestionsDisabled]
|
|
822
822
|
);
|
|
823
|
-
const { data, isLoading } =
|
|
823
|
+
const { data, isLoading } = _chunkDOVVKQMZcjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
824
824
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
825
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
825
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunkEX5PJGVAcjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
826
826
|
[buildListUrl2, apiBaseUrl]
|
|
827
827
|
);
|
|
828
828
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _10 => _10.refs]))), () => ( []));
|
|
@@ -847,12 +847,12 @@ function RelatedContentSection({
|
|
|
847
847
|
if (!grouped[ref.type]) grouped[ref.type] = [];
|
|
848
848
|
grouped[ref.type].push(ref);
|
|
849
849
|
}
|
|
850
|
-
let orderedTypes =
|
|
850
|
+
let orderedTypes = _chunkJU6SBF3Ccjs.orderContentRefTypes.call(void 0, Object.keys(grouped));
|
|
851
851
|
if (entityType) {
|
|
852
|
-
const canonicalEntityType =
|
|
853
|
-
const sameType = orderedTypes.filter((t) =>
|
|
852
|
+
const canonicalEntityType = _chunkEX5PJGVAcjs.canonicalContentRefType.call(void 0, entityType);
|
|
853
|
+
const sameType = orderedTypes.filter((t) => _chunkEX5PJGVAcjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
854
854
|
if (sameType.length > 0) {
|
|
855
|
-
orderedTypes = [...sameType, ...orderedTypes.filter((t) =>
|
|
855
|
+
orderedTypes = [...sameType, ...orderedTypes.filter((t) => _chunkEX5PJGVAcjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
@@ -868,7 +868,7 @@ function RelatedContentSection({
|
|
|
868
868
|
LinkProvider,
|
|
869
869
|
extras,
|
|
870
870
|
adminCampaignCard,
|
|
871
|
-
heading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children:
|
|
871
|
+
heading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: _chunkJU6SBF3Ccjs.getContentRefLabelOrTitleCase.call(void 0, type) })
|
|
872
872
|
},
|
|
873
873
|
type
|
|
874
874
|
))
|
|
@@ -879,4 +879,4 @@ function RelatedContentSection({
|
|
|
879
879
|
|
|
880
880
|
|
|
881
881
|
exports.GROUP_PAGE_SIZE = GROUP_PAGE_SIZE; exports.RelatedContentSection = RelatedContentSection;
|
|
882
|
-
//# sourceMappingURL=chunk-
|
|
882
|
+
//# sourceMappingURL=chunk-XGD6SCHN.cjs.map
|