@flamingo-stack/openframe-frontend-core 0.0.626 → 0.0.627
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-2CCIF5QV.js → chunk-25UWKNII.js} +10 -8
- package/dist/{chunk-2CCIF5QV.js.map → chunk-25UWKNII.js.map} +1 -1
- package/dist/{chunk-BVCWBA2U.js → chunk-2J7EFH4V.js} +817 -395
- package/dist/chunk-2J7EFH4V.js.map +1 -0
- package/dist/{chunk-X3LC6R37.js → chunk-32P6KUZP.js} +2 -2
- package/dist/{chunk-3LKJ6JWZ.cjs → chunk-4E3UZZ2J.cjs} +34 -34
- package/dist/{chunk-3LKJ6JWZ.cjs.map → chunk-4E3UZZ2J.cjs.map} +1 -1
- package/dist/{chunk-EHAYNUOL.cjs → chunk-4E7XCEV3.cjs} +77 -2
- package/dist/chunk-4E7XCEV3.cjs.map +1 -0
- package/dist/{chunk-KK7YEVTQ.js → chunk-4PIHIFJM.js} +4 -4
- package/dist/{chunk-VOBOO7EF.cjs → chunk-4SXZT7JP.cjs} +83 -83
- package/dist/{chunk-VOBOO7EF.cjs.map → chunk-4SXZT7JP.cjs.map} +1 -1
- package/dist/{chunk-ESSHEVZQ.cjs → chunk-53ARMJHM.cjs} +38 -38
- package/dist/chunk-53ARMJHM.cjs.map +1 -0
- package/dist/{chunk-Q5XGBLT5.cjs → chunk-55X46LKR.cjs} +509 -87
- package/dist/chunk-55X46LKR.cjs.map +1 -0
- package/dist/{chunk-DLZFFGQ7.js → chunk-5E55S5SI.js} +4 -4
- package/dist/{chunk-U7TTQV4N.cjs → chunk-6I3KNDBF.cjs} +3 -3
- package/dist/{chunk-U7TTQV4N.cjs.map → chunk-6I3KNDBF.cjs.map} +1 -1
- package/dist/{chunk-S6WBBSII.js → chunk-76HB456V.js} +5 -5
- package/dist/{chunk-Z42VU7HF.cjs → chunk-BC726XIQ.cjs} +49 -47
- package/dist/chunk-BC726XIQ.cjs.map +1 -0
- package/dist/{chunk-LJ7KMQRM.cjs → chunk-BJGAFPG5.cjs} +42 -42
- package/dist/{chunk-LJ7KMQRM.cjs.map → chunk-BJGAFPG5.cjs.map} +1 -1
- package/dist/{chunk-F4TAUCHQ.js → chunk-CAQ5MNLJ.js} +3 -3
- package/dist/{chunk-QR2FJE2C.js → chunk-CK2CPZXB.js} +12 -12
- package/dist/{chunk-YQCA4ZEJ.js → chunk-CMUNJZWN.js} +2 -2
- package/dist/{chunk-H7KQM3VI.js → chunk-DH3YH3TV.js} +8 -8
- package/dist/{chunk-E7YNDGRN.cjs → chunk-FR6EDA3P.cjs} +105 -105
- package/dist/{chunk-E7YNDGRN.cjs.map → chunk-FR6EDA3P.cjs.map} +1 -1
- package/dist/{chunk-QPQCQWAW.cjs → chunk-G46NJNTL.cjs} +28 -26
- package/dist/chunk-G46NJNTL.cjs.map +1 -0
- package/dist/{chunk-RQQAPCOU.js → chunk-G47XRVZA.js} +3 -3
- package/dist/{chunk-QJ6BCSFQ.cjs → chunk-GQ7267OV.cjs} +5 -5
- package/dist/{chunk-QJ6BCSFQ.cjs.map → chunk-GQ7267OV.cjs.map} +1 -1
- package/dist/{chunk-RVK3CL5S.js → chunk-HIZAMJPT.js} +12 -12
- package/dist/{chunk-DZ7CEES3.js → chunk-J6ATJUEE.js} +5 -5
- package/dist/{chunk-DZ7CEES3.js.map → chunk-J6ATJUEE.js.map} +1 -1
- package/dist/{chunk-5LIDR7HL.js → chunk-JRYS4VMV.js} +4 -79
- package/dist/{chunk-5LIDR7HL.js.map → chunk-JRYS4VMV.js.map} +1 -1
- package/dist/{chunk-RGMUA4XB.js → chunk-KXDYBRRR.js} +7 -7
- package/dist/{chunk-IJYP2DMW.js → chunk-L5FEAOGJ.js} +8 -354
- package/dist/chunk-L5FEAOGJ.js.map +1 -0
- package/dist/{chunk-L54LFB6V.cjs → chunk-N6XNJX25.cjs} +15 -15
- package/dist/{chunk-L54LFB6V.cjs.map → chunk-N6XNJX25.cjs.map} +1 -1
- package/dist/{chunk-WEDSYUSR.js → chunk-NLADJ4IX.js} +6 -6
- package/dist/{chunk-HTIDXF43.cjs → chunk-OAXASIVG.cjs} +7 -7
- package/dist/{chunk-HTIDXF43.cjs.map → chunk-OAXASIVG.cjs.map} +1 -1
- package/dist/{chunk-3IXDZI3R.cjs → chunk-P7UT2YSC.cjs} +3 -3
- package/dist/{chunk-3IXDZI3R.cjs.map → chunk-P7UT2YSC.cjs.map} +1 -1
- package/dist/{chunk-P7KIFYZI.js → chunk-PKSH6PAK.js} +10 -8
- package/dist/{chunk-P7KIFYZI.js.map → chunk-PKSH6PAK.js.map} +1 -1
- package/dist/{chunk-MZWSJPDZ.js → chunk-PTP5LSYM.js} +16 -28
- package/dist/{chunk-MZWSJPDZ.js.map → chunk-PTP5LSYM.js.map} +1 -1
- package/dist/{chunk-CPO5KPW6.cjs → chunk-QCSWM3VU.cjs} +9 -9
- package/dist/{chunk-CPO5KPW6.cjs.map → chunk-QCSWM3VU.cjs.map} +1 -1
- package/dist/{chunk-JJUV7Z4L.cjs → chunk-QIVX7F3N.cjs} +27 -27
- package/dist/{chunk-JJUV7Z4L.cjs.map → chunk-QIVX7F3N.cjs.map} +1 -1
- package/dist/{chunk-NZJNXGU2.cjs → chunk-R3SJ6PMI.cjs} +280 -292
- package/dist/chunk-R3SJ6PMI.cjs.map +1 -0
- package/dist/{chunk-2MMEPNSX.cjs → chunk-RAPPN6MN.cjs} +3 -3
- package/dist/{chunk-2MMEPNSX.cjs.map → chunk-RAPPN6MN.cjs.map} +1 -1
- package/dist/{chunk-S43SLJIN.cjs → chunk-SLT5C3PQ.cjs} +25 -25
- package/dist/{chunk-S43SLJIN.cjs.map → chunk-SLT5C3PQ.cjs.map} +1 -1
- package/dist/{chunk-FKBM6U43.js → chunk-USIRWQJ3.js} +76 -1
- package/dist/{chunk-FKBM6U43.js.map → chunk-USIRWQJ3.js.map} +1 -1
- package/dist/{chunk-CCWI3622.cjs → chunk-VOZZQ6HQ.cjs} +4 -4
- package/dist/{chunk-CCWI3622.cjs.map → chunk-VOZZQ6HQ.cjs.map} +1 -1
- package/dist/{chunk-3POP5WWC.cjs → chunk-VUAEDAUN.cjs} +6 -6
- package/dist/{chunk-3POP5WWC.cjs.map → chunk-VUAEDAUN.cjs.map} +1 -1
- package/dist/{chunk-34GEH24Y.cjs → chunk-VZQ3VVFH.cjs} +22 -20
- package/dist/chunk-VZQ3VVFH.cjs.map +1 -0
- package/dist/{chunk-ZIEYC6ZB.js → chunk-WZ6CUZMM.js} +4 -4
- package/dist/{chunk-F2KBCLUG.js → chunk-X5NN4NJM.js} +2 -2
- package/dist/{chunk-IZG3VYDV.js → chunk-Y3MIFC5M.js} +4 -4
- package/dist/{chunk-63F2UQDW.cjs → chunk-ZCQVUIPH.cjs} +18 -18
- package/dist/{chunk-63F2UQDW.cjs.map → chunk-ZCQVUIPH.cjs.map} +1 -1
- package/dist/{chunk-NLVBO3IR.js → chunk-ZGZ7YAJH.js} +10 -8
- package/dist/{chunk-NLVBO3IR.js.map → chunk-ZGZ7YAJH.js.map} +1 -1
- package/dist/{chunk-YXWGSDK4.cjs → chunk-ZI27ALYX.cjs} +5 -80
- package/dist/chunk-ZI27ALYX.cjs.map +1 -0
- package/dist/{chunk-BVQEU5JB.js → chunk-ZOMGXH7C.js} +2 -2
- package/dist/{chunk-MSVEZB5D.cjs → chunk-ZYDNPUSH.cjs} +279 -625
- package/dist/chunk-ZYDNPUSH.cjs.map +1 -0
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/case-studies/index.js +8 -8
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts +2 -1
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/employee-entry-card.d.ts +3 -3
- package/dist/components/chat/entity-cards/employee-entry-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/entity-author-card.d.ts +8 -6
- package/dist/components/chat/entity-cards/entity-author-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/chat/index.js +4 -4
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/contact/index.js +8 -8
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/docs/index.js +11 -11
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/embeds/index.js +8 -8
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/faq/index.js +9 -9
- package/dist/components/features/index.cjs +8 -8
- package/dist/components/features/index.js +7 -7
- package/dist/components/help-center-pages/index.cjs +31 -31
- package/dist/components/help-center-pages/index.js +22 -22
- package/dist/components/index.cjs +75 -69
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +30 -24
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +49 -49
- package/dist/components/meeting-scheduler/index.js +9 -9
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/navigation/index.js +10 -10
- package/dist/components/onboarding-guides/index.cjs +12 -12
- package/dist/components/onboarding-guides/index.js +11 -11
- package/dist/components/related-content/card-registry.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/related-content/index.js +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/tickets/index.js +12 -12
- package/dist/components/ui/color-preset-select.d.ts +4 -5
- package/dist/components/ui/color-preset-select.d.ts.map +1 -1
- package/dist/components/ui/department-badge.d.ts +21 -0
- package/dist/components/ui/department-badge.d.ts.map +1 -0
- package/dist/components/ui/index.cjs +14 -8
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +13 -7
- package/dist/components/ui/palette-badge.d.ts +22 -0
- package/dist/components/ui/palette-badge.d.ts.map +1 -0
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/index.js +4 -4
- package/dist/index.cjs +28 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +50 -40
- package/dist/index.js.map +1 -1
- package/dist/types/department.d.ts +4 -0
- package/dist/types/department.d.ts.map +1 -1
- package/dist/utils/color-presets.d.ts +24 -0
- package/dist/utils/color-presets.d.ts.map +1 -0
- package/dist/utils/index.cjs +32 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +30 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/ai-prompt-card.tsx +7 -4
- package/src/components/chat/entity-cards/employee-entry-card.tsx +21 -24
- package/src/components/chat/entity-cards/entity-author-card.tsx +10 -4
- package/src/components/related-content/card-registry.tsx +3 -1
- package/src/components/ui/.department-badge.md +2 -0
- package/src/components/ui/.palette-badge.md +2 -0
- package/src/components/ui/__tests__/department-badge.test.tsx +47 -0
- package/src/components/ui/color-preset-select.tsx +5 -21
- package/src/components/ui/department-badge.tsx +35 -0
- package/src/components/ui/index.ts +2 -0
- package/src/components/ui/palette-badge.tsx +39 -0
- package/src/types/department.ts +4 -0
- package/src/utils/.color-presets.md +2 -0
- package/src/utils/color-presets.ts +48 -0
- package/src/utils/index.ts +1 -0
- package/dist/chunk-34GEH24Y.cjs.map +0 -1
- package/dist/chunk-BVCWBA2U.js.map +0 -1
- package/dist/chunk-EHAYNUOL.cjs.map +0 -1
- package/dist/chunk-ESSHEVZQ.cjs.map +0 -1
- package/dist/chunk-IJYP2DMW.js.map +0 -1
- package/dist/chunk-MSVEZB5D.cjs.map +0 -1
- package/dist/chunk-NZJNXGU2.cjs.map +0 -1
- package/dist/chunk-Q5XGBLT5.cjs.map +0 -1
- package/dist/chunk-QPQCQWAW.cjs.map +0 -1
- package/dist/chunk-YXWGSDK4.cjs.map +0 -1
- package/dist/chunk-Z42VU7HF.cjs.map +0 -1
- /package/dist/{chunk-X3LC6R37.js.map → chunk-32P6KUZP.js.map} +0 -0
- /package/dist/{chunk-KK7YEVTQ.js.map → chunk-4PIHIFJM.js.map} +0 -0
- /package/dist/{chunk-DLZFFGQ7.js.map → chunk-5E55S5SI.js.map} +0 -0
- /package/dist/{chunk-S6WBBSII.js.map → chunk-76HB456V.js.map} +0 -0
- /package/dist/{chunk-F4TAUCHQ.js.map → chunk-CAQ5MNLJ.js.map} +0 -0
- /package/dist/{chunk-QR2FJE2C.js.map → chunk-CK2CPZXB.js.map} +0 -0
- /package/dist/{chunk-YQCA4ZEJ.js.map → chunk-CMUNJZWN.js.map} +0 -0
- /package/dist/{chunk-H7KQM3VI.js.map → chunk-DH3YH3TV.js.map} +0 -0
- /package/dist/{chunk-RQQAPCOU.js.map → chunk-G47XRVZA.js.map} +0 -0
- /package/dist/{chunk-RVK3CL5S.js.map → chunk-HIZAMJPT.js.map} +0 -0
- /package/dist/{chunk-RGMUA4XB.js.map → chunk-KXDYBRRR.js.map} +0 -0
- /package/dist/{chunk-WEDSYUSR.js.map → chunk-NLADJ4IX.js.map} +0 -0
- /package/dist/{chunk-ZIEYC6ZB.js.map → chunk-WZ6CUZMM.js.map} +0 -0
- /package/dist/{chunk-F2KBCLUG.js.map → chunk-X5NN4NJM.js.map} +0 -0
- /package/dist/{chunk-IZG3VYDV.js.map → chunk-Y3MIFC5M.js.map} +0 -0
- /package/dist/{chunk-BVQEU5JB.js.map → chunk-ZOMGXH7C.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
EmptyState
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-32P6KUZP.js";
|
|
5
5
|
import {
|
|
6
6
|
OPENFRAME_DEV_SECTIONS,
|
|
7
7
|
PageLayout,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
StatusFilterComponent,
|
|
11
11
|
TASK_TYPE_LABELS,
|
|
12
12
|
TASK_TYPE_TEXT_COLORS
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PTP5LSYM.js";
|
|
14
14
|
import {
|
|
15
15
|
usePathname,
|
|
16
16
|
useRouter,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
AvatarStack,
|
|
21
21
|
StatusBadge,
|
|
22
22
|
getStatusColorScheme
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2J7EFH4V.js";
|
|
24
24
|
import {
|
|
25
25
|
next_link_default
|
|
26
26
|
} from "./chunk-BTROSBHF.js";
|
|
@@ -302,4 +302,4 @@ export {
|
|
|
302
302
|
DevCardRowSkeletonList,
|
|
303
303
|
DeliveryRow
|
|
304
304
|
};
|
|
305
|
-
//# sourceMappingURL=chunk-
|
|
305
|
+
//# sourceMappingURL=chunk-5E55S5SI.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkRAPPN6MNcjs = require('./chunk-RAPPN6MN.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk23V5BSHDcjs = require('./chunk-23V5BSHD.cjs');
|
|
@@ -116,7 +116,7 @@ function PersistentPaginationWrapper({
|
|
|
116
116
|
},
|
|
117
117
|
"aria-hidden": isPaginationDisabled,
|
|
118
118
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
119
|
-
|
|
119
|
+
_chunkRAPPN6MNcjs.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-6I3KNDBF.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-6I3KNDBF.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-6I3KNDBF.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"]}
|
|
@@ -9,17 +9,16 @@ import {
|
|
|
9
9
|
parseSchemaParams,
|
|
10
10
|
positiveInt,
|
|
11
11
|
shouldIncludeInUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZOMGXH7C.js";
|
|
13
13
|
import {
|
|
14
14
|
ToolIcon,
|
|
15
|
-
apiErrorMessage,
|
|
16
15
|
breakpoints,
|
|
17
16
|
getHashTargetElement,
|
|
18
17
|
normalizeHashFragment,
|
|
19
18
|
scrollElementIntoView,
|
|
20
19
|
useDebounce,
|
|
21
20
|
useMediaQuery
|
|
22
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JRYS4VMV.js";
|
|
23
22
|
import {
|
|
24
23
|
useRouter,
|
|
25
24
|
useSearchParams
|
|
@@ -34,9 +33,10 @@ import {
|
|
|
34
33
|
XmarkIcon
|
|
35
34
|
} from "./chunk-IMDG23LW.js";
|
|
36
35
|
import {
|
|
36
|
+
apiErrorMessage,
|
|
37
37
|
createLocalStorageAdapter,
|
|
38
38
|
getPlatformBrandClasses
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-USIRWQJ3.js";
|
|
40
40
|
import {
|
|
41
41
|
MiamiCyberGangLogoFaceOnly,
|
|
42
42
|
OpenFrameLogo
|
|
@@ -3140,4 +3140,4 @@ export {
|
|
|
3140
3140
|
splitCsvEnv,
|
|
3141
3141
|
useHumanitySignals
|
|
3142
3142
|
};
|
|
3143
|
-
//# sourceMappingURL=chunk-
|
|
3143
|
+
//# sourceMappingURL=chunk-76HB456V.js.map
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQCSWM3VUcjs = require('./chunk-QCSWM3VU.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkGQ7267OVcjs = require('./chunk-GQ7267OV.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkN6XNJX25cjs = require('./chunk-N6XNJX25.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -22,21 +22,23 @@ var _chunkL54LFB6Vcjs = require('./chunk-L54LFB6V.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkR3SJ6PMIcjs = require('./chunk-R3SJ6PMI.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkVOZZQ6HQcjs = require('./chunk-VOZZQ6HQ.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
var _chunkYXWGSDK4cjs = require('./chunk-YXWGSDK4.cjs');
|
|
33
|
+
var _chunkZI27ALYXcjs = require('./chunk-ZI27ALYX.cjs');
|
|
35
34
|
|
|
36
35
|
|
|
37
36
|
var _chunkSADRZ4YIcjs = require('./chunk-SADRZ4YI.cjs');
|
|
38
37
|
|
|
39
38
|
|
|
39
|
+
var _chunk4E7XCEV3cjs = require('./chunk-4E7XCEV3.cjs');
|
|
40
|
+
|
|
41
|
+
|
|
40
42
|
var _chunkUPKZU6QUcjs = require('./chunk-UPKZU6QU.cjs');
|
|
41
43
|
|
|
42
44
|
|
|
@@ -197,7 +199,7 @@ function useDocsResolveLink(sourceId, resolveLinkEndpoint) {
|
|
|
197
199
|
return _react.useCallback.call(void 0,
|
|
198
200
|
async (href, currentPath) => {
|
|
199
201
|
try {
|
|
200
|
-
const response = await
|
|
202
|
+
const response = await _chunkVOZZQ6HQcjs.contentFetch.call(void 0, resolvedResolveLinkEndpoint, {
|
|
201
203
|
method: "POST",
|
|
202
204
|
headers: { "Content-Type": "application/json" },
|
|
203
205
|
body: JSON.stringify({ link: href, currentPath, source: sourceId })
|
|
@@ -223,9 +225,9 @@ function useDocsResolveLink(sourceId, resolveLinkEndpoint) {
|
|
|
223
225
|
function scrollToContent() {
|
|
224
226
|
const article = document.querySelector("article");
|
|
225
227
|
if (article) {
|
|
226
|
-
|
|
228
|
+
_chunkZI27ALYXcjs.scrollElementIntoView.call(void 0, article, { headerOffset: _chunkZI27ALYXcjs.HUB_HEADER_OFFSET_PX });
|
|
227
229
|
} else {
|
|
228
|
-
|
|
230
|
+
_chunkZI27ALYXcjs.scrollElementIntoView.call(void 0, document.documentElement);
|
|
229
231
|
}
|
|
230
232
|
}
|
|
231
233
|
function findFirstDocPath(folder) {
|
|
@@ -324,8 +326,8 @@ function toDocContent(value, requestedPath) {
|
|
|
324
326
|
}
|
|
325
327
|
function useDocumentTree(config, initialPath) {
|
|
326
328
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
327
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
328
|
-
const cleanInitialPath =
|
|
329
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkR3SJ6PMIcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
330
|
+
const cleanInitialPath = _chunkR3SJ6PMIcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
329
331
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
330
332
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
331
333
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -349,12 +351,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
349
351
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
350
352
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
351
353
|
}
|
|
352
|
-
pathFromUrl =
|
|
354
|
+
pathFromUrl = _chunkR3SJ6PMIcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
353
355
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
354
356
|
setSelectedPath(pathFromUrl);
|
|
355
357
|
if (pathFromUrl) {
|
|
356
358
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
357
|
-
setExpandedNodes(new Set(
|
|
359
|
+
setExpandedNodes(new Set(_chunkR3SJ6PMIcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
358
360
|
}
|
|
359
361
|
setTimeout(() => {
|
|
360
362
|
scrollToContent();
|
|
@@ -372,7 +374,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
372
374
|
setSelectedPath(cleanInitialPath);
|
|
373
375
|
if (cleanInitialPath) {
|
|
374
376
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
375
|
-
setExpandedNodes(new Set(
|
|
377
|
+
setExpandedNodes(new Set(_chunkR3SJ6PMIcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
376
378
|
}
|
|
377
379
|
setExternalNavCount((n) => n + 1);
|
|
378
380
|
}
|
|
@@ -386,7 +388,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
386
388
|
try {
|
|
387
389
|
setIsLoadingStructure(true);
|
|
388
390
|
setError(null);
|
|
389
|
-
const response = await
|
|
391
|
+
const response = await _chunkVOZZQ6HQcjs.contentFetch.call(void 0, structureEndpoint);
|
|
390
392
|
if (!response.ok) {
|
|
391
393
|
throw new Error("Failed to load documentation structure");
|
|
392
394
|
}
|
|
@@ -397,7 +399,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
397
399
|
if (cleanInitialPath) {
|
|
398
400
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
399
401
|
if (pathForExpansion) {
|
|
400
|
-
setExpandedNodes(new Set(
|
|
402
|
+
setExpandedNodes(new Set(_chunkR3SJ6PMIcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
401
403
|
}
|
|
402
404
|
} else if (nodes.length > 0) {
|
|
403
405
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -413,7 +415,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
413
415
|
}
|
|
414
416
|
}
|
|
415
417
|
} else {
|
|
416
|
-
setError(
|
|
418
|
+
setError(_chunk4E7XCEV3cjs.apiErrorMessage.call(void 0, payload, "Failed to load documentation structure"));
|
|
417
419
|
}
|
|
418
420
|
} catch (err) {
|
|
419
421
|
console.error("Error fetching documentation structure:", err);
|
|
@@ -425,7 +427,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
425
427
|
const fetchContent = async (path) => {
|
|
426
428
|
try {
|
|
427
429
|
setIsLoadingContent(true);
|
|
428
|
-
const response = await
|
|
430
|
+
const response = await _chunkVOZZQ6HQcjs.contentFetch.call(void 0, `${contentEndpoint}?path=${encodeURIComponent(path)}`);
|
|
429
431
|
if (path !== lastFetchedPath.current) return;
|
|
430
432
|
if (!response.ok) {
|
|
431
433
|
if (response.status === 404) {
|
|
@@ -437,7 +439,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
437
439
|
setContent(null);
|
|
438
440
|
return;
|
|
439
441
|
}
|
|
440
|
-
const probe =
|
|
442
|
+
const probe = _chunkR3SJ6PMIcjs.findDocNodeByPath.call(void 0, _chunkR3SJ6PMIcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
441
443
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
442
444
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
443
445
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -446,7 +448,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
446
448
|
setContent(null);
|
|
447
449
|
return;
|
|
448
450
|
}
|
|
449
|
-
setError(
|
|
451
|
+
setError(_chunk4E7XCEV3cjs.apiErrorMessage.call(void 0, errorPayload, "Documentation file not found"));
|
|
450
452
|
setContent(null);
|
|
451
453
|
return;
|
|
452
454
|
}
|
|
@@ -464,7 +466,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
464
466
|
}
|
|
465
467
|
setContent(doc);
|
|
466
468
|
} else {
|
|
467
|
-
setError(
|
|
469
|
+
setError(_chunk4E7XCEV3cjs.apiErrorMessage.call(void 0, payload, "Failed to load content"));
|
|
468
470
|
setContent(null);
|
|
469
471
|
}
|
|
470
472
|
} catch (err) {
|
|
@@ -494,7 +496,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
494
496
|
if (selectedPath === "") {
|
|
495
497
|
pathToFetch = folderIndexFile;
|
|
496
498
|
} else {
|
|
497
|
-
const node =
|
|
499
|
+
const node = _chunkR3SJ6PMIcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
498
500
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
499
501
|
const firstDocPath = findFirstDocPath(node);
|
|
500
502
|
if (!firstDocPath) {
|
|
@@ -535,16 +537,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
535
537
|
if (node.type === "folder") {
|
|
536
538
|
setExpandedNodes((prev) => {
|
|
537
539
|
if (prev.has(node.id)) {
|
|
538
|
-
const ancestorIds =
|
|
540
|
+
const ancestorIds = _chunkR3SJ6PMIcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
539
541
|
ancestorIds.pop();
|
|
540
542
|
return new Set(ancestorIds);
|
|
541
543
|
}
|
|
542
|
-
return new Set(
|
|
544
|
+
return new Set(_chunkR3SJ6PMIcjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
543
545
|
});
|
|
544
546
|
} else {
|
|
545
547
|
const lastSlash = node.path.lastIndexOf("/");
|
|
546
548
|
if (lastSlash > 0) {
|
|
547
|
-
setExpandedNodes(new Set(
|
|
549
|
+
setExpandedNodes(new Set(_chunkR3SJ6PMIcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
548
550
|
}
|
|
549
551
|
}
|
|
550
552
|
lastFetchedPath.current = null;
|
|
@@ -559,9 +561,9 @@ function useDocumentTree(config, initialPath) {
|
|
|
559
561
|
const hashIndex = path.indexOf("#");
|
|
560
562
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
561
563
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
562
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
564
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkR3SJ6PMIcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
563
565
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
564
|
-
|
|
566
|
+
_chunkZI27ALYXcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkZI27ALYXcjs.HUB_HEADER_OFFSET_PX });
|
|
565
567
|
return;
|
|
566
568
|
}
|
|
567
569
|
const scrollAfterNav = () => {
|
|
@@ -569,7 +571,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
569
571
|
setTimeout(() => {
|
|
570
572
|
const el = document.getElementById(anchor.substring(1));
|
|
571
573
|
if (el) {
|
|
572
|
-
|
|
574
|
+
_chunkZI27ALYXcjs.scrollElementIntoView.call(void 0, el, { headerOffset: _chunkZI27ALYXcjs.HUB_HEADER_OFFSET_PX });
|
|
573
575
|
} else {
|
|
574
576
|
scrollToContent();
|
|
575
577
|
}
|
|
@@ -623,15 +625,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
623
625
|
return docNavigation.register({
|
|
624
626
|
baseRoute: normalizedBaseRoute,
|
|
625
627
|
findNodeByPath: (path) => {
|
|
626
|
-
const clean =
|
|
627
|
-
return _nullishCoalesce(
|
|
628
|
+
const clean = _chunkR3SJ6PMIcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
629
|
+
return _nullishCoalesce(_chunkR3SJ6PMIcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
628
630
|
},
|
|
629
631
|
selectNode
|
|
630
632
|
});
|
|
631
633
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
632
634
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
633
635
|
if (!selectedPath || structure.length === 0) return false;
|
|
634
|
-
const node =
|
|
636
|
+
const node = _chunkR3SJ6PMIcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
635
637
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
636
638
|
}, [selectedPath, structure]);
|
|
637
639
|
return {
|
|
@@ -664,7 +666,7 @@ function useScrollSpy(sections) {
|
|
|
664
666
|
if (!targetElement) return;
|
|
665
667
|
isScrollingFromClick.current = true;
|
|
666
668
|
setActiveSection(sectionId);
|
|
667
|
-
|
|
669
|
+
_chunkZI27ALYXcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset: SCROLL_OFFSET });
|
|
668
670
|
setTimeout(() => {
|
|
669
671
|
isScrollingFromClick.current = false;
|
|
670
672
|
}, 800);
|
|
@@ -767,7 +769,7 @@ function DocViewerContent({
|
|
|
767
769
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _16 => _16.label]), () => ( "Back to home")),
|
|
768
770
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _17 => _17.href]), () => ( "/")))
|
|
769
771
|
};
|
|
770
|
-
const docSearch =
|
|
772
|
+
const docSearch = _chunkN6XNJX25cjs.useDocSearch.call(void 0, {
|
|
771
773
|
source: chatSource,
|
|
772
774
|
baseRoute,
|
|
773
775
|
searchEndpoint,
|
|
@@ -791,7 +793,7 @@ function DocViewerContent({
|
|
|
791
793
|
onResolveLink: resolveLink
|
|
792
794
|
});
|
|
793
795
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
794
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
796
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkR3SJ6PMIcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _18 => _18.documentType]) : void 0;
|
|
795
797
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _19 => _19.documentType]), () => ( selectedNodeDocType));
|
|
796
798
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
797
799
|
const showStickyNav = isMarkdownContent;
|
|
@@ -802,9 +804,9 @@ function DocViewerContent({
|
|
|
802
804
|
const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
|
|
803
805
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
804
806
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
805
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
807
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkR3SJ6PMIcjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
|
|
806
808
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
807
|
-
|
|
809
|
+
_chunkN6XNJX25cjs.DocSearchBar,
|
|
808
810
|
{
|
|
809
811
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _23 => _23.toLowerCase, 'call', _24 => _24()]) || "documents"}...`,
|
|
810
812
|
query: docSearch.query,
|
|
@@ -823,9 +825,9 @@ function DocViewerContent({
|
|
|
823
825
|
] })
|
|
824
826
|
] }) }),
|
|
825
827
|
!error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 lg:flex-row lg:gap-10", children: [
|
|
826
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full lg:w-[320px] lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "lg:sticky lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
828
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full lg:w-[320px] lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "lg:sticky lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkR3SJ6PMIcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
827
829
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
828
|
-
|
|
830
|
+
_chunkGQ7267OVcjs.MobileNavigationDropdown,
|
|
829
831
|
{
|
|
830
832
|
nodes: structure,
|
|
831
833
|
selectedPath,
|
|
@@ -839,7 +841,7 @@ function DocViewerContent({
|
|
|
839
841
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
840
842
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
841
843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
842
|
-
|
|
844
|
+
_chunkGQ7267OVcjs.MultiLevelNavigation,
|
|
843
845
|
{
|
|
844
846
|
nodes: structure,
|
|
845
847
|
selectedPath,
|
|
@@ -878,7 +880,7 @@ function DocViewerContent({
|
|
|
878
880
|
showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
879
881
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
|
|
880
882
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
881
|
-
|
|
883
|
+
_chunkGQ7267OVcjs.StickySectionNav,
|
|
882
884
|
{
|
|
883
885
|
sections: stickyNavSections,
|
|
884
886
|
activeSection,
|
|
@@ -893,7 +895,7 @@ function DocViewerContent({
|
|
|
893
895
|
) })
|
|
894
896
|
] })
|
|
895
897
|
] }) }) });
|
|
896
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
898
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkR3SJ6PMIcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
897
899
|
}
|
|
898
900
|
|
|
899
901
|
// src/components/docs/skeletons.tsx
|
|
@@ -983,11 +985,11 @@ function EmbedSkeleton({ documentType } = {}) {
|
|
|
983
985
|
|
|
984
986
|
var DEFAULT_TITLE = "Documents";
|
|
985
987
|
var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-16 text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
|
|
986
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
987
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
988
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
988
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCSWM3VUcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
989
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCSWM3VUcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
990
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkR3SJ6PMIcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
989
991
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
990
|
-
|
|
992
|
+
_chunkQCSWM3VUcjs.FileDownloadCard,
|
|
991
993
|
{
|
|
992
994
|
fileName: content.fileName,
|
|
993
995
|
mimeType: content.mimeType,
|
|
@@ -1050,4 +1052,4 @@ function DocsHubPage({
|
|
|
1050
1052
|
|
|
1051
1053
|
|
|
1052
1054
|
exports.PersistentFilterControls = PersistentFilterControls; exports.PersistentSearchContainer = PersistentSearchContainer; exports.PersistentSidebar = PersistentSidebar; exports.PersistentMobileDropdown = PersistentMobileDropdown; exports.DocNavigationProvider = DocNavigationProvider; exports.useDocNavigation = useDocNavigation; exports.useDocumentTree = useDocumentTree; exports.useScrollSpy = useScrollSpy; exports.DocViewer = DocViewer; exports.MarkdownSkeleton = MarkdownSkeleton; exports.EmbedSkeleton = EmbedSkeleton; exports.DocsHubPage = DocsHubPage;
|
|
1053
|
-
//# sourceMappingURL=chunk-
|
|
1055
|
+
//# sourceMappingURL=chunk-BC726XIQ.cjs.map
|