@flamingo-stack/openframe-frontend-core 0.0.736 → 0.0.738
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/build/export-map.json +1 -1
- package/dist/{chunk-AZL332TK.cjs → chunk-2QMBXGMQ.cjs} +15 -2
- package/dist/{chunk-7V2KP2TB.cjs → chunk-2SBHPHLS.cjs} +4 -4
- package/dist/{chunk-LIH5OQLY.cjs → chunk-2UZS3ZH7.cjs} +8 -8
- package/dist/{chunk-MGW5DO6P.cjs → chunk-3BBOAMWJ.cjs} +7 -7
- package/dist/{chunk-HZJRERJW.cjs → chunk-3RFQPQ7Z.cjs} +3 -3
- package/dist/{chunk-T27CVQBO.cjs → chunk-4T6ETBL4.cjs} +151 -83
- package/dist/{chunk-JM54CNZZ.cjs → chunk-4YQNJJWM.cjs} +95 -95
- package/dist/{chunk-UBQSOB3X.cjs → chunk-5BKAUXLR.cjs} +4 -4
- package/dist/{chunk-YADG5Q7C.cjs → chunk-63N4FN5V.cjs} +3 -3
- package/dist/{chunk-URX2YTCL.cjs → chunk-66R4NGGU.cjs} +77 -71
- package/dist/{chunk-EJOXXJJB.cjs → chunk-7F3V45AH.cjs} +29 -29
- package/dist/{chunk-BDF3FNOC.cjs → chunk-7GETNFZ5.cjs} +49 -49
- package/dist/{chunk-L4ZNR5V7.cjs → chunk-7LTG6CJ3.cjs} +67 -67
- package/dist/{chunk-MJGX357L.cjs → chunk-B27QEHYR.cjs} +2 -2
- package/dist/{chunk-OV6BGMEL.cjs → chunk-BRKTN6UR.cjs} +340 -328
- package/dist/{chunk-VRNNIV5Y.cjs → chunk-EG545WGV.cjs} +4 -4
- package/dist/{chunk-ZJNYWNCB.cjs → chunk-FG7HTGT3.cjs} +24 -24
- package/dist/{chunk-77SD7RXY.cjs → chunk-GAF4L3JW.cjs} +7 -7
- package/dist/{chunk-FTGVG6FW.cjs → chunk-GQZOUVXC.cjs} +34 -34
- package/dist/{chunk-ZEX5WU35.cjs → chunk-HNYLTEIS.cjs} +48 -69
- package/dist/{chunk-FCGLSWKR.cjs → chunk-IFS4AH77.cjs} +19 -1
- package/dist/{chunk-L535OD7V.cjs → chunk-JZNESLJX.cjs} +2 -2
- package/dist/{chunk-SZFA2LQR.cjs → chunk-KQ4IKALJ.cjs} +35 -35
- package/dist/{chunk-EX2GYIGW.cjs → chunk-LY5VOKV7.cjs} +6 -6
- package/dist/{chunk-XLSVQJBA.cjs → chunk-MLKL2YVE.cjs} +44 -44
- package/dist/{chunk-BL5GOCHP.cjs → chunk-MTNNYSP3.cjs} +26 -18
- package/dist/{chunk-ZRYKDN2J.cjs → chunk-N2CISBJJ.cjs} +15 -15
- package/dist/chunk-N5NDPULP.cjs +57 -0
- package/dist/{chunk-P6Z3EBPJ.cjs → chunk-R36NZTUJ.cjs} +26 -26
- package/dist/{chunk-OJUMVOMP.cjs → chunk-U5BRSRXA.cjs} +923 -759
- package/dist/{chunk-DUXLZPMJ.cjs → chunk-UMO55S55.cjs} +2 -2
- package/dist/{chunk-JGGSRCRD.cjs → chunk-XGHZIYQN.cjs} +24 -24
- package/dist/{chunk-NONQUGRP.cjs → chunk-XMNLPQ75.cjs} +12 -12
- package/dist/{cloud-tenants-M55HMW6F.cjs → cloud-tenants-FTQGWXHS.cjs} +16 -16
- package/dist/components/agent-identity.d.ts +8 -1
- package/dist/components/agent-identity.d.ts.map +1 -1
- package/dist/components/agent-identity.js +6 -1
- package/dist/components/calendar.cjs +4 -4
- package/dist/components/case-studies/index.cjs +28 -28
- package/dist/components/chat/chat-turn.d.ts +23 -0
- package/dist/components/chat/chat-turn.d.ts.map +1 -0
- package/dist/components/chat/chat-turn.js +30 -0
- package/dist/components/chat/entity-cards/index.d.ts +1 -0
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/index.js +2 -0
- package/dist/components/chat/hooks/use-ask-prompts.d.ts +1 -1
- package/dist/components/chat/hooks/use-ask-prompts.js +1 -1
- package/dist/components/chat/index.cjs +16 -12
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +1 -0
- package/dist/components/chat/mingo-info-card.d.ts +17 -1
- package/dist/components/chat/mingo-info-card.d.ts.map +1 -1
- package/dist/components/chat/mingo-info-card.js +15 -3
- package/dist/components/contact/index.cjs +17 -17
- package/dist/components/docs/index.cjs +20 -20
- package/dist/components/embeds/index.cjs +17 -17
- package/dist/components/faq/faq-ask-card.d.ts +5 -4
- package/dist/components/faq/faq-ask-card.d.ts.map +1 -1
- package/dist/components/faq/faq-document-page.d.ts +3 -1
- package/dist/components/faq/faq-document-page.d.ts.map +1 -1
- package/dist/components/faq/faq-document-page.js +2 -0
- package/dist/components/faq/faq-section.d.ts +37 -5
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/faq-section.js +36 -9
- package/dist/components/faq/index.cjs +23 -17
- package/dist/components/faq/index.d.ts +1 -1
- package/dist/components/faq/index.d.ts.map +1 -1
- package/dist/components/faq/index.js +4 -2
- package/dist/components/features/auth/auth-benefits-panel.d.ts +3 -5
- package/dist/components/features/auth/auth-benefits-panel.d.ts.map +1 -1
- package/dist/components/features/auth/auth-benefits-panel.js +3 -19
- package/dist/components/features/conversation-card.d.ts +12 -4
- package/dist/components/features/conversation-card.d.ts.map +1 -1
- package/dist/components/features/conversation-card.js +30 -38
- package/dist/components/features/index.cjs +16 -16
- package/dist/components/help-center-pages/delivery-page.d.ts +8 -1
- package/dist/components/help-center-pages/delivery-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/delivery-page.js +16 -4
- package/dist/components/help-center-pages/download-apps-page.d.ts +8 -1
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/download-apps-page.js +11 -6
- package/dist/components/help-center-pages/index.cjs +216 -161
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts +8 -1
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.js +26 -14
- package/dist/components/help-center-pages/product-releases-list-page.d.ts +8 -1
- package/dist/components/help-center-pages/product-releases-list-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/product-releases-list-page.js +24 -12
- package/dist/components/help-center-pages/roadmap-page.d.ts +8 -1
- package/dist/components/help-center-pages/roadmap-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/roadmap-page.js +25 -13
- package/dist/components/index.cjs +103 -79
- package/dist/components/meeting-scheduler/index.cjs +49 -49
- package/dist/components/navigation/index.cjs +19 -19
- package/dist/components/onboarding-guides/index.cjs +19 -19
- package/dist/components/platform/ToolBadge.d.ts.map +1 -1
- package/dist/components/platform/ToolBadge.js +4 -3
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/related-content/index.cjs +8 -8
- package/dist/components/shared/dev-section/dev-section-page.d.ts +8 -1
- package/dist/components/shared/dev-section/dev-section-page.d.ts.map +1 -1
- package/dist/components/shared/dev-section/dev-section-page.js +8 -3
- package/dist/components/shared/legal-document/legal-document-page.d.ts +8 -1
- package/dist/components/shared/legal-document/legal-document-page.d.ts.map +1 -1
- package/dist/components/shared/legal-document/legal-document-page.js +4 -1
- package/dist/components/tickets/index.cjs +22 -21
- package/dist/components/ui/app-window-frame.d.ts +7 -1
- package/dist/components/ui/app-window-frame.d.ts.map +1 -1
- package/dist/components/ui/app-window-frame.js +10 -2
- package/dist/components/ui/benefit-list.d.ts +42 -0
- package/dist/components/ui/benefit-list.d.ts.map +1 -0
- package/dist/components/ui/benefit-list.js +62 -0
- package/dist/components/ui/button/button.d.ts +1 -0
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +15 -2
- package/dist/components/ui/dropdown-button.d.ts +20 -2
- package/dist/components/ui/dropdown-button.d.ts.map +1 -1
- package/dist/components/ui/dropdown-button.js +57 -1
- package/dist/components/ui/file-manager/index.cjs +11 -11
- package/dist/components/ui/index.cjs +32 -16
- package/dist/components/ui/index.d.ts +3 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +3 -0
- package/dist/components/ui/leader-row.d.ts +17 -0
- package/dist/components/ui/leader-row.d.ts.map +1 -0
- package/dist/components/ui/leader-row.js +14 -0
- package/dist/components/ui/strip-card.d.ts +23 -0
- package/dist/components/ui/strip-card.d.ts.map +1 -0
- package/dist/components/ui/strip-card.js +56 -0
- package/dist/contexts/assistant-runtime-context.d.ts +5 -5
- package/dist/{devices-WWJZFG6E.cjs → devices-MPI5HUQS.cjs} +17 -17
- package/dist/{embeddable-chat-76IJ6TQZ.cjs → embeddable-chat-7WLUDBGK.cjs} +84 -84
- package/dist/index.cjs +46 -20
- package/dist/{knowledge-F4YFQT3G.cjs → knowledge-BS663XXL.cjs} +17 -17
- package/dist/{logs-GAYEGEZM.cjs → logs-KS2A2VN5.cjs} +25 -25
- package/dist/{policies-ZOVJCJWX.cjs → policies-H3OK6H4Q.cjs} +20 -20
- package/dist/{remote-session-Z4YZFG5E.cjs → remote-session-EHKXU4HI.cjs} +7 -7
- package/dist/{software-update-H4YE5GMJ.cjs → software-update-HMMMWIL3.cjs} +20 -20
- package/dist/{tickets-board-JOSYLOS7.cjs → tickets-board-3YJKOOZE.cjs} +10 -10
- package/dist/types/faq.d.ts +17 -0
- package/dist/types/faq.d.ts.map +1 -1
- package/dist/types/faq.js +4 -0
- package/dist/types/index.cjs +4 -0
- package/dist/utils/demo-clock.d.ts +22 -0
- package/dist/utils/demo-clock.d.ts.map +1 -0
- package/dist/utils/demo-clock.js +40 -0
- package/dist/utils/identity-tint.d.ts +13 -0
- package/dist/utils/identity-tint.d.ts.map +1 -0
- package/dist/utils/identity-tint.js +14 -0
- package/dist/utils/index.cjs +54 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/{video-file-player-6NWGXZ3W.cjs → video-file-player-ZH2ILAPO.cjs} +12 -12
- package/package.json +1 -1
- package/src/components/agent-identity.tsx +12 -1
- package/src/components/chat/chat-turn.tsx +52 -0
- package/src/components/chat/entity-cards/index.ts +1 -0
- package/src/components/chat/hooks/use-ask-prompts.ts +2 -2
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/mingo-info-card.tsx +39 -4
- package/src/components/faq/faq-ask-card.tsx +5 -4
- package/src/components/faq/faq-document-page.tsx +4 -0
- package/src/components/faq/faq-section.tsx +86 -14
- package/src/components/faq/index.ts +1 -1
- package/src/components/features/auth/auth-benefits-panel.tsx +5 -32
- package/src/components/features/conversation-card.tsx +48 -46
- package/src/components/help-center-pages/delivery-page.tsx +16 -1
- package/src/components/help-center-pages/download-apps-page.tsx +9 -0
- package/src/components/help-center-pages/onboarding-guides-catalog-page.tsx +16 -1
- package/src/components/help-center-pages/product-releases-list-page.tsx +16 -1
- package/src/components/help-center-pages/roadmap-page.tsx +16 -1
- package/src/components/platform/ToolBadge.tsx +4 -3
- package/src/components/shared/dev-section/dev-section-page.tsx +9 -0
- package/src/components/shared/legal-document/legal-document-page.tsx +9 -0
- package/src/components/ui/app-window-frame.tsx +18 -2
- package/src/components/ui/benefit-list.tsx +97 -0
- package/src/components/ui/button/button.tsx +14 -1
- package/src/components/ui/dropdown-button.tsx +73 -1
- package/src/components/ui/index.ts +3 -0
- package/src/components/ui/leader-row.tsx +28 -0
- package/src/components/ui/strip-card.tsx +68 -0
- package/src/contexts/assistant-runtime-context.tsx +5 -5
- package/src/types/faq.ts +18 -0
- package/src/utils/demo-clock.ts +62 -0
- package/src/utils/identity-tint.ts +23 -0
- package/src/utils/index.ts +2 -0
|
@@ -1,22 +1,16 @@
|
|
|
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 _chunkOJUMVOMPcjs = require('./chunk-OJUMVOMP.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunkL4ZNR5V7cjs = require('./chunk-L4ZNR5V7.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
4
|
var _chunkVA7OMDZOcjs = require('./chunk-VA7OMDZO.cjs');
|
|
11
5
|
|
|
12
6
|
|
|
13
7
|
|
|
14
|
-
var
|
|
8
|
+
var _chunk4T6ETBL4cjs = require('./chunk-4T6ETBL4.cjs');
|
|
15
9
|
|
|
16
10
|
|
|
17
11
|
|
|
18
12
|
|
|
19
|
-
var
|
|
13
|
+
var _chunkBRKTN6URcjs = require('./chunk-BRKTN6UR.cjs');
|
|
20
14
|
|
|
21
15
|
|
|
22
16
|
|
|
@@ -24,9 +18,6 @@ var _chunkOV6BGMELcjs = require('./chunk-OV6BGMEL.cjs');
|
|
|
24
18
|
var _chunkSA7LDEVJcjs = require('./chunk-SA7LDEVJ.cjs');
|
|
25
19
|
|
|
26
20
|
|
|
27
|
-
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
28
|
-
|
|
29
|
-
|
|
30
21
|
var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
31
22
|
|
|
32
23
|
|
|
@@ -34,10 +25,10 @@ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
|
34
25
|
|
|
35
26
|
|
|
36
27
|
|
|
37
|
-
var
|
|
28
|
+
var _chunkLY5VOKV7cjs = require('./chunk-LY5VOKV7.cjs');
|
|
38
29
|
|
|
39
30
|
|
|
40
|
-
var
|
|
31
|
+
var _chunk7F3V45AHcjs = require('./chunk-7F3V45AH.cjs');
|
|
41
32
|
|
|
42
33
|
|
|
43
34
|
var _chunkPX7FY655cjs = require('./chunk-PX7FY655.cjs');
|
|
@@ -48,11 +39,8 @@ var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
|
48
39
|
|
|
49
40
|
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
50
41
|
|
|
51
|
-
// src/components/faq/faq-section.tsx
|
|
52
|
-
var _react = require('react');
|
|
53
|
-
|
|
54
42
|
// src/components/faq-accordion.tsx
|
|
55
|
-
|
|
43
|
+
var _react = require('react');
|
|
56
44
|
var _jsxruntime = require('react/jsx-runtime');
|
|
57
45
|
function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
58
46
|
const [openSet, setOpenSet] = _react.useState.call(void 0, new Set(defaultOpenIds));
|
|
@@ -69,7 +57,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
69
57
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
70
58
|
"div",
|
|
71
59
|
{
|
|
72
|
-
id:
|
|
60
|
+
id: _chunkBRKTN6URcjs.faqItemAnchor.call(void 0, item.id),
|
|
73
61
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
74
62
|
children: [
|
|
75
63
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -122,14 +110,14 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
122
110
|
|
|
123
111
|
var PICK_ROOT_MARGIN = "600px";
|
|
124
112
|
function faqAskCardShown(assistant) {
|
|
125
|
-
return
|
|
113
|
+
return _chunk4T6ETBL4cjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
126
114
|
}
|
|
127
115
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
128
116
|
const { ref, inView } = _chunkSA7LDEVJcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
129
117
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
130
118
|
if (inView && !reached) setReached(true);
|
|
131
119
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
132
|
-
|
|
120
|
+
_chunk4T6ETBL4cjs.AssistantAskPrompts,
|
|
133
121
|
{
|
|
134
122
|
variant: "card",
|
|
135
123
|
topic,
|
|
@@ -143,6 +131,9 @@ function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
|
143
131
|
) });
|
|
144
132
|
}
|
|
145
133
|
|
|
134
|
+
// src/components/faq/faq-section.tsx
|
|
135
|
+
|
|
136
|
+
|
|
146
137
|
// src/components/faq/json-ld.ts
|
|
147
138
|
var DEFAULT_NAME = "Frequently Asked Questions";
|
|
148
139
|
var DEFAULT_DESCRIPTION = "Answers to common questions.";
|
|
@@ -172,8 +163,20 @@ function buildFaqJsonLdFromFaqs(faqs, opts = {}) {
|
|
|
172
163
|
// src/components/faq/faq-section.tsx
|
|
173
164
|
|
|
174
165
|
var DEFAULT_HEADING_TEXT = "Frequently Asked Questions";
|
|
175
|
-
|
|
176
|
-
|
|
166
|
+
var PAGE_FAQ_SECTION_ID = "faq";
|
|
167
|
+
var PAGE_FAQ_IN_PAGE_CLASS = "space-y-10 pt-12 md:pt-20";
|
|
168
|
+
function pageFaqProps(faq) {
|
|
169
|
+
return { ...faq, id: PAGE_FAQ_SECTION_ID, className: PAGE_FAQ_IN_PAGE_CLASS };
|
|
170
|
+
}
|
|
171
|
+
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "", topic) {
|
|
172
|
+
const entityScoped = !!entityType && entityId !== void 0 && entityId !== null && entityId !== "";
|
|
173
|
+
return _chunkLY5VOKV7cjs.buildSuggestionUrl.call(void 0, "/api/faqs", {
|
|
174
|
+
apiBaseUrl,
|
|
175
|
+
entityType,
|
|
176
|
+
entityId,
|
|
177
|
+
count: minResults,
|
|
178
|
+
extraParams: entityScoped ? void 0 : { topic }
|
|
179
|
+
});
|
|
177
180
|
}
|
|
178
181
|
function groupFaqsBySection(faqs) {
|
|
179
182
|
const byName = /* @__PURE__ */ new Map();
|
|
@@ -188,7 +191,7 @@ function groupFaqsBySection(faqs) {
|
|
|
188
191
|
}
|
|
189
192
|
let group = byName.get(name);
|
|
190
193
|
if (!group) {
|
|
191
|
-
group = { section: name, slug:
|
|
194
|
+
group = { section: name, slug: _chunkBRKTN6URcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
192
195
|
byName.set(name, group);
|
|
193
196
|
}
|
|
194
197
|
group.items.push(item);
|
|
@@ -243,7 +246,7 @@ function GroupedFaqList({
|
|
|
243
246
|
}, [slugKey]);
|
|
244
247
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
245
248
|
_react.useEffect.call(void 0, () => {
|
|
246
|
-
const refresh = () => setHashTarget(
|
|
249
|
+
const refresh = () => setHashTarget(_chunkBRKTN6URcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
247
250
|
refresh();
|
|
248
251
|
window.addEventListener("hashchange", refresh);
|
|
249
252
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -293,7 +296,7 @@ function GroupedFaqList({
|
|
|
293
296
|
const questions = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-10", children: groups.map((group) => {
|
|
294
297
|
const key = groupKey(group);
|
|
295
298
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { id: _nullishCoalesce(group.slug, () => ( void 0)), className: "scroll-mt-24 space-y-4", children: [
|
|
296
|
-
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className:
|
|
299
|
+
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className: _chunk7F3V45AHcjs.SECTION_HEADING_CLASS, children: group.section }),
|
|
297
300
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
298
301
|
FaqAccordion,
|
|
299
302
|
{
|
|
@@ -332,27 +335,40 @@ function FaqSection({
|
|
|
332
335
|
initialFaqs,
|
|
333
336
|
entityType,
|
|
334
337
|
entityId,
|
|
338
|
+
topic,
|
|
335
339
|
heading,
|
|
336
340
|
emitJsonLd = false,
|
|
337
341
|
jsonLd,
|
|
338
342
|
className,
|
|
343
|
+
id,
|
|
344
|
+
showTopic = false,
|
|
339
345
|
minResults,
|
|
340
346
|
apiBaseUrl = "",
|
|
341
347
|
aside: asideProp,
|
|
342
348
|
ask
|
|
343
349
|
}) {
|
|
344
350
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
345
|
-
const askTopic = ask === false ? void 0 : _optionalChain([ask, 'optionalAccess', _14 => _14.topic]) || entityType;
|
|
351
|
+
const askTopic = ask === false ? void 0 : _optionalChain([ask, 'optionalAccess', _14 => _14.topic]) || topic || entityType;
|
|
346
352
|
const aside = _nullishCoalesce(asideProp, () => ( (ask !== false && askTopic && faqAskCardShown(assistant) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqAskCard, { ...ask, topic: askTopic }) : void 0)));
|
|
347
|
-
const url = buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl);
|
|
353
|
+
const url = buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl, topic);
|
|
348
354
|
const initialData = _react.useMemo.call(void 0,
|
|
349
355
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
350
356
|
[initialFaqs]
|
|
351
357
|
);
|
|
352
|
-
const { data, isLoading, error } =
|
|
353
|
-
const
|
|
358
|
+
const { data, dataUrl, isLoading, error } = _chunkLY5VOKV7cjs.useSelfFetch.call(void 0, url, { initialData });
|
|
359
|
+
const held = dataUrl === url ? _optionalChain([data, 'optionalAccess', _15 => _15.faqs]) : void 0;
|
|
360
|
+
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(held, () => ( [])), [held]);
|
|
354
361
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
355
|
-
const
|
|
362
|
+
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk7F3V45AHcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
363
|
+
const headingNode = showTopic && topic ? (
|
|
364
|
+
// The host's heading may arrive from a server component, still streaming: React cannot check such a
|
|
365
|
+
// node when it sits in a list of siblings and warns about a missing key. So it is the ONLY child of its
|
|
366
|
+
// own wrapper, and the two siblings here are this component's own elements.
|
|
367
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
368
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: titleNode }),
|
|
369
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-muted text-h6", children: topic })
|
|
370
|
+
] })
|
|
371
|
+
) : titleNode;
|
|
356
372
|
if (error) return null;
|
|
357
373
|
if (!isLoading && faqs.length === 0) return null;
|
|
358
374
|
if (isLoading && faqs.length === 0) {
|
|
@@ -360,7 +376,7 @@ function FaqSection({
|
|
|
360
376
|
}
|
|
361
377
|
const schema = emitJsonLd ? buildFaqJsonLdFromFaqs(faqs, jsonLd) : null;
|
|
362
378
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
363
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { className: _nullishCoalesce(className, () => ( "space-y-10")), children: [
|
|
379
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { id, "data-faq-topic": topic, className: _nullishCoalesce(className, () => ( "space-y-10")), children: [
|
|
364
380
|
!aside && headingNode,
|
|
365
381
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
366
382
|
GroupedFaqList,
|
|
@@ -382,47 +398,10 @@ function FaqSection({
|
|
|
382
398
|
] });
|
|
383
399
|
}
|
|
384
400
|
|
|
385
|
-
// src/components/faq/faq-document-page.tsx
|
|
386
|
-
|
|
387
|
-
function FaqDocumentPage({
|
|
388
|
-
title = "Frequently Asked Questions",
|
|
389
|
-
subtitle,
|
|
390
|
-
backButton,
|
|
391
|
-
initialFaqs,
|
|
392
|
-
emitJsonLd,
|
|
393
|
-
jsonLd,
|
|
394
|
-
apiBaseUrl,
|
|
395
|
-
entityType,
|
|
396
|
-
entityId,
|
|
397
|
-
minResults,
|
|
398
|
-
ask,
|
|
399
|
-
shell = true
|
|
400
|
-
}) {
|
|
401
|
-
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
402
|
-
const backCfg = backButton === false ? void 0 : {
|
|
403
|
-
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _17 => _17.label]), () => ( "Back to home")),
|
|
404
|
-
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _18 => _18.href]), () => ( "/")))
|
|
405
|
-
};
|
|
406
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL4ZNR5V7cjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
407
|
-
FaqSection,
|
|
408
|
-
{
|
|
409
|
-
initialFaqs,
|
|
410
|
-
heading: null,
|
|
411
|
-
emitJsonLd,
|
|
412
|
-
jsonLd,
|
|
413
|
-
apiBaseUrl,
|
|
414
|
-
entityType,
|
|
415
|
-
entityId,
|
|
416
|
-
minResults,
|
|
417
|
-
ask
|
|
418
|
-
}
|
|
419
|
-
) });
|
|
420
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOJUMVOMPcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
421
|
-
}
|
|
422
401
|
|
|
423
402
|
|
|
424
403
|
|
|
425
404
|
|
|
426
405
|
|
|
427
406
|
|
|
428
|
-
exports.FaqAccordion = FaqAccordion; exports.FaqAskCard = FaqAskCard; exports.
|
|
407
|
+
exports.FaqAccordion = FaqAccordion; exports.FaqAskCard = FaqAskCard; exports.PAGE_FAQ_SECTION_ID = PAGE_FAQ_SECTION_ID; exports.pageFaqProps = pageFaqProps; exports.FaqSection = FaqSection;
|
|
@@ -336,6 +336,19 @@ function hslToRgb(h, s, l) {
|
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
+
// src/utils/identity-tint.ts
|
|
340
|
+
function identityTint(accent) {
|
|
341
|
+
if (!accent) return void 0;
|
|
342
|
+
const wash = `color-mix(in srgb, ${accent} 2%, transparent)`;
|
|
343
|
+
return {
|
|
344
|
+
borderColor: `color-mix(in srgb, ${accent} 30%, transparent)`,
|
|
345
|
+
backgroundImage: [
|
|
346
|
+
`radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, ${accent} 4%, transparent), transparent 70%)`,
|
|
347
|
+
`linear-gradient(${wash}, ${wash})`
|
|
348
|
+
].join(", ")
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
|
|
339
352
|
// src/components/agent-identity.tsx
|
|
340
353
|
var _react = require('react');
|
|
341
354
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -387,6 +400,11 @@ function useAgentAccents() {
|
|
|
387
400
|
[identities]
|
|
388
401
|
);
|
|
389
402
|
}
|
|
403
|
+
function useAgentTint(slug) {
|
|
404
|
+
return identityTint(useAgentAccents()(slug));
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
|
|
390
408
|
|
|
391
409
|
|
|
392
410
|
|
|
@@ -414,4 +432,4 @@ function useAgentAccents() {
|
|
|
414
432
|
|
|
415
433
|
|
|
416
434
|
|
|
417
|
-
exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getCurrentPlatform = getCurrentPlatform; exports.switchPlatformTheme = switchPlatformTheme; exports.getSemanticColor = getSemanticColor; exports.getPlatformConfig = getPlatformConfig; exports.usePlatformColors = usePlatformColors; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.rgbToHsl = rgbToHsl; exports.hslToRgb = hslToRgb; exports.AGENT_GLYPH_COLOR = AGENT_GLYPH_COLOR; exports.AGENT_PICTURE_CLASS = AGENT_PICTURE_CLASS; exports.AgentIdentityProvider = AgentIdentityProvider; exports.useAgentIdentityIcon = useAgentIdentityIcon; exports.useAgentAccents = useAgentAccents;
|
|
435
|
+
exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getCurrentPlatform = getCurrentPlatform; exports.switchPlatformTheme = switchPlatformTheme; exports.getSemanticColor = getSemanticColor; exports.getPlatformConfig = getPlatformConfig; exports.usePlatformColors = usePlatformColors; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.rgbToHsl = rgbToHsl; exports.hslToRgb = hslToRgb; exports.identityTint = identityTint; exports.AGENT_GLYPH_COLOR = AGENT_GLYPH_COLOR; exports.AGENT_PICTURE_CLASS = AGENT_PICTURE_CLASS; exports.AgentIdentityProvider = AgentIdentityProvider; exports.useAgentIdentityIcon = useAgentIdentityIcon; exports.useAgentAccents = useAgentAccents; exports.useAgentTint = useAgentTint;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGAF4L3JWcjs = require('./chunk-GAF4L3JW.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.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
|
+
_chunkGAF4L3JWcjs.UnifiedPagination,
|
|
120
120
|
{
|
|
121
121
|
currentPage: displayCurrentPage,
|
|
122
122
|
totalPages: displayTotalPages,
|
|
@@ -3,31 +3,31 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2UZS3ZH7cjs = require('./chunk-2UZS3ZH7.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk2SBHPHLScjs = require('./chunk-2SBHPHLS.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkXMNLPQ75cjs = require('./chunk-XMNLPQ75.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkU5BRSRXAcjs = require('./chunk-U5BRSRXA.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk7LTG6CJ3cjs = require('./chunk-7LTG6CJ3.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunk4T6ETBL4cjs = require('./chunk-4T6ETBL4.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -337,8 +337,8 @@ function toDocContent(value, requestedPath) {
|
|
|
337
337
|
}
|
|
338
338
|
function useDocumentTree(config, initialPath) {
|
|
339
339
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
340
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
341
|
-
const cleanInitialPath =
|
|
340
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunk4T6ETBL4cjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
341
|
+
const cleanInitialPath = _chunk4T6ETBL4cjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
342
342
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
343
343
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
344
344
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -362,12 +362,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
362
362
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
363
363
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
364
364
|
}
|
|
365
|
-
pathFromUrl =
|
|
365
|
+
pathFromUrl = _chunk4T6ETBL4cjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
366
366
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
367
367
|
setSelectedPath(pathFromUrl);
|
|
368
368
|
if (pathFromUrl) {
|
|
369
369
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
370
|
-
setExpandedNodes(new Set(
|
|
370
|
+
setExpandedNodes(new Set(_chunk4T6ETBL4cjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
371
371
|
}
|
|
372
372
|
setTimeout(() => {
|
|
373
373
|
scrollToContent();
|
|
@@ -385,7 +385,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
385
385
|
setSelectedPath(cleanInitialPath);
|
|
386
386
|
if (cleanInitialPath) {
|
|
387
387
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
388
|
-
setExpandedNodes(new Set(
|
|
388
|
+
setExpandedNodes(new Set(_chunk4T6ETBL4cjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
389
389
|
}
|
|
390
390
|
setExternalNavCount((n) => n + 1);
|
|
391
391
|
}
|
|
@@ -410,7 +410,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
410
410
|
if (cleanInitialPath) {
|
|
411
411
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
412
412
|
if (pathForExpansion) {
|
|
413
|
-
setExpandedNodes(new Set(
|
|
413
|
+
setExpandedNodes(new Set(_chunk4T6ETBL4cjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
414
414
|
}
|
|
415
415
|
} else if (nodes.length > 0) {
|
|
416
416
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -450,7 +450,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
450
450
|
setContent(null);
|
|
451
451
|
return;
|
|
452
452
|
}
|
|
453
|
-
const probe =
|
|
453
|
+
const probe = _chunk4T6ETBL4cjs.findDocNodeByPath.call(void 0, _chunk4T6ETBL4cjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
454
454
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
455
455
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
456
456
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -507,7 +507,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
507
507
|
if (selectedPath === "") {
|
|
508
508
|
pathToFetch = folderIndexFile;
|
|
509
509
|
} else {
|
|
510
|
-
const node =
|
|
510
|
+
const node = _chunk4T6ETBL4cjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
511
511
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
512
512
|
const firstDocPath = findFirstDocPath(node);
|
|
513
513
|
if (!firstDocPath) {
|
|
@@ -548,16 +548,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
548
548
|
if (node.type === "folder") {
|
|
549
549
|
setExpandedNodes((prev) => {
|
|
550
550
|
if (prev.has(node.id)) {
|
|
551
|
-
const ancestorIds =
|
|
551
|
+
const ancestorIds = _chunk4T6ETBL4cjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
552
552
|
ancestorIds.pop();
|
|
553
553
|
return new Set(ancestorIds);
|
|
554
554
|
}
|
|
555
|
-
return new Set(
|
|
555
|
+
return new Set(_chunk4T6ETBL4cjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
556
556
|
});
|
|
557
557
|
} else {
|
|
558
558
|
const lastSlash = node.path.lastIndexOf("/");
|
|
559
559
|
if (lastSlash > 0) {
|
|
560
|
-
setExpandedNodes(new Set(
|
|
560
|
+
setExpandedNodes(new Set(_chunk4T6ETBL4cjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
lastFetchedPath.current = null;
|
|
@@ -572,7 +572,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
572
572
|
const hashIndex = path.indexOf("#");
|
|
573
573
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
574
574
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
575
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
575
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunk4T6ETBL4cjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
576
576
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
577
577
|
_chunkSA7LDEVJcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkSA7LDEVJcjs.HUB_HEADER_OFFSET_PX });
|
|
578
578
|
return;
|
|
@@ -636,15 +636,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
636
636
|
return docNavigation.register({
|
|
637
637
|
baseRoute: normalizedBaseRoute,
|
|
638
638
|
findNodeByPath: (path) => {
|
|
639
|
-
const clean =
|
|
640
|
-
return _nullishCoalesce(
|
|
639
|
+
const clean = _chunk4T6ETBL4cjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
640
|
+
return _nullishCoalesce(_chunk4T6ETBL4cjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
641
641
|
},
|
|
642
642
|
selectNode
|
|
643
643
|
});
|
|
644
644
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
645
645
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
646
646
|
if (!selectedPath || structure.length === 0) return false;
|
|
647
|
-
const node =
|
|
647
|
+
const node = _chunk4T6ETBL4cjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
648
648
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
649
649
|
}, [selectedPath, structure]);
|
|
650
650
|
return {
|
|
@@ -724,14 +724,14 @@ function DocViewerContent({
|
|
|
724
724
|
},
|
|
725
725
|
docPath
|
|
726
726
|
);
|
|
727
|
-
const { activeSection, handleSectionClick } =
|
|
727
|
+
const { activeSection, handleSectionClick } = _chunk2SBHPHLScjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
728
728
|
const docNav = useDocNavigation();
|
|
729
729
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
730
730
|
const backCfg = backButton === false ? null : {
|
|
731
731
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
732
732
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
733
733
|
};
|
|
734
|
-
const docSearch =
|
|
734
|
+
const docSearch = _chunkXMNLPQ75cjs.useDocSearch.call(void 0, {
|
|
735
735
|
source: chatSource,
|
|
736
736
|
baseRoute,
|
|
737
737
|
searchEndpoint,
|
|
@@ -755,7 +755,7 @@ function DocViewerContent({
|
|
|
755
755
|
onResolveLink: resolveLink
|
|
756
756
|
});
|
|
757
757
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
758
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
758
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunk4T6ETBL4cjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
759
759
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
760
760
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
761
761
|
const showStickyNav = isMarkdownContent;
|
|
@@ -766,9 +766,9 @@ function DocViewerContent({
|
|
|
766
766
|
const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
|
|
767
767
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
768
768
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
769
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
769
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7LTG6CJ3cjs.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: [
|
|
770
770
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
771
|
-
|
|
771
|
+
_chunkXMNLPQ75cjs.DocSearchBar,
|
|
772
772
|
{
|
|
773
773
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _19 => _19.toLowerCase, 'call', _20 => _20()]) || "documents"}...`,
|
|
774
774
|
query: docSearch.query,
|
|
@@ -787,9 +787,9 @@ function DocViewerContent({
|
|
|
787
787
|
] })
|
|
788
788
|
] }) }),
|
|
789
789
|
!error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 content-lg:flex-row content-lg:gap-10", children: [
|
|
790
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
790
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU5BRSRXAcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
791
791
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
792
|
-
|
|
792
|
+
_chunk2SBHPHLScjs.MobileNavigationDropdown,
|
|
793
793
|
{
|
|
794
794
|
nodes: structure,
|
|
795
795
|
selectedPath,
|
|
@@ -803,7 +803,7 @@ function DocViewerContent({
|
|
|
803
803
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
804
804
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
805
805
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
806
|
-
|
|
806
|
+
_chunk2SBHPHLScjs.MultiLevelNavigation,
|
|
807
807
|
{
|
|
808
808
|
nodes: structure,
|
|
809
809
|
selectedPath,
|
|
@@ -842,7 +842,7 @@ function DocViewerContent({
|
|
|
842
842
|
showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
843
843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
|
|
844
844
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
845
|
-
|
|
845
|
+
_chunk2SBHPHLScjs.StickySectionNav,
|
|
846
846
|
{
|
|
847
847
|
sections: stickyNavSections,
|
|
848
848
|
activeSection,
|
|
@@ -857,7 +857,7 @@ function DocViewerContent({
|
|
|
857
857
|
) })
|
|
858
858
|
] })
|
|
859
859
|
] }) }) });
|
|
860
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
860
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU5BRSRXAcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
861
861
|
}
|
|
862
862
|
|
|
863
863
|
// src/components/docs/skeletons.tsx
|
|
@@ -953,11 +953,11 @@ function EmbedSkeleton({ documentType } = {}) {
|
|
|
953
953
|
|
|
954
954
|
var DEFAULT_TITLE = "Documents";
|
|
955
955
|
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" }) });
|
|
956
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
957
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
958
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
956
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2UZS3ZH7cjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
957
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2UZS3ZH7cjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
958
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU5BRSRXAcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
959
959
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
960
|
-
|
|
960
|
+
_chunk2UZS3ZH7cjs.FileDownloadCard,
|
|
961
961
|
{
|
|
962
962
|
fileName: content.fileName,
|
|
963
963
|
mimeType: content.mimeType,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7F3V45AHcjs = require('./chunk-7F3V45AH.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -51,7 +51,7 @@ function pickBadgePaletteColor({
|
|
|
51
51
|
var _jsxruntime = require('react/jsx-runtime');
|
|
52
52
|
function PaletteBadge({ text, color, className, variant = "button" }) {
|
|
53
53
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
54
|
-
|
|
54
|
+
_chunk7F3V45AHcjs.StatusBadge,
|
|
55
55
|
{
|
|
56
56
|
text,
|
|
57
57
|
colorScheme: isBadgePaletteKey(color) ? color : "default",
|
|
@@ -204,7 +204,7 @@ var STATUS_BADGE_SCHEME = {
|
|
|
204
204
|
abandoned: "default"
|
|
205
205
|
};
|
|
206
206
|
function EmployeeEntryBadge({ children }) {
|
|
207
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
207
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7F3V45AHcjs.StatusBadge, { text: children, colorScheme: "default", variant: "button", singleLine: true });
|
|
208
208
|
}
|
|
209
209
|
function EmployeeEntryCard({
|
|
210
210
|
entry,
|
|
@@ -217,7 +217,7 @@ function EmployeeEntryCard({
|
|
|
217
217
|
className
|
|
218
218
|
}) {
|
|
219
219
|
const card = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
220
|
-
|
|
220
|
+
_chunk7F3V45AHcjs.AdminContentCard,
|
|
221
221
|
{
|
|
222
222
|
imageUrl: entry.featured_image || entry.main_video_thumbnail,
|
|
223
223
|
placeholderUrl,
|
|
@@ -225,7 +225,7 @@ function EmployeeEntryCard({
|
|
|
225
225
|
summary: (_nullishCoalesce(entry.summary, () => ( ""))).slice(0, 140) || "No description",
|
|
226
226
|
badges: entry.status || extraBadges ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
227
227
|
entry.status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
228
|
-
|
|
228
|
+
_chunk7F3V45AHcjs.StatusBadge,
|
|
229
229
|
{
|
|
230
230
|
text: entry.status,
|
|
231
231
|
colorScheme: _nullishCoalesce(STATUS_BADGE_SCHEME[entry.status], () => ( "default")),
|
|
@@ -240,7 +240,7 @@ function EmployeeEntryCard({
|
|
|
240
240
|
_optionalChain([entry, 'access', _8 => _8.author, 'optionalAccess', _9 => _9.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
241
241
|
_chunkUR4K2NSLcjs.next_image_default,
|
|
242
242
|
{
|
|
243
|
-
src: _nullishCoalesce(
|
|
243
|
+
src: _nullishCoalesce(_chunk7F3V45AHcjs.getProxiedImageUrl2.call(void 0, entry.author.avatar_url), () => ( entry.author.avatar_url)),
|
|
244
244
|
alt: "",
|
|
245
245
|
className: "h-[1lh] w-[1lh] shrink-0 rounded-full object-cover",
|
|
246
246
|
width: 20,
|