@flamingo-stack/openframe-frontend-core 0.0.725 → 0.0.726
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-JVHP7Y4S.js → chunk-3UZET2G7.js} +2 -2
- package/dist/{chunk-F56GNKX2.js → chunk-3XDVGHL4.js} +2 -2
- package/dist/{chunk-2VOZ37BL.cjs → chunk-4ND65E2B.cjs} +35 -35
- package/dist/{chunk-AX4F35C2.js → chunk-4VRHDFF2.js} +1 -1
- package/dist/{chunk-LYQYLPPV.cjs → chunk-5SWQ2ZU5.cjs} +26 -26
- package/dist/{chunk-5FVWDDX6.js → chunk-AZKVHJA5.js} +2 -2
- package/dist/{chunk-W2DXHR2R.js → chunk-C5KMQLJP.js} +1 -1
- package/dist/{chunk-OBMWSUBK.js → chunk-COFT3YPA.js} +5 -5
- package/dist/{chunk-ZSXZE4FJ.cjs → chunk-DXDLCYCM.cjs} +3 -3
- package/dist/{chunk-SE4O4HCD.cjs → chunk-EHYAOIE4.cjs} +8 -8
- package/dist/{chunk-2SO3OJFY.cjs → chunk-FMFCPX3R.cjs} +33 -33
- package/dist/{chunk-IOTAUWWF.js → chunk-JYJBL7GD.js} +1 -1
- package/dist/{chunk-MGTZ2BKY.js → chunk-MM66P4X4.js} +2 -2
- package/dist/{chunk-F77J34W2.js → chunk-MQ3ZM7FJ.js} +1 -1
- package/dist/{chunk-SEVKFMKR.cjs → chunk-MZ3TMXIX.cjs} +3 -3
- package/dist/{chunk-YPEILGVZ.cjs → chunk-MZY6LBM5.cjs} +3 -3
- package/dist/{chunk-ASIXPRHV.js → chunk-NLWIBA55.js} +3 -3
- package/dist/{chunk-PUADVXJD.js → chunk-NZYMMYWN.js} +1 -1
- package/dist/{chunk-AI3CLDZO.cjs → chunk-Q2G7NVFH.cjs} +280 -280
- package/dist/{chunk-7V5KFBY2.cjs → chunk-R3BOJNZI.cjs} +16 -16
- package/dist/{chunk-B7234BE2.cjs → chunk-RSE3MU4G.cjs} +11 -11
- package/dist/{chunk-RU6BTELI.cjs → chunk-RVSNXG6J.cjs} +50 -70
- package/dist/{chunk-MLFS5G3V.js → chunk-SBPPM65Y.js} +50 -70
- package/dist/{chunk-ZZRUKEN2.js → chunk-SCTS3EMJ.js} +3 -3
- package/dist/{chunk-JAKG6BY7.js → chunk-VKR56R3U.js} +3 -3
- package/dist/{chunk-QV4GO3GW.cjs → chunk-VPABPC2M.cjs} +12 -12
- package/dist/{chunk-4ZZ4TNCY.cjs → chunk-X2PG6XWF.cjs} +9 -9
- package/dist/{chunk-772242QR.cjs → chunk-XEIDJ6SL.cjs} +65 -65
- package/dist/{chunk-ASHRHL4W.js → chunk-YVWJ3TRY.js} +5 -5
- package/dist/{chunk-LR6DJY4Z.cjs → chunk-Z3VAFLYK.cjs} +9 -9
- package/dist/{cloud-tenants-SMULXU54.cjs → cloud-tenants-5JTQ2ENQ.cjs} +3 -3
- package/dist/{cloud-tenants-US63E2HV.js → cloud-tenants-NH7VE7KE.js} +2 -2
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/docs/index.js +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +4 -4
- package/dist/components/faq/index.js +3 -3
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +71 -71
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +35 -35
- package/dist/components/index.js +12 -12
- package/dist/components/meeting-scheduler/index.cjs +19 -19
- package/dist/components/meeting-scheduler/index.js +2 -2
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/product-demo/index.cjs +6 -6
- package/dist/components/product-demo/index.js +6 -6
- package/dist/components/tickets/index.cjs +7 -7
- package/dist/components/tickets/index.js +6 -6
- package/dist/components/ui/index.cjs +3 -3
- package/dist/components/ui/index.js +2 -2
- package/dist/{devices-JWHGWKLK.js → devices-OC7JEI6U.js} +2 -2
- package/dist/{devices-6ZURNFRB.cjs → devices-PV76NGQO.cjs} +4 -4
- package/dist/index.cjs +7 -7
- package/dist/index.js +6 -6
- package/dist/{knowledge-CY66JZ54.cjs → knowledge-5AYFIVKD.cjs} +4 -4
- package/dist/{knowledge-TEDPLCFX.js → knowledge-L7WQ7IEP.js} +2 -2
- package/dist/{logs-MO357RE7.cjs → logs-4F77RJXJ.cjs} +11 -11
- package/dist/{logs-S46THPPD.js → logs-MGFHGVIE.js} +2 -2
- package/dist/{policies-GSH4K5YP.cjs → policies-VCGM3C5Z.cjs} +7 -7
- package/dist/{policies-BUXT7DKF.js → policies-WRDZFNIB.js} +2 -2
- package/dist/{software-update-YKS6KLX2.js → software-update-WVG2GDZO.js} +2 -2
- package/dist/{software-update-2ETT35NM.cjs → software-update-YD2MNL3K.cjs} +6 -6
- package/dist/utils/index.cjs +17 -18
- package/dist/utils/index.js +17 -18
- package/dist/utils/source-grouping.d.ts +15 -5
- package/dist/utils/source-grouping.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +47 -58
- package/src/utils/source-grouping.ts +24 -14
- package/src/utils/source-icons.ts +16 -16
|
@@ -207,16 +207,10 @@ import {
|
|
|
207
207
|
Arrow02LeftIcon,
|
|
208
208
|
Arrow02RightIcon,
|
|
209
209
|
ArrowRightUpIcon,
|
|
210
|
-
BankIcon,
|
|
211
210
|
BoxArchiveIcon,
|
|
212
|
-
BracketCurlyCheckIcon,
|
|
213
211
|
CalendarIcon,
|
|
214
|
-
CallIcon,
|
|
215
|
-
ChartBar01VerIcon,
|
|
216
|
-
ChartPieIcon,
|
|
217
212
|
ChatPlusIcon,
|
|
218
213
|
ChatQuestionIcon,
|
|
219
|
-
ChatQuoteIcon,
|
|
220
214
|
ChatsIcon,
|
|
221
215
|
CheckCircleIcon,
|
|
222
216
|
CheckFillIcon,
|
|
@@ -224,22 +218,15 @@ import {
|
|
|
224
218
|
Chevron02LeftIcon,
|
|
225
219
|
Chevron02RightIcon,
|
|
226
220
|
ClickupLogoIcon,
|
|
227
|
-
ClipboardListIcon,
|
|
228
221
|
ClockHistoryIcon,
|
|
229
222
|
CodeIcon,
|
|
230
|
-
CodeSquareIcon,
|
|
231
|
-
CodingBranchIcon,
|
|
232
223
|
CodingCommitIcon,
|
|
233
|
-
CodingMergeIcon,
|
|
234
224
|
CodingPullRequestIcon,
|
|
235
|
-
CoinsExchangeCurrencyIcon,
|
|
236
225
|
CompassIcon,
|
|
237
|
-
Copy01Icon,
|
|
238
226
|
DotsLoaderIcon,
|
|
239
227
|
Ellipsis01Icon,
|
|
240
228
|
ExternalLinkIcon,
|
|
241
229
|
EyeIcon,
|
|
242
|
-
FileCodeIcon,
|
|
243
230
|
FileContentIcon,
|
|
244
231
|
GeminiLogoGreyIcon,
|
|
245
232
|
InfoCircleIcon,
|
|
@@ -249,11 +236,9 @@ import {
|
|
|
249
236
|
Megaphone01Icon,
|
|
250
237
|
MessageIndicatorIcon,
|
|
251
238
|
MicrophoneIcon,
|
|
252
|
-
MoneyBillDollarIcon,
|
|
253
239
|
NewspaperIcon,
|
|
254
240
|
OpenaiLogoGreyIcon,
|
|
255
241
|
PackageCheckIcon,
|
|
256
|
-
PackageIcon,
|
|
257
242
|
PackagePlusIcon,
|
|
258
243
|
PenEditIcon,
|
|
259
244
|
PlusCircleIcon,
|
|
@@ -6879,11 +6864,11 @@ var SOURCE_ICON_NAMES = {
|
|
|
6879
6864
|
vendors: "package-search",
|
|
6880
6865
|
// Financials
|
|
6881
6866
|
"investor-updates": "mail",
|
|
6882
|
-
"financial-kpis": "
|
|
6883
|
-
"financial-cap-table": "
|
|
6884
|
-
"financial-pnl": "
|
|
6885
|
-
"financial-balance-sheet": "
|
|
6886
|
-
"financial-cash-flow": "
|
|
6867
|
+
"financial-kpis": "chart-bar-01-ver",
|
|
6868
|
+
"financial-cap-table": "chart-pie",
|
|
6869
|
+
"financial-pnl": "money-bill-dollar",
|
|
6870
|
+
"financial-balance-sheet": "bank",
|
|
6871
|
+
"financial-cash-flow": "coins-exchange-currency",
|
|
6887
6872
|
// ClickUp
|
|
6888
6873
|
"clickup-roadmap": "clickup",
|
|
6889
6874
|
"clickup-delivery": "clickup",
|
|
@@ -6902,22 +6887,22 @@ var SOURCE_ICON_NAMES = {
|
|
|
6902
6887
|
// Communications
|
|
6903
6888
|
"slack-messages": "slack",
|
|
6904
6889
|
// People-hub employee content
|
|
6905
|
-
"what-i-shipped": "
|
|
6906
|
-
"how-i-work": "
|
|
6907
|
-
"ai-prompts": "
|
|
6890
|
+
"what-i-shipped": "rocket-02",
|
|
6891
|
+
"how-i-work": "clipboard-list",
|
|
6892
|
+
"ai-prompts": "chat-quote",
|
|
6908
6893
|
// Product-hub internal
|
|
6909
6894
|
"design-docs": "file-text",
|
|
6910
6895
|
"openframe-tenants": "openframe",
|
|
6911
|
-
"prospect-calls": "
|
|
6896
|
+
"prospect-calls": "call",
|
|
6912
6897
|
// Code intelligence
|
|
6913
|
-
"code-rules": "check
|
|
6914
|
-
"code-graph-repos": "
|
|
6898
|
+
"code-rules": "bracket-curly-check",
|
|
6899
|
+
"code-graph-repos": "coding-branch",
|
|
6915
6900
|
"code-graph-deployments": "package",
|
|
6916
|
-
"code-graph-files": "file-
|
|
6917
|
-
"code-symbols": "
|
|
6918
|
-
"code-duplicates": "
|
|
6919
|
-
"code-impact": "
|
|
6920
|
-
"change-sets": "coding-
|
|
6901
|
+
"code-graph-files": "file-code",
|
|
6902
|
+
"code-symbols": "code-square",
|
|
6903
|
+
"code-duplicates": "copy-01",
|
|
6904
|
+
"code-impact": "coding-pull-request",
|
|
6905
|
+
"change-sets": "coding-merge"
|
|
6921
6906
|
};
|
|
6922
6907
|
function getSourceIconName(tableId) {
|
|
6923
6908
|
if (!tableId) return void 0;
|
|
@@ -7094,8 +7079,7 @@ function typeOf(source) {
|
|
|
7094
7079
|
return source.documentType || defaultDocumentTypeForTableId(source.sourceRepo) || "";
|
|
7095
7080
|
}
|
|
7096
7081
|
function joinsTableChip(source) {
|
|
7097
|
-
|
|
7098
|
-
return groupsByTable(typeOf({ ...source, sourceRepo: source.sourceRepo }));
|
|
7082
|
+
return !!source.sourceRepo;
|
|
7099
7083
|
}
|
|
7100
7084
|
function rowsOf(source) {
|
|
7101
7085
|
if (isGroupedChip(source)) return source.items ?? [];
|
|
@@ -15820,11 +15804,11 @@ function refHydratedEntry(docType, label, renderRef) {
|
|
|
15820
15804
|
};
|
|
15821
15805
|
}
|
|
15822
15806
|
var FINANCIAL_CARD_CONFIGS = {
|
|
15823
|
-
financial_kpi: { label: "Financial KPI"
|
|
15824
|
-
cap_table: { label: "Cap table entry"
|
|
15825
|
-
profit_loss: { label: "P&L period"
|
|
15826
|
-
balance_sheet: { label: "Balance sheet"
|
|
15827
|
-
cash_flow: { label: "Cash flow"
|
|
15807
|
+
financial_kpi: { label: "Financial KPI" },
|
|
15808
|
+
cap_table: { label: "Cap table entry" },
|
|
15809
|
+
profit_loss: { label: "P&L period" },
|
|
15810
|
+
balance_sheet: { label: "Balance sheet" },
|
|
15811
|
+
cash_flow: { label: "Cash flow" }
|
|
15828
15812
|
};
|
|
15829
15813
|
function registryEntries(configs, build) {
|
|
15830
15814
|
const out = {};
|
|
@@ -15838,7 +15822,7 @@ function financialRegistryEntries() {
|
|
|
15838
15822
|
GenericFinancialChatCard,
|
|
15839
15823
|
{
|
|
15840
15824
|
chatRef: displayRef,
|
|
15841
|
-
icon:
|
|
15825
|
+
icon: sourceGlyph(docType),
|
|
15842
15826
|
isNewTab: opts.isNewTab,
|
|
15843
15827
|
discuss: opts.discuss
|
|
15844
15828
|
}
|
|
@@ -15864,41 +15848,45 @@ var GITHUB_CARD_CONFIGS = {
|
|
|
15864
15848
|
github_pr_review: { label: "GitHub review", kind: "pr_review" },
|
|
15865
15849
|
github_pr_review_public: { label: "GitHub review (public)", kind: "pr_review" }
|
|
15866
15850
|
};
|
|
15867
|
-
var OpenFrameGlyph = resolveIcon("openframe");
|
|
15868
15851
|
var REF_GLYPH_CARD_CONFIGS = {
|
|
15869
|
-
openframe_tenant: { label: "OpenFrame tenant"
|
|
15870
|
-
prospect_call: { label: "Prospect call",
|
|
15852
|
+
openframe_tenant: { label: "OpenFrame tenant" },
|
|
15853
|
+
prospect_call: { label: "Prospect call", media: true },
|
|
15871
15854
|
// Code intelligence (product-hub internal): the review rules a repository is
|
|
15872
15855
|
// held to, the repositories themselves, and one row per deployment
|
|
15873
15856
|
// environment. Glyph cards like their siblings — none of the three has a
|
|
15874
15857
|
// cover image, and a rule is read in the admin screen it links to.
|
|
15875
|
-
code_rule: { label: "Code rule"
|
|
15876
|
-
code_repo: { label: "Repository"
|
|
15877
|
-
code_deployment: { label: "Deployment"
|
|
15858
|
+
code_rule: { label: "Code rule" },
|
|
15859
|
+
code_repo: { label: "Repository" },
|
|
15860
|
+
code_deployment: { label: "Deployment" },
|
|
15878
15861
|
// The graph's own objects: one source file's public surface, one public
|
|
15879
15862
|
// symbol, a near-duplicate cluster, and a pull request's blast radius.
|
|
15880
15863
|
// Glyph cards for the same reason as their three siblings — none carries a
|
|
15881
15864
|
// cover image, and each links to the admin screen that renders it in full.
|
|
15882
|
-
code_file: { label: "Code file"
|
|
15883
|
-
code_symbol: { label: "Code symbol"
|
|
15884
|
-
code_duplicate: { label: "Duplicate code"
|
|
15885
|
-
code_impact: { label: "Change impact"
|
|
15865
|
+
code_file: { label: "Code file" },
|
|
15866
|
+
code_symbol: { label: "Code symbol" },
|
|
15867
|
+
code_duplicate: { label: "Duplicate code" },
|
|
15868
|
+
code_impact: { label: "Change impact" },
|
|
15886
15869
|
// A change set: pull requests across repositories declared as one change, with the ClickUp tasks and design
|
|
15887
15870
|
// docs its pull requests are attached to. ONE card for it wherever a set is shown (chat, a design doc's page).
|
|
15888
|
-
change_set: { label: "Change set"
|
|
15871
|
+
change_set: { label: "Change set" },
|
|
15889
15872
|
// A page of the public website (pricing, product, legal, and every page the navigation lists), read live
|
|
15890
15873
|
// from the data the page shows. A glyph card: a page has no cover of its own, and the card opens the page.
|
|
15891
15874
|
site_page: { label: "Website page", icon: (ref) => /* @__PURE__ */ jsx85(SitePageGlyph, { iconName: refText(ref, "icon_name") }) },
|
|
15892
15875
|
// What OpenFrame charges, read live from its billing: the plan in force, or one AI model's token exchange
|
|
15893
15876
|
// rate. A glyph card; it opens the pricing page.
|
|
15894
|
-
openframe_price: { label: "OpenFrame price"
|
|
15877
|
+
openframe_price: { label: "OpenFrame price" },
|
|
15895
15878
|
// A vendor (product) of the OpenMSP directory. A glyph card; it opens the vendor's page there.
|
|
15896
15879
|
vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ jsx85(VendorGlyph, { title: ref?.title ?? "", logoUrl: refText(ref, "logo_url") }) }
|
|
15897
15880
|
};
|
|
15881
|
+
function sourceGlyph(docType) {
|
|
15882
|
+
const { Icon } = resolveSourceIcon({ sourceRepo: defaultTableIdForDocumentType(docType), documentType: docType });
|
|
15883
|
+
return /* @__PURE__ */ jsx85(Icon, { className: "size-6" });
|
|
15884
|
+
}
|
|
15898
15885
|
function refGlyphRegistryEntries() {
|
|
15899
|
-
return registryEntries(
|
|
15900
|
-
|
|
15901
|
-
|
|
15886
|
+
return registryEntries(REF_GLYPH_CARD_CONFIGS, (config, docType) => {
|
|
15887
|
+
const glyph = config.icon ?? (() => sourceGlyph(docType));
|
|
15888
|
+
const cfg = config;
|
|
15889
|
+
return refHydratedEntry(
|
|
15902
15890
|
docType,
|
|
15903
15891
|
cfg.label,
|
|
15904
15892
|
(displayRef, opts) => cfg.media ? /* @__PURE__ */ jsx85(
|
|
@@ -15910,24 +15898,16 @@ function refGlyphRegistryEntries() {
|
|
|
15910
15898
|
displayRef.metadata?.videoPoster,
|
|
15911
15899
|
opts.extras?.buildOgPlaceholderUrl?.(displayRef.title ?? "") ?? null
|
|
15912
15900
|
),
|
|
15913
|
-
fallbackIcon:
|
|
15901
|
+
fallbackIcon: glyph(displayRef),
|
|
15914
15902
|
status: { label: cfg.label, variant: "grey" },
|
|
15915
15903
|
chatRef: displayRef,
|
|
15916
15904
|
isNewTab: opts.isNewTab,
|
|
15917
15905
|
discuss: opts.discuss,
|
|
15918
15906
|
menuAriaLabel: `${cfg.label} actions`
|
|
15919
15907
|
}
|
|
15920
|
-
) : /* @__PURE__ */ jsx85(
|
|
15921
|
-
|
|
15922
|
-
|
|
15923
|
-
chatRef: displayRef,
|
|
15924
|
-
icon: cfg.icon(displayRef),
|
|
15925
|
-
isNewTab: opts.isNewTab,
|
|
15926
|
-
discuss: opts.discuss
|
|
15927
|
-
}
|
|
15928
|
-
)
|
|
15929
|
-
)
|
|
15930
|
-
);
|
|
15908
|
+
) : /* @__PURE__ */ jsx85(GlyphChatCard, { chatRef: displayRef, icon: glyph(displayRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
15909
|
+
);
|
|
15910
|
+
});
|
|
15931
15911
|
}
|
|
15932
15912
|
function fetchedEmployeeEntryDisplayRef(item, chatRef) {
|
|
15933
15913
|
const it = item;
|
|
@@ -15938,9 +15918,9 @@ function fetchedEmployeeEntryDisplayRef(item, chatRef) {
|
|
|
15938
15918
|
return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
|
|
15939
15919
|
}
|
|
15940
15920
|
var EMPLOYEE_ENTRY_CARD_CONFIGS = {
|
|
15941
|
-
what_i_shipped: { label: "What I Shipped"
|
|
15942
|
-
how_i_work: { label: "How I Work"
|
|
15943
|
-
ai_prompt: { label: "Squawkbox"
|
|
15921
|
+
what_i_shipped: { label: "What I Shipped" },
|
|
15922
|
+
how_i_work: { label: "How I Work" },
|
|
15923
|
+
ai_prompt: { label: "Squawkbox" }
|
|
15944
15924
|
};
|
|
15945
15925
|
function employeeEntryRegistryEntries() {
|
|
15946
15926
|
return registryEntries(EMPLOYEE_ENTRY_CARD_CONFIGS, (cfg, docType) => ({
|
|
@@ -15952,7 +15932,7 @@ function employeeEntryRegistryEntries() {
|
|
|
15952
15932
|
GlyphChatCard,
|
|
15953
15933
|
{
|
|
15954
15934
|
chatRef: fetchedEmployeeEntryDisplayRef(item, chatRef),
|
|
15955
|
-
icon:
|
|
15935
|
+
icon: sourceGlyph(docType),
|
|
15956
15936
|
isNewTab: opts.isNewTab,
|
|
15957
15937
|
discuss: opts.discuss
|
|
15958
15938
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useOptionalTicketLive
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JYJBL7GD.js";
|
|
5
5
|
import {
|
|
6
6
|
AppLayoutDrawerContainerContext,
|
|
7
7
|
AppLayoutDrawerCoordinationContext,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
UnreadCountBadge,
|
|
13
13
|
UnreadDot,
|
|
14
14
|
useOptionalNotifications
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-C5KMQLJP.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveActiveSection,
|
|
18
18
|
useActiveSection,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
OVERLAY_BACKDROP_CLASS,
|
|
29
29
|
buildTicketOpenHref,
|
|
30
30
|
useIsHydrated
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SBPPM65Y.js";
|
|
32
32
|
import {
|
|
33
33
|
useHeaderHeight
|
|
34
34
|
} from "./chunk-4I3K6LEH.js";
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
DocSearchBar,
|
|
8
8
|
useDocSearch
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AZKVHJA5.js";
|
|
10
10
|
import {
|
|
11
11
|
EntityTagBadges,
|
|
12
12
|
FilterPillRow,
|
|
13
13
|
LoadError,
|
|
14
14
|
PageShell,
|
|
15
15
|
RichMarkdownRenderer
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-C5KMQLJP.js";
|
|
17
17
|
import {
|
|
18
18
|
PageLayout
|
|
19
19
|
} from "./chunk-TU5LEF6A.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
VideoBitesStrip,
|
|
23
23
|
resolveContentHref,
|
|
24
24
|
useCaptions
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SBPPM65Y.js";
|
|
26
26
|
import {
|
|
27
27
|
useRouter,
|
|
28
28
|
useSearchParams
|
|
@@ -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 _chunkQ2G7NVFHcjs = require('./chunk-Q2G7NVFH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkU6LRRG2Ecjs = require('./chunk-U6LRRG2E.cjs');
|
|
@@ -18,7 +18,7 @@ var _chunk4LY6R4TNcjs = require('./chunk-4LY6R4TN.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkRVSNXG6Jcjs = require('./chunk-RVSNXG6J.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -70,7 +70,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
70
70
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
71
71
|
"div",
|
|
72
72
|
{
|
|
73
|
-
id:
|
|
73
|
+
id: _chunkRVSNXG6Jcjs.faqItemAnchor.call(void 0, item.id),
|
|
74
74
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
75
75
|
children: [
|
|
76
76
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -128,29 +128,29 @@ var DEFAULT_ASK_CARD = {
|
|
|
128
128
|
var PICK_ROOT_MARGIN = "600px";
|
|
129
129
|
var fillAssistant = (text, name) => text.split("{assistant}").join(name);
|
|
130
130
|
function faqAskCardShown(assistant) {
|
|
131
|
-
return
|
|
131
|
+
return _chunkRVSNXG6Jcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
132
132
|
}
|
|
133
133
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
134
134
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
135
135
|
const { ref, inView } = _chunkK2JUJ37Dcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
136
136
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
137
137
|
if (inView && !reached) setReached(true);
|
|
138
|
-
const shownElsewhere =
|
|
138
|
+
const shownElsewhere = _chunkRVSNXG6Jcjs.useShownAskPromptIds.call(void 0, );
|
|
139
139
|
const excluded = exclude === void 0 ? shownElsewhere : exclude;
|
|
140
|
-
const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( _optionalChain([assistant, 'optionalAccess', _2 => _2.askCard, 'optionalAccess', _3 => _3.count]))), () => (
|
|
141
|
-
const { prompts, isLoading, supported } =
|
|
140
|
+
const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( _optionalChain([assistant, 'optionalAccess', _2 => _2.askCard, 'optionalAccess', _3 => _3.count]))), () => ( _chunkRVSNXG6Jcjs.ASK_PROMPTS_DEFAULT_COUNT));
|
|
141
|
+
const { prompts, isLoading, supported } = _chunkRVSNXG6Jcjs.useAskPrompts.call(void 0, {
|
|
142
142
|
topic,
|
|
143
143
|
count: slots,
|
|
144
144
|
exclude: _nullishCoalesce(excluded, () => ( void 0)),
|
|
145
145
|
enabled: reached && excluded !== null
|
|
146
146
|
});
|
|
147
|
-
const open =
|
|
147
|
+
const open = _chunkRVSNXG6Jcjs.useAssistantOpen.call(void 0, topic, onOpen);
|
|
148
148
|
const scoped = _react.useMemo.call(void 0, () => assistant ? { ...assistant, open } : null, [assistant, open]);
|
|
149
149
|
if (!faqAskCardShown(assistant) || !assistant.name) return null;
|
|
150
150
|
const name = assistant.name;
|
|
151
151
|
const cardDescription = _nullishCoalesce(_nullishCoalesce(description, () => ( _optionalChain([assistant, 'access', _4 => _4.askCard, 'optionalAccess', _5 => _5.description]))), () => ( DEFAULT_ASK_CARD.description));
|
|
152
152
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEWPR7662cjs.AssistantRuntimeContext.Provider, { value: scoped, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
153
|
-
|
|
153
|
+
_chunkRVSNXG6Jcjs.AskCard,
|
|
154
154
|
{
|
|
155
155
|
title: fillAssistant(_nullishCoalesce(_nullishCoalesce(title, () => ( _optionalChain([assistant, 'access', _6 => _6.askCard, 'optionalAccess', _7 => _7.title]))), () => ( DEFAULT_ASK_CARD.title)), name),
|
|
156
156
|
description: cardDescription ? fillAssistant(cardDescription, name) : void 0,
|
|
@@ -211,7 +211,7 @@ function groupFaqsBySection(faqs) {
|
|
|
211
211
|
}
|
|
212
212
|
let group = byName.get(name);
|
|
213
213
|
if (!group) {
|
|
214
|
-
group = { section: name, slug:
|
|
214
|
+
group = { section: name, slug: _chunkRVSNXG6Jcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
215
215
|
byName.set(name, group);
|
|
216
216
|
}
|
|
217
217
|
group.items.push(item);
|
|
@@ -266,7 +266,7 @@ function GroupedFaqList({
|
|
|
266
266
|
}, [slugKey]);
|
|
267
267
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
268
268
|
_react.useEffect.call(void 0, () => {
|
|
269
|
-
const refresh = () => setHashTarget(
|
|
269
|
+
const refresh = () => setHashTarget(_chunkRVSNXG6Jcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
270
270
|
refresh();
|
|
271
271
|
window.addEventListener("hashchange", refresh);
|
|
272
272
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -440,7 +440,7 @@ function FaqDocumentPage({
|
|
|
440
440
|
ask
|
|
441
441
|
}
|
|
442
442
|
) });
|
|
443
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
443
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQ2G7NVFHcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
|
|
@@ -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 _chunkQ2G7NVFHcjs = require('./chunk-Q2G7NVFH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ var _chunkAI3CLDZOcjs = require('./chunk-AI3CLDZO.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkRVSNXG6Jcjs = require('./chunk-RVSNXG6J.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkK2JUJ37Dcjs = require('./chunk-K2JUJ37D.cjs');
|
|
@@ -39,7 +39,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
39
39
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
40
40
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
41
41
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
42
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
42
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkRVSNXG6Jcjs.resolveSourceIcon.call(void 0, {
|
|
43
43
|
sourceRepo,
|
|
44
44
|
documentType: docType
|
|
45
45
|
});
|
|
@@ -69,7 +69,7 @@ function DocSearchBar({
|
|
|
69
69
|
renderResult
|
|
70
70
|
}) {
|
|
71
71
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
72
|
-
|
|
72
|
+
_chunkQ2G7NVFHcjs.SearchInput,
|
|
73
73
|
{
|
|
74
74
|
placeholder,
|
|
75
75
|
value: query,
|
|
@@ -119,7 +119,7 @@ function mapDocSearchResults(docs) {
|
|
|
119
119
|
results.push({
|
|
120
120
|
id: `group-${entry.repo}`,
|
|
121
121
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
122
|
-
title: `${
|
|
122
|
+
title: `${_chunkRVSNXG6Jcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkRVSNXG6Jcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
123
123
|
path: rows[0].path,
|
|
124
124
|
type: "file",
|
|
125
125
|
metadata: {
|
|
@@ -311,27 +311,27 @@ function useDocSearch(config) {
|
|
|
311
311
|
case "navigate-same-tab": {
|
|
312
312
|
if (wantsNewTab) {
|
|
313
313
|
setKeepOpen(true);
|
|
314
|
-
window.open(action.href, "_blank",
|
|
314
|
+
window.open(action.href, "_blank", _chunkRVSNXG6Jcjs.NEW_TAB_FEATURES);
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
317
|
setKeepOpen(false);
|
|
318
318
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
319
319
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
320
|
-
router.push(
|
|
320
|
+
router.push(_chunkRVSNXG6Jcjs.stripSameOriginToPath.call(void 0, action.href));
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
323
|
case "navigate-new-tab":
|
|
324
324
|
setKeepOpen(true);
|
|
325
325
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
326
326
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
327
|
-
|
|
327
|
+
_chunkRVSNXG6Jcjs.resolveExternalNavigation.call(void 0, {
|
|
328
328
|
href: action.href,
|
|
329
329
|
targetPlatform,
|
|
330
330
|
runtime
|
|
331
331
|
}).open();
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
334
|
-
window.open(action.href, "_blank",
|
|
334
|
+
window.open(action.href, "_blank", _chunkRVSNXG6Jcjs.NEW_TAB_FEATURES);
|
|
335
335
|
return;
|
|
336
336
|
case "ask-ai":
|
|
337
337
|
setKeepOpen(false);
|