@flamingo-stack/openframe-frontend-core 0.0.815 → 0.0.817
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/{case-study-card-NLT2JVI7.cjs → case-study-card-IZBMHA6R.cjs} +3 -3
- package/dist/{chunk-7ERD34HQ.cjs → chunk-24M2JYM5.cjs} +566 -774
- package/dist/{chunk-3E4FIJAM.cjs → chunk-4ROR52OW.cjs} +15 -15
- package/dist/{chunk-SWBLTIN4.cjs → chunk-5TSYOIIZ.cjs} +54 -52
- package/dist/{chunk-JH65CEO4.cjs → chunk-6F4YGHGM.cjs} +36 -36
- package/dist/{chunk-VDXI26G7.cjs → chunk-7KBHLP4E.cjs} +81 -78
- package/dist/{chunk-CNTBGJA7.cjs → chunk-A34UNP5V.cjs} +65 -1
- package/dist/{chunk-633NTKO2.cjs → chunk-BL2J5RJK.cjs} +31 -53
- package/dist/{chunk-7NYWHEQM.cjs → chunk-C2OUXL3Q.cjs} +15 -15
- package/dist/{chunk-53JJLHJM.cjs → chunk-DSBRWP5M.cjs} +20 -20
- package/dist/chunk-DVHSYPDB.cjs +471 -0
- package/dist/{chunk-5TUR7O7H.cjs → chunk-EX7M3VQC.cjs} +90 -90
- package/dist/{chunk-EJCUAADF.cjs → chunk-F2LVBRHC.cjs} +4 -4
- package/dist/{chunk-GAR2IIU6.cjs → chunk-IM366HS6.cjs} +105 -157
- package/dist/{chunk-FUEK43FL.cjs → chunk-IOFIHVVW.cjs} +206 -200
- package/dist/{chunk-JOOZTRXQ.cjs → chunk-JMOCM2SW.cjs} +4 -4
- package/dist/{chunk-PAI4A3UM.cjs → chunk-K5IICQNF.cjs} +61 -54
- package/dist/{chunk-JOKOQOLJ.cjs → chunk-LUID2IB3.cjs} +2 -2
- package/dist/{chunk-L7W4455K.cjs → chunk-MAHJY2PO.cjs} +3 -3
- package/dist/{chunk-4PMD3JUC.cjs → chunk-NPNZAAOB.cjs} +2 -2
- package/dist/{chunk-EB7YAUER.cjs → chunk-P7JQGOX4.cjs} +19 -19
- package/dist/{chunk-O6VWD2SB.cjs → chunk-RDHF3F5R.cjs} +3 -3
- package/dist/{chunk-HM7VCQSX.cjs → chunk-SBFBNOKU.cjs} +4 -4
- package/dist/{chunk-7O7EX7HQ.cjs → chunk-T266OITJ.cjs} +28 -20
- package/dist/{chunk-ZAWHRYJZ.cjs → chunk-TKEYWSDZ.cjs} +45 -45
- package/dist/{chunk-F4ZJRMMM.cjs → chunk-UDLDXVY4.cjs} +8 -8
- package/dist/{chunk-Y6MJMPHV.cjs → chunk-UEULXVW2.cjs} +32 -84
- package/dist/{chunk-RYJJHSHV.cjs → chunk-UFBVOBYR.cjs} +23 -23
- package/dist/{chunk-IKB6AZPV.cjs → chunk-ZECG6GU5.cjs} +2 -2
- package/dist/{chunk-3ELDGEM2.cjs → chunk-ZP4JMX7G.cjs} +87 -84
- package/dist/{cloud-tenants-SRTX2FZC.cjs → cloud-tenants-NMAXIJLL.cjs} +11 -11
- package/dist/components/announcement-bar.d.ts.map +1 -1
- package/dist/components/announcement-bar.js +5 -5
- package/dist/components/case-studies/index.cjs +26 -26
- package/dist/components/chat/chat-markdown-link.d.ts +15 -0
- package/dist/components/chat/chat-markdown-link.d.ts.map +1 -0
- package/dist/components/chat/chat-markdown-link.js +22 -0
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +3 -9
- package/dist/components/chat/embeddable-chat.d.ts +4 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +30 -67
- package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/chat-card-disclosure.js +8 -11
- package/dist/components/chat/entity-cards/dispatch.d.ts +5 -5
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +18 -17
- package/dist/components/chat/entity-cards/github-activity-card.d.ts +1 -1
- package/dist/components/chat/entity-cards/use-entity-card-link.d.ts +3 -2
- package/dist/components/chat/entity-cards/use-entity-card-link.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/use-entity-card-link.js +6 -4
- package/dist/components/chat/index.cjs +28 -21
- package/dist/components/chat/index.d.ts +2 -2
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +4 -3
- package/dist/components/chat/{inline-app-link-chip.d.ts → inline-chip.d.ts} +1 -14
- package/dist/components/chat/inline-chip.d.ts.map +1 -0
- package/dist/components/chat/inline-chip.js +27 -0
- package/dist/components/chat/nav-link-anchor-via-runtime.d.ts +45 -11
- package/dist/components/chat/nav-link-anchor-via-runtime.d.ts.map +1 -1
- package/dist/components/chat/nav-link-anchor-via-runtime.js +32 -24
- package/dist/components/chat/source-action-button.d.ts +12 -3
- package/dist/components/chat/source-action-button.d.ts.map +1 -1
- package/dist/components/chat/source-action-button.js +41 -26
- package/dist/components/chat/types/component.types.d.ts +1 -1
- package/dist/components/chat/types/message.types.d.ts +1 -1
- package/dist/components/chat/types/message.types.d.ts.map +1 -1
- package/dist/components/chat/utils/chat-nav-resolution.d.ts +1 -6
- package/dist/components/chat/utils/chat-nav-resolution.d.ts.map +1 -1
- package/dist/components/chat/utils/chat-nav-resolution.js +2 -3
- package/dist/components/chat/utils/decide-new-tab.d.ts +0 -3
- package/dist/components/chat/utils/decide-new-tab.d.ts.map +1 -1
- package/dist/components/chat/utils/decide-new-tab.js +0 -1
- package/dist/components/chat/utils/execute-navigation.d.ts +36 -34
- package/dist/components/chat/utils/execute-navigation.d.ts.map +1 -1
- package/dist/components/chat/utils/execute-navigation.js +23 -19
- package/dist/components/chat/utils/index.d.ts +5 -5
- package/dist/components/chat/utils/index.d.ts.map +1 -1
- package/dist/components/chat/utils/index.js +14 -6
- package/dist/components/chat/utils/nav-anchor-props.d.ts +35 -8
- package/dist/components/chat/utils/nav-anchor-props.d.ts.map +1 -1
- package/dist/components/chat/utils/nav-anchor-props.js +14 -5
- package/dist/components/chat/utils/new-tab-rel.d.ts +15 -0
- package/dist/components/chat/utils/new-tab-rel.d.ts.map +1 -0
- package/dist/components/chat/utils/new-tab-rel.js +25 -0
- package/dist/components/contact/index.cjs +12 -12
- package/dist/components/docs/index.cjs +15 -15
- package/dist/components/embeds/index.cjs +12 -12
- package/dist/components/faq/index.cjs +13 -13
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +4 -1
- package/dist/components/features/index.cjs +11 -11
- package/dist/components/help-center-pages/index.cjs +105 -105
- package/dist/components/index.cjs +91 -83
- package/dist/components/meeting-scheduler/index.cjs +50 -50
- package/dist/components/navigation/app-header.d.ts +1 -4
- package/dist/components/navigation/app-header.d.ts.map +1 -1
- package/dist/components/navigation/app-header.js +0 -2
- package/dist/components/navigation/index.cjs +14 -14
- package/dist/components/navigation/ticket-alerts-button.d.ts +1 -4
- package/dist/components/navigation/ticket-alerts-button.d.ts.map +1 -1
- package/dist/components/navigation/ticket-alerts-button.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/related-content/card-registry.d.ts +1 -1
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/related-content/related-content-section.d.ts +3 -3
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/related-content/related-content-section.js +5 -3
- package/dist/components/shared/doc-search/resolve-search-result-action.d.ts +10 -3
- package/dist/components/shared/doc-search/resolve-search-result-action.d.ts.map +1 -1
- package/dist/components/shared/doc-search/resolve-search-result-action.js +8 -17
- package/dist/components/shared/doc-search/use-doc-search.d.ts.map +1 -1
- package/dist/components/shared/doc-search/use-doc-search.js +15 -27
- package/dist/components/shared/product-release/product-release-card.d.ts +2 -2
- package/dist/components/shared/product-release/product-releases-view.d.ts.map +1 -1
- package/dist/components/shared/product-release/product-releases-view.js +1 -3
- package/dist/components/tickets/index.cjs +18 -18
- package/dist/components/tickets/ticket-detail-drawer.d.ts.map +1 -1
- package/dist/components/tickets/ticket-detail-drawer.js +6 -3
- package/dist/components/tickets/types.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/hover-dropdown.d.ts +2 -2
- package/dist/components/ui/index.cjs +31 -23
- package/dist/components/ui/service-card.d.ts.map +1 -1
- package/dist/components/ui/service-card.js +4 -1
- package/dist/components/vendor-display-button.d.ts.map +1 -1
- package/dist/components/vendor-display-button.js +4 -1
- package/dist/contexts/chat-runtime-context.d.ts +11 -11
- package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
- package/dist/{devices-DL4YU64N.cjs → devices-QBKWVHE6.cjs} +12 -12
- package/dist/{embeddable-chat-YRKMPFDY.cjs → embeddable-chat-WNPCPMDL.cjs} +96 -137
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/use-contact-submission.d.ts.map +1 -1
- package/dist/hooks/use-contact-submission.js +11 -8
- package/dist/index.cjs +40 -34
- package/dist/{knowledge-VQW5JL2Z.cjs → knowledge-FSAYWM25.cjs} +12 -12
- package/dist/{logs-IY3WBLMW.cjs → logs-OZX4SYHG.cjs} +19 -19
- package/dist/{policies-IXWTWMJO.cjs → policies-LPCUCTLX.cjs} +15 -15
- package/dist/{scripts-D5CLO5EG.cjs → scripts-ZNFZSONW.cjs} +16 -16
- package/dist/{software-update-ULNP6CKJ.cjs → software-update-BRYOVQVY.cjs} +14 -14
- package/dist/utils/index.cjs +116 -89
- package/dist/utils/open-in-new-tab.d.ts +2 -1
- package/dist/utils/open-in-new-tab.d.ts.map +1 -1
- package/dist/utils/open-in-new-tab.js +2 -1
- package/dist/utils/scroll-into-view.d.ts +1 -1
- package/eslint-config/base.js +11 -0
- package/eslint-config/navigation.js +142 -0
- package/package.json +1 -1
- package/src/components/announcement-bar.tsx +8 -6
- package/src/components/chat/chat-markdown-link.tsx +42 -0
- package/src/components/chat/chat-message-enhanced.tsx +10 -36
- package/src/components/chat/embeddable-chat.tsx +63 -106
- package/src/components/chat/entity-cards/chat-card-disclosure.tsx +9 -13
- package/src/components/chat/entity-cards/dispatch.tsx +45 -35
- package/src/components/chat/entity-cards/github-activity-card.tsx +1 -1
- package/src/components/chat/entity-cards/use-entity-card-link.ts +11 -16
- package/src/components/chat/index.ts +3 -1
- package/src/components/chat/{inline-app-link-chip.tsx → inline-chip.tsx} +1 -27
- package/src/components/chat/nav-link-anchor-via-runtime.tsx +73 -33
- package/src/components/chat/source-action-button.tsx +57 -33
- package/src/components/chat/types/component.types.ts +1 -1
- package/src/components/chat/types/message.types.ts +1 -1
- package/src/components/chat/utils/chat-nav-resolution.ts +3 -8
- package/src/components/chat/utils/decide-new-tab.ts +0 -3
- package/src/components/chat/utils/execute-navigation.ts +58 -58
- package/src/components/chat/utils/index.ts +13 -6
- package/src/components/chat/utils/nav-anchor-props.ts +56 -9
- package/src/components/chat/utils/new-tab-rel.ts +39 -0
- package/src/components/features/devices/devices-table-columns.tsx +4 -1
- package/src/components/navigation/app-header.tsx +0 -5
- package/src/components/navigation/ticket-alerts-button.tsx +7 -8
- package/src/components/related-content/card-registry.tsx +1 -1
- package/src/components/related-content/related-content-section.tsx +10 -10
- package/src/components/shared/doc-search/resolve-search-result-action.ts +19 -33
- package/src/components/shared/doc-search/use-doc-search.ts +21 -44
- package/src/components/shared/product-release/product-release-card.tsx +4 -4
- package/src/components/shared/product-release/product-releases-view.tsx +2 -5
- package/src/components/tickets/ticket-detail-drawer.tsx +7 -4
- package/src/components/tickets/types.ts +1 -1
- package/src/components/ui/button/button.tsx +2 -2
- package/src/components/ui/hover-dropdown.tsx +2 -2
- package/src/components/ui/service-card.tsx +4 -1
- package/src/components/vendor-display-button.tsx +5 -2
- package/src/contexts/chat-runtime-context.tsx +15 -12
- package/src/hooks/use-contact-submission.ts +13 -8
- package/src/utils/index.ts +1 -1
- package/src/utils/open-in-new-tab.ts +4 -2
- package/src/utils/scroll-into-view.ts +1 -1
- package/dist/chunk-RD66AGUI.cjs +0 -156
- package/dist/components/chat/inline-app-link-chip.d.ts.map +0 -1
- package/dist/components/chat/inline-app-link-chip.js +0 -37
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkIOFIHVVWcjs = require('./chunk-IOFIHVVW.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk24M2JYM5cjs = require('./chunk-24M2JYM5.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var _chunkCNTBGJA7cjs = require('./chunk-CNTBGJA7.cjs');
|
|
14
13
|
|
|
15
14
|
|
|
16
|
-
var
|
|
15
|
+
var _chunkA34UNP5Vcjs = require('./chunk-A34UNP5V.cjs');
|
|
17
16
|
|
|
18
17
|
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
var _chunkGAR2IIU6cjs = require('./chunk-GAR2IIU6.cjs');
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var _chunkY6MJMPHVcjs = require('./chunk-Y6MJMPHV.cjs');
|
|
19
|
+
var _chunkDVHSYPDBcjs = require('./chunk-DVHSYPDB.cjs');
|
|
25
20
|
|
|
26
21
|
|
|
27
22
|
var _chunkFX35L4Y6cjs = require('./chunk-FX35L4Y6.cjs');
|
|
@@ -42,7 +37,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
42
37
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
43
38
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
44
39
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
45
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
40
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunk24M2JYM5cjs.resolveSourceIcon.call(void 0, {
|
|
46
41
|
sourceRepo,
|
|
47
42
|
documentType: docType
|
|
48
43
|
});
|
|
@@ -72,7 +67,7 @@ function DocSearchBar({
|
|
|
72
67
|
renderResult
|
|
73
68
|
}) {
|
|
74
69
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
75
|
-
|
|
70
|
+
_chunkIOFIHVVWcjs.SearchInput,
|
|
76
71
|
{
|
|
77
72
|
placeholder,
|
|
78
73
|
value: query,
|
|
@@ -122,7 +117,7 @@ function mapDocSearchResults(docs) {
|
|
|
122
117
|
results.push({
|
|
123
118
|
id: `group-${entry.repo}`,
|
|
124
119
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
125
|
-
title: `${
|
|
120
|
+
title: `${_chunk24M2JYM5cjs.getSourceLabel.call(void 0, entry.repo)} ${_chunk24M2JYM5cjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
126
121
|
path: rows[0].path,
|
|
127
122
|
type: "file",
|
|
128
123
|
metadata: {
|
|
@@ -164,10 +159,7 @@ function mapDocSearchResults(docs) {
|
|
|
164
159
|
}
|
|
165
160
|
|
|
166
161
|
// src/components/shared/doc-search/resolve-search-result-action.ts
|
|
167
|
-
function
|
|
168
|
-
return /^(?:[a-z][a-z0-9+.-]*:)?\/\//i.test(href);
|
|
169
|
-
}
|
|
170
|
-
function resolveSearchResultAction(result, source, runtimeMode, composeContentUrl) {
|
|
162
|
+
function resolveSearchResultAction(result, source, runtime, composeContentUrl) {
|
|
171
163
|
const meta = _nullishCoalesce(result.metadata, () => ( {}));
|
|
172
164
|
const externalUrl = meta.externalUrl;
|
|
173
165
|
const rowId = meta.id;
|
|
@@ -181,18 +173,11 @@ function resolveSearchResultAction(result, source, runtimeMode, composeContentUr
|
|
|
181
173
|
externalUrl,
|
|
182
174
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null))
|
|
183
175
|
}) : null;
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
href,
|
|
190
|
-
targetPlatform: composed ? composed.targetPlatform : targetPlatform,
|
|
191
|
-
surface: "useUnifiedNav",
|
|
192
|
-
runtimeMode,
|
|
193
|
-
currentSource: source
|
|
194
|
-
});
|
|
195
|
-
return isNewTab ? { kind: "navigate-new-tab", href } : { kind: "navigate-same-tab", href };
|
|
176
|
+
const hostRoute = !!_optionalChain([composed, 'optionalAccess', _10 => _10.href]) && _chunkDVHSYPDBcjs.isRelativeHref.call(void 0, composed.href);
|
|
177
|
+
const actionPlatform = composed ? composed.targetPlatform : _nullishCoalesce(targetPlatform, () => ( null));
|
|
178
|
+
const target = _chunkDVHSYPDBcjs.navLinkTarget.call(void 0, runtime, _optionalChain([composed, 'optionalAccess', _11 => _11.href]) || externalUrl, actionPlatform, { hostRoute });
|
|
179
|
+
const kind = target.isNewTab ? "navigate-new-tab" : "navigate-same-tab";
|
|
180
|
+
return hostRoute ? { kind, href: target.href, targetPlatform: actionPlatform, hostRoute } : { kind, href: target.href, targetPlatform: actionPlatform };
|
|
196
181
|
}
|
|
197
182
|
if (rowId && sourceRepo && documentType) {
|
|
198
183
|
return {
|
|
@@ -250,14 +235,13 @@ function toDocSearchResults(payload) {
|
|
|
250
235
|
function useDocSearch(config) {
|
|
251
236
|
const { source, baseRoute, onNavigate, tableIds, onInPageSwap, searchEndpoint, composeContentUrl } = config;
|
|
252
237
|
const tableIdsKey = tableIds && tableIds.length > 0 ? tableIds.join(",") : "";
|
|
253
|
-
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
254
238
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
255
|
-
const resolvedSearchEndpoint = _nullishCoalesce(_nullishCoalesce(searchEndpoint, () => ( _optionalChain([runtime, 'optionalAccess',
|
|
256
|
-
const resolvedComposeContentUrl = _nullishCoalesce(composeContentUrl, () => ( _optionalChain([runtime, 'optionalAccess',
|
|
239
|
+
const resolvedSearchEndpoint = _nullishCoalesce(_nullishCoalesce(searchEndpoint, () => ( _optionalChain([runtime, 'optionalAccess', _12 => _12.endpoints, 'access', _13 => _13.docsSearchUrl]))), () => ( "/api/docs/search"));
|
|
240
|
+
const resolvedComposeContentUrl = _nullishCoalesce(composeContentUrl, () => ( _optionalChain([runtime, 'optionalAccess', _14 => _14.composeContentUrl])));
|
|
257
241
|
const [query, setQuery] = _react.useState.call(void 0, "");
|
|
258
242
|
const [results, setResults] = _react.useState.call(void 0, NO_RESULTS);
|
|
259
243
|
const [isFetching, setIsFetching] = _react.useState.call(void 0, false);
|
|
260
|
-
const debouncedQuery =
|
|
244
|
+
const debouncedQuery = _chunkA34UNP5Vcjs.useDebounce.call(void 0, query, 300);
|
|
261
245
|
const searchable = debouncedQuery.trim().length >= 2;
|
|
262
246
|
const [wasSearchable, setWasSearchable] = _react.useState.call(void 0, searchable);
|
|
263
247
|
if (wasSearchable !== searchable) {
|
|
@@ -308,37 +292,31 @@ function useDocSearch(config) {
|
|
|
308
292
|
const [keepOpen, setKeepOpen] = _react.useState.call(void 0, false);
|
|
309
293
|
const handleResultSelect = _react.useCallback.call(void 0,
|
|
310
294
|
(result, modifiers) => {
|
|
311
|
-
const action = resolveSearchResultAction(result, source,
|
|
295
|
+
const action = resolveSearchResultAction(result, source, runtime, resolvedComposeContentUrl);
|
|
312
296
|
const wantsNewTab = modifiers && (modifiers.metaKey || modifiers.ctrlKey || modifiers.shiftKey || modifiers.altKey || typeof modifiers.button === "number" && modifiers.button !== 0);
|
|
313
297
|
switch (action.kind) {
|
|
314
|
-
case "navigate-same-tab":
|
|
298
|
+
case "navigate-same-tab":
|
|
299
|
+
case "navigate-new-tab": {
|
|
315
300
|
if (wantsNewTab) {
|
|
316
301
|
setKeepOpen(true);
|
|
317
|
-
|
|
302
|
+
_chunkA34UNP5Vcjs.executeNewTabNavigation.call(void 0, { runtime, href: action.href, targetPlatform: action.targetPlatform });
|
|
318
303
|
return;
|
|
319
304
|
}
|
|
320
|
-
setKeepOpen(
|
|
305
|
+
setKeepOpen(action.kind === "navigate-new-tab");
|
|
321
306
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
322
|
-
if (path && _optionalChain([onInPageSwap, 'optionalCall',
|
|
323
|
-
|
|
307
|
+
if (action.kind === "navigate-same-tab" && path && _optionalChain([onInPageSwap, 'optionalCall', _15 => _15(path)])) return;
|
|
308
|
+
_chunkA34UNP5Vcjs.executeNavigationImperative.call(void 0, {
|
|
309
|
+
runtime,
|
|
310
|
+
href: action.href,
|
|
311
|
+
path,
|
|
312
|
+
targetPlatform: action.targetPlatform,
|
|
313
|
+
hostRoute: action.hostRoute
|
|
314
|
+
});
|
|
324
315
|
return;
|
|
325
316
|
}
|
|
326
|
-
case "navigate-new-tab":
|
|
327
|
-
setKeepOpen(true);
|
|
328
|
-
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
329
|
-
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
330
|
-
_chunkGAR2IIU6cjs.resolveExternalNavigation.call(void 0, {
|
|
331
|
-
href: action.href,
|
|
332
|
-
targetPlatform,
|
|
333
|
-
runtime
|
|
334
|
-
}).open();
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
|
-
window.open(action.href, "_blank", _chunkGAR2IIU6cjs.NEW_TAB_FEATURES);
|
|
338
|
-
return;
|
|
339
317
|
case "ask-ai":
|
|
340
318
|
setKeepOpen(false);
|
|
341
|
-
window.dispatchEvent(new CustomEvent(
|
|
319
|
+
window.dispatchEvent(new CustomEvent(_chunk24M2JYM5cjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
342
320
|
return;
|
|
343
321
|
case "route":
|
|
344
322
|
setKeepOpen(false);
|
|
@@ -348,7 +326,7 @@ function useDocSearch(config) {
|
|
|
348
326
|
return;
|
|
349
327
|
}
|
|
350
328
|
},
|
|
351
|
-
[onNavigate, source, baseRoute,
|
|
329
|
+
[onNavigate, source, baseRoute, onInPageSwap, runtime, resolvedComposeContentUrl]
|
|
352
330
|
);
|
|
353
331
|
const [keepOpenForQuery, setKeepOpenForQuery] = _react.useState.call(void 0, query);
|
|
354
332
|
if (keepOpenForQuery !== query) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7KBHLP4Ecjs = require('./chunk-7KBHLP4E.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkZRDVFADQcjs = require('./chunk-ZRDVFADQ.cjs');
|
|
@@ -14,7 +14,7 @@ var _chunkZRDVFADQcjs = require('./chunk-ZRDVFADQ.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkA34UNP5Vcjs = require('./chunk-A34UNP5V.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -230,7 +230,7 @@ function useSectionNavigation(sections, options) {
|
|
|
230
230
|
if (!targetElement) return;
|
|
231
231
|
isScrollingFromClick.current = true;
|
|
232
232
|
setActiveSection(sectionId);
|
|
233
|
-
|
|
233
|
+
_chunkA34UNP5Vcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset: offset });
|
|
234
234
|
setTimeout(() => {
|
|
235
235
|
isScrollingFromClick.current = false;
|
|
236
236
|
}, 500);
|
|
@@ -283,13 +283,13 @@ var SCROLL_OFFSET = 100;
|
|
|
283
283
|
var ID_SEPARATOR = "\n";
|
|
284
284
|
var LINE_TOLERANCE_PX = 1;
|
|
285
285
|
function currentHashId() {
|
|
286
|
-
return
|
|
286
|
+
return _chunkA34UNP5Vcjs.normalizeHashFragment.call(void 0, window.location.hash).slice(1);
|
|
287
287
|
}
|
|
288
288
|
function activeChildAnchor(section) {
|
|
289
|
-
return _nullishCoalesce(_optionalChain([section, 'access', _10 => _10.querySelector, 'call', _11 => _11(`[${
|
|
289
|
+
return _nullishCoalesce(_optionalChain([section, 'access', _10 => _10.querySelector, 'call', _11 => _11(`[${_chunkA34UNP5Vcjs.ACTIVE_ANCHOR_ATTRIBUTE}][id]`), 'optionalAccess', _12 => _12.id]), () => ( null));
|
|
290
290
|
}
|
|
291
291
|
function hashIsWithin(section) {
|
|
292
|
-
return section.contains(
|
|
292
|
+
return section.contains(_chunkA34UNP5Vcjs.getHashTargetElement.call(void 0, currentHashId()));
|
|
293
293
|
}
|
|
294
294
|
function hashForSection(sectionId) {
|
|
295
295
|
const section = document.getElementById(sectionId);
|
|
@@ -297,7 +297,7 @@ function hashForSection(sectionId) {
|
|
|
297
297
|
return _nullishCoalesce(activeChildAnchor(section), () => ( (hashIsWithin(section) ? currentHashId() : sectionId)));
|
|
298
298
|
}
|
|
299
299
|
function resolveScroller(firstSection) {
|
|
300
|
-
const container = firstSection ?
|
|
300
|
+
const container = firstSection ? _chunkA34UNP5Vcjs.getScrollableAncestor.call(void 0, firstSection) : null;
|
|
301
301
|
if (container) {
|
|
302
302
|
return {
|
|
303
303
|
target: container,
|
|
@@ -327,8 +327,8 @@ function useScrollSpy(sections, options = {}) {
|
|
|
327
327
|
if (!targetElement) return;
|
|
328
328
|
isScrollingFromClick.current = true;
|
|
329
329
|
setActiveSection(sectionId);
|
|
330
|
-
if (syncHash)
|
|
331
|
-
|
|
330
|
+
if (syncHash) _chunkA34UNP5Vcjs.replaceLocationHash.call(void 0, _nullishCoalesce(activeChildAnchor(targetElement), () => ( sectionId)));
|
|
331
|
+
_chunkA34UNP5Vcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset });
|
|
332
332
|
setTimeout(() => {
|
|
333
333
|
isScrollingFromClick.current = false;
|
|
334
334
|
}, 800);
|
|
@@ -344,7 +344,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
344
344
|
const scrollTop = scroller.scrollTop();
|
|
345
345
|
const viewportTop = scroller.viewportTop();
|
|
346
346
|
const sectionTop = (element) => element.getBoundingClientRect().top - viewportTop + scrollTop;
|
|
347
|
-
const reached = (element) => scrollTop + Math.max(headerOffset,
|
|
347
|
+
const reached = (element) => scrollTop + Math.max(headerOffset, _chunkA34UNP5Vcjs.declaredScrollMarginTop.call(void 0, element)) + LINE_TOLERANCE_PX >= sectionTop(element);
|
|
348
348
|
const first = document.getElementById(_nullishCoalesce(sectionIds[0], () => ( "")));
|
|
349
349
|
let currentSection = _nullishCoalesce(sectionIds[0], () => ( ""));
|
|
350
350
|
const scrollHeight = scroller.scrollHeight();
|
|
@@ -367,16 +367,16 @@ function useScrollSpy(sections, options = {}) {
|
|
|
367
367
|
setActiveSection((prev) => prev !== active ? active : prev);
|
|
368
368
|
if (!syncHash) return;
|
|
369
369
|
if (fromScroll) {
|
|
370
|
-
|
|
370
|
+
_chunkA34UNP5Vcjs.replaceLocationHash.call(void 0, isAboveFirst ? null : hashForSection(currentSection));
|
|
371
371
|
return;
|
|
372
372
|
}
|
|
373
|
-
if (restoredChecked.current || !
|
|
374
|
-
const target =
|
|
373
|
+
if (restoredChecked.current || !_chunkA34UNP5Vcjs.isScrollSyncedHash.call(void 0, )) return;
|
|
374
|
+
const target = _chunkA34UNP5Vcjs.getHashTargetElement.call(void 0, currentHashId());
|
|
375
375
|
const tracked = sectionIds.some((id) => _nullishCoalesce(_optionalChain([document, 'access', _17 => _17.getElementById, 'call', _18 => _18(id), 'optionalAccess', _19 => _19.contains, 'call', _20 => _20(target)]), () => ( false)));
|
|
376
376
|
if (!target || !tracked) return;
|
|
377
377
|
restoredChecked.current = true;
|
|
378
378
|
const section = isAboveFirst ? null : document.getElementById(currentSection);
|
|
379
|
-
if (!_optionalChain([section, 'optionalAccess', _21 => _21.contains, 'call', _22 => _22(target)]))
|
|
379
|
+
if (!_optionalChain([section, 'optionalAccess', _21 => _21.contains, 'call', _22 => _22(target)])) _chunkA34UNP5Vcjs.scrollElementIntoView.call(void 0, target, { headerOffset, behavior: "instant" });
|
|
380
380
|
};
|
|
381
381
|
let scrollTimer;
|
|
382
382
|
const throttledScroll = () => {
|
|
@@ -396,7 +396,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
396
396
|
// src/components/navigation/multi-level-navigation.tsx
|
|
397
397
|
var _lucidereact = require('lucide-react');
|
|
398
398
|
|
|
399
|
-
var DEFAULT_FOLDER_INDEX_FILE2 =
|
|
399
|
+
var DEFAULT_FOLDER_INDEX_FILE2 = _chunk7KBHLP4Ecjs.DEFAULT_FOLDER_INDEX_FILE;
|
|
400
400
|
var NAV_LIST_CLASS = "space-y-2";
|
|
401
401
|
var NAV_ITEM_CLASS = "space-y-1";
|
|
402
402
|
var NAV_ROW_FRAME_CLASS = "relative w-full rounded-lg border transition-all duration-150";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkT266OITJcjs = require('./chunk-T266OITJ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk7KBHLP4Ecjs = require('./chunk-7KBHLP4E.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk24M2JYM5cjs = require('./chunk-24M2JYM5.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkA34UNP5Vcjs = require('./chunk-A34UNP5V.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
@@ -25,10 +25,10 @@ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkUDLDXVY4cjs = require('./chunk-UDLDXVY4.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkIM366HS6cjs = require('./chunk-IM366HS6.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkFX35L4Y6cjs = require('./chunk-FX35L4Y6.cjs');
|
|
@@ -74,7 +74,7 @@ function FaqAccordion({ items, defaultOpenIds = [], loading: loadingProp, skelet
|
|
|
74
74
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
|
-
id:
|
|
77
|
+
id: _chunk24M2JYM5cjs.faqItemAnchor.call(void 0, item.id),
|
|
78
78
|
className: _chunk63A4GZMBcjs.cn.call(void 0, ROW_FRAME_CLASS, "hover:bg-ods-bg-hover"),
|
|
79
79
|
"data-loading-item": true,
|
|
80
80
|
children: [
|
|
@@ -140,14 +140,14 @@ function FaqAccordionSkeleton({
|
|
|
140
140
|
|
|
141
141
|
var PICK_ROOT_MARGIN = "600px";
|
|
142
142
|
function faqAskCardShown(assistant) {
|
|
143
|
-
return
|
|
143
|
+
return _chunk7KBHLP4Ecjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
144
144
|
}
|
|
145
145
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
146
|
-
const { ref, inView } =
|
|
146
|
+
const { ref, inView } = _chunkA34UNP5Vcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
147
147
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
148
148
|
if (inView && !reached) setReached(true);
|
|
149
149
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
150
|
-
|
|
150
|
+
_chunk7KBHLP4Ecjs.AssistantAskPrompts,
|
|
151
151
|
{
|
|
152
152
|
variant: "card",
|
|
153
153
|
topic,
|
|
@@ -207,7 +207,7 @@ var CATEGORY_NAV_SKELETON_LINE_CLASS = "flex min-w-0 flex-nowrap gap-2 overflow-
|
|
|
207
207
|
var FAQ_NAV_SKELETON_PILLS = 8;
|
|
208
208
|
var CATEGORY_PILL_CLASS = "rounded-full border px-4 py-2 transition-colors text-h6";
|
|
209
209
|
var CATEGORY_SECTION_CLASS = "scroll-mt-24";
|
|
210
|
-
var CATEGORY_HEADING_CLASS = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
210
|
+
var CATEGORY_HEADING_CLASS = _chunk63A4GZMBcjs.cn.call(void 0, _chunkIM366HS6cjs.SECTION_HEADING_CLASS, "pb-4");
|
|
211
211
|
var FAQ_SECTION_SKELETON_QUESTIONS = FAQ_ACCORDION_SKELETON_ROWS;
|
|
212
212
|
function FaqLayout({
|
|
213
213
|
heading,
|
|
@@ -233,7 +233,7 @@ function FaqLayout({
|
|
|
233
233
|
] });
|
|
234
234
|
}
|
|
235
235
|
function faqHeadingNode(heading, showTopic, topic) {
|
|
236
|
-
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
236
|
+
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkIM366HS6cjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
237
237
|
if (!(showTopic && topic)) return titleNode;
|
|
238
238
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TOPIC_STACK_CLASS, children: [
|
|
239
239
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: titleNode }),
|
|
@@ -247,7 +247,7 @@ function pageFaqProps(faq) {
|
|
|
247
247
|
}
|
|
248
248
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "", topic) {
|
|
249
249
|
const entityScoped = !!entityType && entityId !== void 0 && entityId !== null && entityId !== "";
|
|
250
|
-
return
|
|
250
|
+
return _chunkUDLDXVY4cjs.buildSuggestionUrl.call(void 0, "/api/faqs", {
|
|
251
251
|
apiBaseUrl,
|
|
252
252
|
entityType,
|
|
253
253
|
entityId,
|
|
@@ -268,7 +268,7 @@ function groupFaqsBySection(faqs) {
|
|
|
268
268
|
}
|
|
269
269
|
let group = byName.get(name);
|
|
270
270
|
if (!group) {
|
|
271
|
-
group = { section: name, slug:
|
|
271
|
+
group = { section: name, slug: _chunk24M2JYM5cjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
272
272
|
byName.set(name, group);
|
|
273
273
|
}
|
|
274
274
|
group.items.push(item);
|
|
@@ -314,7 +314,7 @@ function GroupedFaqList({
|
|
|
314
314
|
}
|
|
315
315
|
if (bestId) setActiveSlug(bestId);
|
|
316
316
|
},
|
|
317
|
-
{ rootMargin: `-${
|
|
317
|
+
{ rootMargin: `-${_chunkA34UNP5Vcjs.STICKY_HEADER_OFFSET_PX}px 0px -55% 0px`, threshold: 0 }
|
|
318
318
|
);
|
|
319
319
|
for (const group of navGroupsRef.current) {
|
|
320
320
|
const el = group.slug ? document.getElementById(group.slug) : null;
|
|
@@ -324,7 +324,7 @@ function GroupedFaqList({
|
|
|
324
324
|
}, [slugKey]);
|
|
325
325
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
326
326
|
_react.useEffect.call(void 0, () => {
|
|
327
|
-
const refresh = () => setHashTarget(
|
|
327
|
+
const refresh = () => setHashTarget(_chunk24M2JYM5cjs.parseFaqHash.call(void 0, window.location.hash));
|
|
328
328
|
refresh();
|
|
329
329
|
window.addEventListener("hashchange", refresh);
|
|
330
330
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -341,7 +341,7 @@ function GroupedFaqList({
|
|
|
341
341
|
}, [groups, hashTarget]);
|
|
342
342
|
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _7 => _7.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
|
|
343
343
|
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess', _8 => _8.kind]) === "item" ? `item:${hashTarget.rawId}` : _optionalChain([hashTarget, 'optionalAccess', _9 => _9.kind]) === "section" ? `section:${hashTarget.slug}` : "none");
|
|
344
|
-
|
|
344
|
+
_chunkT266OITJcjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkA34UNP5Vcjs.STICKY_HEADER_OFFSET_PX });
|
|
345
345
|
const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
|
|
346
346
|
if (pillSyncedHash !== hashTarget) {
|
|
347
347
|
setPillSyncedHash(hashTarget);
|
|
@@ -349,8 +349,8 @@ function GroupedFaqList({
|
|
|
349
349
|
}
|
|
350
350
|
const handleJump = _react.useCallback.call(void 0, (e, slug) => {
|
|
351
351
|
e.preventDefault();
|
|
352
|
-
|
|
353
|
-
headerOffset:
|
|
352
|
+
_chunkA34UNP5Vcjs.navigateSamePageHash.call(void 0, "#" + slug, {
|
|
353
|
+
headerOffset: _chunkA34UNP5Vcjs.STICKY_HEADER_OFFSET_PX,
|
|
354
354
|
history: "replace"
|
|
355
355
|
});
|
|
356
356
|
}, []);
|
|
@@ -425,7 +425,7 @@ function FaqSection({
|
|
|
425
425
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
426
426
|
[initialFaqs]
|
|
427
427
|
);
|
|
428
|
-
const { data, dataUrl, isLoading, error } =
|
|
428
|
+
const { data, dataUrl, isLoading, error } = _chunkUDLDXVY4cjs.useSelfFetch.call(void 0, inScope ? null : url, { initialData });
|
|
429
429
|
const held = dataUrl === url ? _optionalChain([data, 'optionalAccess', _14 => _14.faqs]) : void 0;
|
|
430
430
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(held, () => ( [])), [held]);
|
|
431
431
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|