@flamingo-stack/openframe-frontend-core 0.0.740 → 0.0.742
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-BV5WZVOP.cjs → chunk-32Q7K5OP.cjs} +254 -254
- package/dist/{chunk-ZLTCQKTD.cjs → chunk-3LW43GIJ.cjs} +6 -6
- package/dist/{chunk-VA7OMDZO.cjs → chunk-4FWURR3W.cjs} +50 -50
- package/dist/{chunk-EKGL5K5K.cjs → chunk-4LDU32OB.cjs} +17 -17
- package/dist/{chunk-VC4IV3AY.cjs → chunk-4PKORVOX.cjs} +2804 -954
- package/dist/{chunk-3ZIQOYNX.cjs → chunk-54EA4RLX.cjs} +8 -8
- package/dist/{chunk-YXKB5WRE.cjs → chunk-5MH6BRPY.cjs} +36 -36
- package/dist/{chunk-PQ2M7P2U.cjs → chunk-5TCIRWHL.cjs} +9 -9
- package/dist/{chunk-WFPCCBOM.cjs → chunk-7AM3AFM4.cjs} +10 -10
- package/dist/{chunk-7ZFCR7UY.cjs → chunk-ABLUMGCI.cjs} +3 -3
- package/dist/{chunk-PX7FY655.cjs → chunk-ASMNNSUQ.cjs} +3 -3
- package/dist/{chunk-HF7Z2E4W.cjs → chunk-BI3XBCQX.cjs} +2 -2
- package/dist/{chunk-SA7LDEVJ.cjs → chunk-CSJO7ZGN.cjs} +3 -3
- package/dist/{chunk-VOX4E6AX.cjs → chunk-DGFDBPO7.cjs} +7 -5
- package/dist/{chunk-KHXZFLIN.cjs → chunk-DKOLQPE7.cjs} +8 -2
- package/dist/{chunk-BDA5F6RM.cjs → chunk-DNFSMVXJ.cjs} +16 -16
- package/dist/{chunk-B3XBJCOD.cjs → chunk-H3UA7UY5.cjs} +7 -7
- package/dist/{chunk-2Y5Y4FLM.cjs → chunk-HDBY2URA.cjs} +64 -64
- package/dist/{chunk-UW3YXDC4.cjs → chunk-HIRVNBX5.cjs} +20 -20
- package/dist/{chunk-LLAC2UZ3.cjs → chunk-ISJXKKYW.cjs} +28 -28
- package/dist/{chunk-FICJS5OA.cjs → chunk-KTPR66EE.cjs} +4 -4
- package/dist/{chunk-7UIQPMBJ.cjs → chunk-L34TKFTS.cjs} +21 -164
- package/dist/{chunk-AAFW4STC.cjs → chunk-LU7TD6QS.cjs} +5 -5
- package/dist/{chunk-3HPB4H4C.cjs → chunk-NTGIQP7O.cjs} +7 -7
- package/dist/{chunk-WBANGORJ.cjs → chunk-OBODY7F3.cjs} +3 -3
- package/dist/{chunk-GABDE3FM.cjs → chunk-OWGLRE74.cjs} +19 -19
- package/dist/{chunk-CWRVTQUO.cjs → chunk-PS6T65KA.cjs} +101 -101
- package/dist/{chunk-IFS4AH77.cjs → chunk-QYLIHZKZ.cjs} +10 -10
- package/dist/{chunk-GVTDVS5U.cjs → chunk-R34JD6NP.cjs} +3 -3
- package/dist/{chunk-VU4CKUJW.cjs → chunk-R6SCSV2I.cjs} +103 -103
- package/dist/{chunk-II4QMH26.cjs → chunk-STEJZPIO.cjs} +3 -3
- package/dist/{chunk-4RLGLB45.cjs → chunk-T433HSL6.cjs} +47 -47
- package/dist/{chunk-DSVNFRY5.cjs → chunk-U2O5YQRP.cjs} +38 -38
- package/dist/{chunk-O67V3HJR.cjs → chunk-URVIPSAJ.cjs} +24 -24
- package/dist/{chunk-HYBMADYO.cjs → chunk-UWHCRIQQ.cjs} +22 -22
- package/dist/{chunk-GSWQZX23.cjs → chunk-UY6A6TEY.cjs} +2 -2
- package/dist/{chunk-D5KEWWLW.cjs → chunk-UZLRSFGG.cjs} +32 -32
- package/dist/{chunk-DUVOQHQI.cjs → chunk-W2RM764D.cjs} +7 -7
- package/dist/{chunk-NTJE6SM6.cjs → chunk-WI2OTGKC.cjs} +2 -2
- package/dist/{chunk-SFY4UYPY.cjs → chunk-WIHHA54J.cjs} +44 -44
- package/dist/{chunk-YRE3O65E.cjs → chunk-XAA5EZ5T.cjs} +12 -12
- package/dist/{chunk-KLI4OSRA.cjs → chunk-YQGDXH3M.cjs} +2 -2
- package/dist/{chunk-SWR22DOZ.cjs → chunk-Z2DQYKZA.cjs} +89 -89
- package/dist/{chunk-5SVOGLNK.cjs → chunk-ZIFYSLIM.cjs} +6 -6
- package/dist/{cloud-tenants-PVXDI5MU.cjs → cloud-tenants-6ICAL3HO.cjs} +34 -34
- package/dist/components/case-studies/index.cjs +37 -37
- package/dist/components/chat/index.cjs +17 -17
- package/dist/components/contact/index.cjs +25 -25
- package/dist/components/docs/index.cjs +28 -28
- package/dist/components/embeds/index.cjs +25 -25
- package/dist/components/faq/index.cjs +26 -26
- package/dist/components/features/capability-explorer.d.ts +9 -2
- package/dist/components/features/capability-explorer.d.ts.map +1 -1
- package/dist/components/features/capability-explorer.js +113 -6
- package/dist/components/features/index.cjs +162 -24
- package/dist/components/features/index.d.ts +1 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/index.js +1 -0
- package/dist/components/features/scripts/execution-cells.d.ts +65 -0
- package/dist/components/features/scripts/execution-cells.d.ts.map +1 -0
- package/dist/components/features/scripts/execution-cells.js +75 -0
- package/dist/components/features/scripts/execution-status.d.ts +48 -0
- package/dist/components/features/scripts/execution-status.d.ts.map +1 -0
- package/dist/components/features/scripts/execution-status.js +15 -0
- package/dist/components/features/scripts/index.d.ts +20 -0
- package/dist/components/features/scripts/index.d.ts.map +1 -0
- package/dist/components/features/scripts/index.js +59 -0
- package/dist/components/features/scripts/schedule-form/index.d.ts +18 -0
- package/dist/components/features/scripts/schedule-form/index.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/index.js +84 -0
- package/dist/components/features/scripts/schedule-form/schedule-enums.d.ts +24 -0
- package/dist/components/features/scripts/schedule-form/schedule-enums.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-enums.js +18 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-fields.d.ts +57 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-fields.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-fields.js +169 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-types.d.ts +138 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-types.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-types.js +72 -0
- package/dist/components/features/scripts/schedule-form/schedule-interval-input.d.ts +54 -0
- package/dist/components/features/scripts/schedule-form/schedule-interval-input.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-interval-input.js +60 -0
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.d.ts +29 -0
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.js +124 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.d.ts +52 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.js +244 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-search-field.d.ts +35 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-search-field.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-search-field.js +58 -0
- package/dist/components/features/scripts/schedule-form/schedule-scripts-field.d.ts +25 -0
- package/dist/components/features/scripts/schedule-form/schedule-scripts-field.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-scripts-field.js +66 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts +77 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.js +262 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing.d.ts +288 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing.js +165 -0
- package/dist/components/features/scripts/script-cells.d.ts +11 -0
- package/dist/components/features/scripts/script-cells.d.ts.map +1 -0
- package/dist/components/features/scripts/script-cells.js +19 -0
- package/dist/components/features/scripts/script-executions-table.d.ts +58 -0
- package/dist/components/features/scripts/script-executions-table.d.ts.map +1 -0
- package/dist/components/features/scripts/script-executions-table.js +88 -0
- package/dist/components/features/scripts/script-schedules-table.d.ts +38 -0
- package/dist/components/features/scripts/script-schedules-table.d.ts.map +1 -0
- package/dist/components/features/scripts/script-schedules-table.js +71 -0
- package/dist/components/features/scripts/script-shell-badge.d.ts +9 -0
- package/dist/components/features/scripts/script-shell-badge.d.ts.map +1 -0
- package/dist/components/features/scripts/script-shell-badge.js +15 -0
- package/dist/components/features/scripts/scripts-table-columns.d.ts +162 -0
- package/dist/components/features/scripts/scripts-table-columns.d.ts.map +1 -0
- package/dist/components/features/scripts/scripts-table-columns.js +69 -0
- package/dist/components/features/scripts/scripts-table-shared.d.ts +19 -0
- package/dist/components/features/scripts/scripts-table-shared.d.ts.map +1 -0
- package/dist/components/features/scripts/scripts-table-shared.js +35 -0
- package/dist/components/features/scripts/scripts-table.d.ts +40 -0
- package/dist/components/features/scripts/scripts-table.d.ts.map +1 -0
- package/dist/components/features/scripts/scripts-table.js +84 -0
- package/dist/components/features/scripts/scripts-tabs.d.ts +5 -0
- package/dist/components/features/scripts/scripts-tabs.d.ts.map +1 -0
- package/dist/components/features/scripts/scripts-tabs.js +10 -0
- package/dist/components/features/scripts/shell-types.d.ts +13 -0
- package/dist/components/features/scripts/shell-types.d.ts.map +1 -0
- package/dist/components/features/scripts/shell-types.js +21 -0
- package/dist/components/help-center-pages/index.cjs +144 -144
- package/dist/components/index.cjs +224 -86
- package/dist/components/meeting-scheduler/index.cjs +74 -74
- package/dist/components/navigation/index.cjs +27 -27
- package/dist/components/onboarding-guides/index.cjs +27 -27
- package/dist/components/product-demo/fixtures/scripts.d.ts +34 -0
- package/dist/components/product-demo/fixtures/scripts.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/scripts.js +123 -0
- package/dist/components/product-demo/fixtures/shared.d.ts +8 -0
- package/dist/components/product-demo/fixtures/shared.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/shared.js +7 -1
- package/dist/components/product-demo/fixtures/software-update.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/software-update.js +1 -5
- package/dist/components/product-demo/index.cjs +16 -13
- package/dist/components/product-demo/product-screen.d.ts.map +1 -1
- package/dist/components/product-demo/product-screen.js +2 -1
- package/dist/components/product-demo/registry.d.ts.map +1 -1
- package/dist/components/product-demo/registry.js +2 -1
- package/dist/components/product-demo/screen-keys.cjs +2 -1
- package/dist/components/product-demo/screen-keys.d.ts +1 -0
- package/dist/components/product-demo/screen-keys.d.ts.map +1 -1
- package/dist/components/product-demo/screen-keys.js +2 -1
- package/dist/components/product-demo/screens/scripts.d.ts +11 -0
- package/dist/components/product-demo/screens/scripts.d.ts.map +1 -0
- package/dist/components/product-demo/screens/scripts.js +130 -0
- package/dist/components/related-content/index.cjs +12 -12
- package/dist/components/tickets/index.cjs +30 -30
- package/dist/components/ui/index.cjs +24 -24
- package/dist/{devices-TWEA7XOR.cjs → devices-OFP2IBKN.cjs} +30 -30
- package/dist/{embeddable-chat-6JKKFQEB.cjs → embeddable-chat-4C22MGNC.cjs} +92 -92
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +169 -31
- package/dist/{knowledge-4GQDBNQB.cjs → knowledge-KKBCSNUA.cjs} +29 -29
- package/dist/{logs-EVU6GJHZ.cjs → logs-X2GRNO57.cjs} +46 -46
- package/dist/{policies-OZUEA5YS.cjs → policies-35BXKB6P.cjs} +31 -31
- package/dist/{remote-session-DNFZ5OLY.cjs → remote-session-N4PJB5FW.cjs} +15 -15
- package/dist/scripts-KQYVQOLU.cjs +2112 -0
- package/dist/{software-update-BLIVYOY2.cjs → software-update-ED33WSKT.cjs} +36 -40
- package/dist/{tickets-board-CKZRB6YV.cjs → tickets-board-O753S4ZB.cjs} +31 -31
- package/dist/utils/embed-authed-fetch.d.ts +33 -0
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/embed-authed-fetch.js +3 -1
- package/dist/utils/index.cjs +3 -1
- package/dist/{video-file-player-ZH2ILAPO.cjs → video-file-player-QZ3YOLHO.cjs} +2 -2
- package/package.json +1 -1
- package/src/components/features/capability-explorer.tsx +134 -7
- package/src/components/features/index.ts +1 -0
- package/src/components/features/scripts/execution-cells.tsx +149 -0
- package/src/components/features/scripts/execution-status.ts +42 -0
- package/src/components/features/scripts/index.ts +42 -0
- package/src/components/features/scripts/schedule-form/index.ts +59 -0
- package/src/components/features/scripts/schedule-form/schedule-enums.ts +26 -0
- package/src/components/features/scripts/schedule-form/schedule-form-fields.tsx +249 -0
- package/src/components/features/scripts/schedule-form/schedule-form-types.ts +189 -0
- package/src/components/features/scripts/schedule-form/schedule-interval-input.tsx +121 -0
- package/src/components/features/scripts/schedule-form/schedule-offline-fields.tsx +218 -0
- package/src/components/features/scripts/schedule-form/schedule-script-picker-card.tsx +321 -0
- package/src/components/features/scripts/schedule-form/schedule-script-search-field.tsx +115 -0
- package/src/components/features/scripts/schedule-form/schedule-scripts-field.tsx +97 -0
- package/src/components/features/scripts/schedule-form/schedule-timing-fields.tsx +482 -0
- package/src/components/features/scripts/schedule-form/schedule-timing.ts +484 -0
- package/src/components/features/scripts/script-cells.tsx +29 -0
- package/src/components/features/scripts/script-executions-table.tsx +145 -0
- package/src/components/features/scripts/script-schedules-table.tsx +113 -0
- package/src/components/features/scripts/script-shell-badge.tsx +25 -0
- package/src/components/features/scripts/scripts-table-columns.ts +95 -0
- package/src/components/features/scripts/scripts-table-shared.tsx +43 -0
- package/src/components/features/scripts/scripts-table.tsx +124 -0
- package/src/components/features/scripts/scripts-tabs.ts +11 -0
- package/src/components/features/scripts/shell-types.ts +26 -0
- package/src/components/product-demo/fixtures/scripts.ts +186 -0
- package/src/components/product-demo/fixtures/shared.ts +7 -0
- package/src/components/product-demo/fixtures/software-update.ts +1 -7
- package/src/components/product-demo/product-screen.tsx +3 -1
- package/src/components/product-demo/registry.ts +1 -0
- package/src/components/product-demo/screen-keys.ts +1 -0
- package/src/components/product-demo/screens/scripts.tsx +192 -0
- package/src/utils/embed-authed-fetch.ts +42 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
6
6
|
|
|
7
7
|
// src/components/product-demo/cast.tsx
|
|
8
8
|
var _react = require('react');
|
|
@@ -10,11 +10,11 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
10
10
|
function resolveProductDemoCast(cast) {
|
|
11
11
|
return {
|
|
12
12
|
person: (key) => {
|
|
13
|
-
const person =
|
|
13
|
+
const person = _chunkDKOLQPE7cjs.DEMO_PEOPLE[key];
|
|
14
14
|
return { ...person, avatarUrl: _nullishCoalesce(_optionalChain([cast, 'optionalAccess', _ => _.people, 'optionalAccess', _2 => _2[person.slug], 'optionalAccess', _3 => _3.avatarUrl]), () => ( void 0)) };
|
|
15
15
|
},
|
|
16
16
|
organization: (key) => ({
|
|
17
|
-
...
|
|
17
|
+
..._chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS[key],
|
|
18
18
|
logoUrl: _nullishCoalesce(_optionalChain([cast, 'optionalAccess', _4 => _4.organizations, 'optionalAccess', _5 => _5[key], 'optionalAccess', _6 => _6.logoUrl]), () => ( void 0))
|
|
19
19
|
})
|
|
20
20
|
};
|
|
@@ -3,43 +3,43 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk54EA4RLXcjs = require('./chunk-54EA4RLX.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk4LDU32OBcjs = require('./chunk-4LDU32OB.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkDNFSMVXJcjs = require('./chunk-DNFSMVXJ.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk4PKORVOXcjs = require('./chunk-4PKORVOX.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkU2O5YQRPcjs = require('./chunk-U2O5YQRP.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkPS6T65KAcjs = require('./chunk-PS6T65KA.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkCSJO7ZGNcjs = require('./chunk-CSJO7ZGN.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -210,7 +210,7 @@ function useDocsResolveLink(sourceId, resolveLinkEndpoint) {
|
|
|
210
210
|
return _react.useCallback.call(void 0,
|
|
211
211
|
async (href, currentPath) => {
|
|
212
212
|
try {
|
|
213
|
-
const response = await
|
|
213
|
+
const response = await _chunkASMNNSUQcjs.contentFetch.call(void 0, resolvedResolveLinkEndpoint, {
|
|
214
214
|
method: "POST",
|
|
215
215
|
headers: { "Content-Type": "application/json" },
|
|
216
216
|
body: JSON.stringify({ link: href, currentPath, source: sourceId })
|
|
@@ -236,9 +236,9 @@ function useDocsResolveLink(sourceId, resolveLinkEndpoint) {
|
|
|
236
236
|
function scrollToContent() {
|
|
237
237
|
const article = document.querySelector("article");
|
|
238
238
|
if (article) {
|
|
239
|
-
|
|
239
|
+
_chunkCSJO7ZGNcjs.scrollElementIntoView.call(void 0, article, { headerOffset: _chunkCSJO7ZGNcjs.HUB_HEADER_OFFSET_PX });
|
|
240
240
|
} else {
|
|
241
|
-
|
|
241
|
+
_chunkCSJO7ZGNcjs.scrollElementIntoView.call(void 0, document.documentElement);
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
function findFirstDocPath(folder) {
|
|
@@ -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, () => ( _chunkPS6T65KAcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
341
|
+
const cleanInitialPath = _chunkPS6T65KAcjs.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 = _chunkPS6T65KAcjs.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(_chunkPS6T65KAcjs.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(_chunkPS6T65KAcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
389
389
|
}
|
|
390
390
|
setExternalNavCount((n) => n + 1);
|
|
391
391
|
}
|
|
@@ -399,7 +399,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
399
399
|
try {
|
|
400
400
|
setIsLoadingStructure(true);
|
|
401
401
|
setError(null);
|
|
402
|
-
const response = await
|
|
402
|
+
const response = await _chunkASMNNSUQcjs.contentFetch.call(void 0, structureEndpoint);
|
|
403
403
|
if (!response.ok) {
|
|
404
404
|
throw new Error("Failed to load documentation structure");
|
|
405
405
|
}
|
|
@@ -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(_chunkPS6T65KAcjs.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);
|
|
@@ -426,7 +426,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
} else {
|
|
429
|
-
setError(
|
|
429
|
+
setError(_chunkASMNNSUQcjs.apiErrorMessage.call(void 0, payload, "Failed to load documentation structure"));
|
|
430
430
|
}
|
|
431
431
|
} catch (err) {
|
|
432
432
|
console.error("Error fetching documentation structure:", err);
|
|
@@ -438,7 +438,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
438
438
|
const fetchContent = async (path) => {
|
|
439
439
|
try {
|
|
440
440
|
setIsLoadingContent(true);
|
|
441
|
-
const response = await
|
|
441
|
+
const response = await _chunkASMNNSUQcjs.contentFetch.call(void 0, `${contentEndpoint}?path=${encodeURIComponent(path)}`);
|
|
442
442
|
if (path !== lastFetchedPath.current) return;
|
|
443
443
|
if (!response.ok) {
|
|
444
444
|
if (response.status === 404) {
|
|
@@ -450,7 +450,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
450
450
|
setContent(null);
|
|
451
451
|
return;
|
|
452
452
|
}
|
|
453
|
-
const probe =
|
|
453
|
+
const probe = _chunkPS6T65KAcjs.findDocNodeByPath.call(void 0, _chunkPS6T65KAcjs.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) {
|
|
@@ -459,7 +459,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
459
459
|
setContent(null);
|
|
460
460
|
return;
|
|
461
461
|
}
|
|
462
|
-
setError(
|
|
462
|
+
setError(_chunkASMNNSUQcjs.apiErrorMessage.call(void 0, errorPayload, "Documentation file not found"));
|
|
463
463
|
setContent(null);
|
|
464
464
|
return;
|
|
465
465
|
}
|
|
@@ -477,7 +477,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
477
477
|
}
|
|
478
478
|
setContent(doc);
|
|
479
479
|
} else {
|
|
480
|
-
setError(
|
|
480
|
+
setError(_chunkASMNNSUQcjs.apiErrorMessage.call(void 0, payload, "Failed to load content"));
|
|
481
481
|
setContent(null);
|
|
482
482
|
}
|
|
483
483
|
} catch (err) {
|
|
@@ -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 = _chunkPS6T65KAcjs.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 = _chunkPS6T65KAcjs.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(_chunkPS6T65KAcjs.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(_chunkPS6T65KAcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
lastFetchedPath.current = null;
|
|
@@ -572,9 +572,9 @@ 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 : _chunkPS6T65KAcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
576
576
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
577
|
-
|
|
577
|
+
_chunkCSJO7ZGNcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkCSJO7ZGNcjs.HUB_HEADER_OFFSET_PX });
|
|
578
578
|
return;
|
|
579
579
|
}
|
|
580
580
|
const scrollAfterNav = () => {
|
|
@@ -582,7 +582,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
582
582
|
setTimeout(() => {
|
|
583
583
|
const el = document.getElementById(anchor.substring(1));
|
|
584
584
|
if (el) {
|
|
585
|
-
|
|
585
|
+
_chunkCSJO7ZGNcjs.scrollElementIntoView.call(void 0, el, { headerOffset: _chunkCSJO7ZGNcjs.HUB_HEADER_OFFSET_PX });
|
|
586
586
|
} else {
|
|
587
587
|
scrollToContent();
|
|
588
588
|
}
|
|
@@ -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 = _chunkPS6T65KAcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
640
|
+
return _nullishCoalesce(_chunkPS6T65KAcjs.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 = _chunkPS6T65KAcjs.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 } = _chunk4LDU32OBcjs.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 = _chunkDNFSMVXJcjs.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([_chunkPS6T65KAcjs.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, _chunkU2O5YQRPcjs.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
|
+
_chunkDNFSMVXJcjs.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, _chunk4PKORVOXcjs.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
|
+
_chunk4LDU32OBcjs.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
|
+
_chunk4LDU32OBcjs.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
|
+
_chunk4LDU32OBcjs.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, _chunk4PKORVOXcjs.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, _chunk54EA4RLXcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
957
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk54EA4RLXcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
958
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4PKORVOXcjs.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
|
+
_chunk54EA4RLXcjs.FileDownloadCard,
|
|
961
961
|
{
|
|
962
962
|
fileName: content.fileName,
|
|
963
963
|
mimeType: content.mimeType,
|