@adminide-stack/yantra-help-browser 12.0.16-alpha.2 → 12.0.16-alpha.21
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/lib/components/HelpCenterFooter.d.ts.map +1 -1
- package/lib/components/HelpCenterFooter.js +93 -85
- package/lib/components/HelpCenterFooter.js.map +1 -1
- package/lib/components/HelpCenterHeader.d.ts +1 -5
- package/lib/components/HelpCenterHeader.d.ts.map +1 -1
- package/lib/components/HelpCenterHeader.js +67 -69
- package/lib/components/HelpCenterHeader.js.map +1 -1
- package/lib/components/Logo.d.ts.map +1 -1
- package/lib/components/Logo.js +3 -2
- package/lib/components/Logo.js.map +1 -1
- package/lib/components/SearchBar.d.ts +8 -0
- package/lib/components/SearchBar.d.ts.map +1 -0
- package/lib/components/SearchBar.js +234 -0
- package/lib/components/SearchBar.js.map +1 -0
- package/lib/components/SidebarSearch.d.ts +8 -0
- package/lib/components/SidebarSearch.d.ts.map +1 -0
- package/lib/components/SidebarSearch.js +114 -0
- package/lib/components/SidebarSearch.js.map +1 -0
- package/lib/components/navbar/index.d.ts.map +1 -1
- package/lib/components/navbar/index.js +5 -4
- package/lib/components/navbar/index.js.map +1 -1
- package/lib/compute.d.ts.map +1 -1
- package/lib/compute.js +19 -1
- package/lib/compute.js.map +1 -1
- package/lib/pages/CategoryCollection/index.d.ts.map +1 -1
- package/lib/pages/CategoryCollection/index.js +5 -11
- package/lib/pages/CategoryCollection/index.js.map +1 -1
- package/lib/pages/HelpCenter/components/HelpCategoryCard.d.ts +2 -0
- package/lib/pages/HelpCenter/components/HelpCategoryCard.d.ts.map +1 -1
- package/lib/pages/HelpCenter/components/HelpCategoryCard.js +135 -50
- package/lib/pages/HelpCenter/components/HelpCategoryCard.js.map +1 -1
- package/lib/pages/HelpCenter/components/Icons.d.ts +10 -0
- package/lib/pages/HelpCenter/components/Icons.d.ts.map +1 -1
- package/lib/pages/HelpCenter/components/Icons.js +211 -1
- package/lib/pages/HelpCenter/components/Icons.js.map +1 -1
- package/lib/pages/HelpCenter/components/PopularArticle.d.ts.map +1 -1
- package/lib/pages/HelpCenter/components/PopularArticle.js +17 -23
- package/lib/pages/HelpCenter/components/PopularArticle.js.map +1 -1
- package/lib/pages/HelpCenter/index.d.ts.map +1 -1
- package/lib/pages/HelpCenter/index.js +106 -37
- package/lib/pages/HelpCenter/index.js.map +1 -1
- package/lib/pages/HelpCenter/mockData.d.ts.map +1 -1
- package/lib/pages/HelpCenter/mockData.js +14 -6
- package/lib/pages/HelpCenter/mockData.js.map +1 -1
- package/lib/pages/LandingPage/components/HeroSection.d.ts +0 -1
- package/lib/pages/LandingPage/components/HeroSection.d.ts.map +1 -1
- package/lib/pages/LandingPage/components/HeroSection.js +3 -6
- package/lib/pages/LandingPage/components/HeroSection.js.map +1 -1
- package/lib/pages/LandingPage/index.d.ts.map +1 -1
- package/lib/pages/LandingPage/index.js +1 -6
- package/lib/pages/LandingPage/index.js.map +1 -1
- package/lib/pages/Markdown/MarkdownPageLayout.d.ts +3 -0
- package/lib/pages/Markdown/MarkdownPageLayout.d.ts.map +1 -0
- package/lib/pages/Markdown/MarkdownPageLayout.js +314 -0
- package/lib/pages/Markdown/MarkdownPageLayout.js.map +1 -0
- package/lib/pages/Markdown/MarkdownPageWithParams.d.ts +9 -0
- package/lib/pages/Markdown/MarkdownPageWithParams.d.ts.map +1 -0
- package/lib/pages/Markdown/MarkdownPageWithParams.js +65 -0
- package/lib/pages/Markdown/MarkdownPageWithParams.js.map +1 -0
- package/lib/pages/Markdown/index.d.ts +3 -0
- package/lib/pages/Markdown/index.d.ts.map +1 -0
- package/lib/pages/Markdown/index.js +5 -0
- package/lib/pages/Markdown/index.js.map +1 -0
- package/lib/routes.json +28 -1
- package/lib/{content → templates/content}/account-management/account-setup.md +10 -0
- package/lib/{content → templates/content}/account-management/delete-account.md +10 -0
- package/lib/{content → templates/content}/account-management/preferences.md +10 -0
- package/lib/{content → templates/content}/account-management/privacy-settings.md +10 -0
- package/lib/{content → templates/content}/account-management/profile-settings.md +8 -0
- package/lib/templates/content/ai-employees/ai-employees-overview.md +97 -0
- package/lib/templates/content/ai-employees/getting-started-ai-employees.md +119 -0
- package/lib/templates/content/ai-employees/how-ai-employees-work.md +123 -0
- package/lib/templates/content/ai-employees/supervised-mode.md +141 -0
- package/lib/templates/content/content-manifest.json +5670 -0
- package/lib/{content → templates/content}/data-privacy/data-collection.md +9 -0
- package/lib/{content → templates/content}/data-privacy/privacy-policy.md +10 -0
- package/lib/{content → templates/content}/data-subject-privacy/data-access.md +12 -0
- package/lib/{content → templates/content}/data-subject-privacy/data-portability.md +15 -0
- package/lib/{content → templates/content}/data-subject-privacy/privacy-requests.md +11 -0
- package/lib/{content → templates/content}/file-uploads/file-upload-overview.md +9 -0
- package/lib/{content → templates/content}/getting-started/getting-started-guide.md +9 -0
- package/lib/templates/content/integrations/crm-integrations.md +130 -0
- package/lib/templates/content/integrations/github-integration.md +95 -0
- package/lib/templates/content/integrations/integrations-overview.md +142 -0
- package/lib/templates/content/integrations/monitoring-integrations.md +109 -0
- package/lib/templates/content/integrations/productivity-integrations.md +129 -0
- package/lib/templates/content/integrations/slack-integration.md +79 -0
- package/lib/templates/content/openclaw/openclaw-architecture.md +202 -0
- package/lib/templates/content/openclaw/openclaw-contribution.md +107 -0
- package/lib/templates/content/openclaw/openclaw-overview.md +152 -0
- package/lib/templates/content/platform-features/always-watching.md +63 -0
- package/lib/templates/content/platform-features/instant-context.md +67 -0
- package/lib/templates/content/platform-features/instant-onboarding.md +80 -0
- package/lib/templates/content/platform-features/platform-overview.md +58 -0
- package/lib/templates/content/platform-features/proactive-alerts.md +88 -0
- package/lib/templates/content/platform-features/smart-escalation.md +93 -0
- package/lib/{content → templates/content}/product-features/ai-models.md +1 -1
- package/lib/{content → templates/content}/product-features/collaboration-tools.md +8 -0
- package/lib/{content → templates/content}/product-features/conversation-features.md +6 -0
- package/lib/{content → templates/content}/product-features/export-features.md +8 -0
- package/lib/{content → templates/content}/product-features/follow-up-questions.md +8 -0
- package/lib/{content → templates/content}/product-features/real-time-search.md +8 -0
- package/lib/{content → templates/content}/product-features/saved-searches.md +8 -0
- package/lib/{content → templates/content}/product-features/search-features.md +1 -1
- package/lib/{content → templates/content}/product-features/search-history.md +8 -0
- package/lib/{content → templates/content}/product-features/source-citations.md +8 -0
- package/lib/{content → templates/content}/scope-api/api-overview.md +8 -0
- package/lib/{content → templates/content}/search-modes/deep-research.md +8 -0
- package/lib/{content → templates/content}/search-modes/labs-features.md +10 -0
- package/lib/{content → templates/content}/search-modes/pro-search.md +8 -0
- package/lib/{content → templates/content}/search-modes/regular-search.md +8 -0
- package/lib/templates/content/security-compliance/audit-trail.md +112 -0
- package/lib/templates/content/security-compliance/compliance.md +120 -0
- package/lib/templates/content/security-compliance/data-encryption.md +94 -0
- package/lib/templates/content/security-compliance/security-overview.md +186 -0
- package/lib/templates/content/security-compliance/vm-isolation.md +126 -0
- package/lib/templates/content/solutions-engineering/bug-tracking-context.md +126 -0
- package/lib/templates/content/solutions-engineering/engineering-overview.md +107 -0
- package/lib/templates/content/solutions-engineering/error-monitoring.md +120 -0
- package/lib/templates/content/solutions-engineering/institutional-memory.md +120 -0
- package/lib/templates/content/solutions-marketing/brand-monitoring.md +135 -0
- package/lib/templates/content/solutions-marketing/content-automation.md +111 -0
- package/lib/templates/content/solutions-marketing/marketing-overview.md +108 -0
- package/lib/templates/content/solutions-marketing/social-media-management.md +108 -0
- package/lib/templates/content/solutions-sales/call-preparation.md +106 -0
- package/lib/templates/content/solutions-sales/crm-automation.md +119 -0
- package/lib/templates/content/solutions-sales/lead-management.md +108 -0
- package/lib/templates/content/solutions-sales/sales-overview.md +120 -0
- package/lib/{content → templates/content}/spaces-library/spaces-overview.md +8 -0
- package/lib/{content → templates/content}/student-hub/academic-research.md +8 -0
- package/lib/{content → templates/content}/student-hub/student-discounts.md +10 -0
- package/lib/{content → templates/content}/student-hub/student-overview.md +8 -0
- package/lib/{content → templates/content}/student-hub/study-tools.md +8 -0
- package/lib/{content → templates/content}/subscription-billing/billing-cycle.md +8 -0
- package/lib/{content → templates/content}/subscription-billing/billing-overview.md +6 -0
- package/lib/{content → templates/content}/subscription-billing/billing-support.md +8 -0
- package/lib/{content → templates/content}/subscription-billing/currency-support.md +10 -0
- package/lib/{content → templates/content}/subscription-billing/enterprise-pricing.md +8 -0
- package/lib/{content → templates/content}/subscription-billing/invoice-management.md +8 -0
- package/lib/{content → templates/content}/subscription-billing/payment-methods.md +9 -0
- package/lib/{content → templates/content}/subscription-billing/promotional-offers.md +8 -0
- package/lib/{content → templates/content}/subscription-billing/refund-policy.md +10 -0
- package/lib/{content → templates/content}/subscription-billing/student-discounts.md +10 -0
- package/lib/{content → templates/content}/subscription-billing/tax-information.md +8 -0
- package/lib/{content → templates/content}/technical-questions/ai-models-technical.md +10 -0
- package/lib/{content → templates/content}/technical-questions/api-technical.md +10 -0
- package/lib/{content → templates/content}/technical-questions/data-processing.md +10 -0
- package/lib/{content → templates/content}/technical-questions/database-architecture.md +10 -0
- package/lib/{content → templates/content}/technical-questions/infrastructure.md +10 -0
- package/lib/{content → templates/content}/technical-questions/performance-optimization.md +10 -0
- package/lib/{content → templates/content}/technical-questions/search-algorithms.md +10 -0
- package/lib/{content → templates/content}/technical-questions/technical-overview.md +10 -0
- package/lib/{content → templates/content}/threads/conversation-management.md +8 -0
- package/lib/{content → templates/content}/threads/threads-overview.md +8 -0
- package/lib/{content → templates/content}/troubleshooting/common-issues.md +8 -0
- package/lib/templates/content/use-cases/engineering-use-cases.md +123 -0
- package/lib/templates/content/use-cases/marketing-use-cases.md +128 -0
- package/lib/templates/content/use-cases/sales-use-cases.md +123 -0
- package/lib/templates/content/use-cases/support-use-cases.md +120 -0
- package/lib/templates/content/use-cases/use-cases-overview.md +115 -0
- package/lib/{content → templates/content}/what-is-yantra/getting-started-yantra.md +1 -1
- package/lib/{content → templates/content}/what-is-yantra/how-yantra-works.md +1 -1
- package/lib/{content → templates/content}/what-is-yantra/practical-tips-yantra.md +2 -1
- package/lib/{content → templates/content}/what-is-yantra/what-is-yantra-intro.md +1 -1
- package/lib/{content → templates/content}/what-is-yantra/yantra-discord-community.md +4 -1
- package/lib/{content → templates/content}/yantra-assistant/android-app.md +10 -0
- package/lib/{content → templates/content}/yantra-assistant/ios-app.md +10 -0
- package/lib/{content → templates/content}/yantra-assistant/mobile-app-overview.md +8 -0
- package/lib/{content → templates/content}/yantra-assistant/voice-assistant.md +10 -0
- package/lib/{content → templates/content}/yantra-enterprise/admin-dashboard.md +10 -0
- package/lib/{content → templates/content}/yantra-enterprise/custom-branding.md +10 -0
- package/lib/{content → templates/content}/yantra-enterprise/dedicated-support.md +10 -0
- package/lib/{content → templates/content}/yantra-enterprise/enterprise-overview.md +8 -0
- package/lib/{content → templates/content}/yantra-enterprise/sso-integration.md +10 -0
- package/lib/{content → templates/content}/yantra-enterprise/user-management.md +10 -0
- package/lib/{content → templates/content}/yantra-pro-max/billing-management.md +13 -0
- package/lib/{content → templates/content}/yantra-pro-max/cancellation-refund.md +13 -0
- package/lib/{content → templates/content}/yantra-pro-max/pro-pricing.md +13 -9
- package/lib/{content → templates/content}/yantra-pro-max/subscription-benefits.md +8 -0
- package/lib/{content → templates/content}/yantra-pro-max/upgrade-process.md +13 -0
- package/lib/{content → templates/content}/yantra-pro-max/yantra-max-features.md +8 -8
- package/lib/{content → templates/content}/yantra-pro-max/yantra-pro-overview.md +8 -8
- package/lib/utils/docsNavigation.d.ts +10 -0
- package/lib/utils/docsNavigation.d.ts.map +1 -0
- package/lib/utils/docsNavigation.js +151 -0
- package/lib/utils/docsNavigation.js.map +1 -0
- package/lib/utils/helpCenterUtils.d.ts.map +1 -1
- package/lib/utils/markdownLoader.d.ts +12 -4
- package/lib/utils/markdownLoader.d.ts.map +1 -1
- package/lib/utils/markdownLoader.js +362 -1163
- package/lib/utils/markdownLoader.js.map +1 -1
- package/package.json +23 -6
- package/lib/pages/ArticlePage/index.d.ts +0 -4
- package/lib/pages/ArticlePage/index.d.ts.map +0 -1
- package/lib/pages/ArticlePage/index.js +0 -190
- package/lib/pages/ArticlePage/index.js.map +0 -1
- package/lib/pages/HelpCenter/components/BookStack.js +0 -36
- package/lib/pages/HelpCenter/components/BookStack.js.map +0 -1
- package/lib/pages/LandingPage/components/SearchBar.d.ts +0 -8
- package/lib/pages/LandingPage/components/SearchBar.d.ts.map +0 -1
- package/lib/pages/LandingPage/components/SearchBar.js +0 -58
- package/lib/pages/LandingPage/components/SearchBar.js.map +0 -1
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import {getAllCategoriesMetadataSync}from'./markdownLoader.js';// Utility to build navigation tree from folder structure in manifest
|
|
2
|
+
// Cache for manifest
|
|
3
|
+
let cachedManifest = null;
|
|
4
|
+
let manifestLoadPromise = null;
|
|
5
|
+
// Note: Direct import of JSON requires build-time configuration
|
|
6
|
+
// For now, we rely on async fetch or window.__CONTENT_MANIFEST__
|
|
7
|
+
// Function to load content manifest synchronously (for initial render)
|
|
8
|
+
function loadContentManifestSync() {
|
|
9
|
+
if (cachedManifest) {
|
|
10
|
+
return cachedManifest;
|
|
11
|
+
}
|
|
12
|
+
// In browser, try to load from window if available (set by initial page load)
|
|
13
|
+
if (typeof window !== 'undefined' && window.__CONTENT_MANIFEST__) {
|
|
14
|
+
cachedManifest = window.__CONTENT_MANIFEST__;
|
|
15
|
+
console.log('✅ Manifest loaded from window.__CONTENT_MANIFEST__');
|
|
16
|
+
return cachedManifest;
|
|
17
|
+
}
|
|
18
|
+
// Try to load from the static file path
|
|
19
|
+
// This will only work if the manifest is already loaded
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
// Function to load content manifest asynchronously
|
|
23
|
+
async function loadContentManifest() {
|
|
24
|
+
if (cachedManifest) {
|
|
25
|
+
return cachedManifest;
|
|
26
|
+
}
|
|
27
|
+
if (manifestLoadPromise) {
|
|
28
|
+
return manifestLoadPromise;
|
|
29
|
+
}
|
|
30
|
+
const isBrowser = typeof window !== 'undefined' && typeof window.location !== 'undefined';
|
|
31
|
+
if (!isBrowser) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
manifestLoadPromise = (async () => {
|
|
35
|
+
try {
|
|
36
|
+
const baseUrl = window.location.origin;
|
|
37
|
+
const possiblePaths = [`${baseUrl}/content/content-manifest.json`, '/content/content-manifest.json', './content/content-manifest.json', '../content/content-manifest.json'];
|
|
38
|
+
for (const manifestPath of possiblePaths) {
|
|
39
|
+
try {
|
|
40
|
+
const response = await fetch(manifestPath);
|
|
41
|
+
if (response.ok) {
|
|
42
|
+
const manifest = await response.json();
|
|
43
|
+
cachedManifest = manifest;
|
|
44
|
+
// Also set on window for sync access
|
|
45
|
+
if (typeof window !== 'undefined') {
|
|
46
|
+
window.__CONTENT_MANIFEST__ = manifest;
|
|
47
|
+
}
|
|
48
|
+
console.log('✅ Successfully loaded content manifest from:', manifestPath);
|
|
49
|
+
console.log('📦 Navigation items found:', manifest.navigationItems?.length || 0);
|
|
50
|
+
return manifest;
|
|
51
|
+
} else {
|
|
52
|
+
console.log(`⚠️ Manifest not found at ${manifestPath} (status: ${response.status})`);
|
|
53
|
+
}
|
|
54
|
+
} catch (fetchError) {
|
|
55
|
+
console.log(`⚠️ Error fetching ${manifestPath}:`, fetchError);
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
console.error('❌ Could not load content manifest from any path. Tried:', possiblePaths);
|
|
60
|
+
return null;
|
|
61
|
+
} catch (error) {
|
|
62
|
+
console.error('❌ Error loading content manifest:', error);
|
|
63
|
+
return null;
|
|
64
|
+
} finally {
|
|
65
|
+
manifestLoadPromise = null;
|
|
66
|
+
}
|
|
67
|
+
})();
|
|
68
|
+
return manifestLoadPromise;
|
|
69
|
+
}
|
|
70
|
+
// Build navigation tree from manifest navigationItems (preferred method)
|
|
71
|
+
function buildNavigationFromManifest(manifest) {
|
|
72
|
+
if (manifest && manifest.navigationItems && manifest.navigationItems.length > 0) {
|
|
73
|
+
console.log('✅ Using navigationItems from manifest:', manifest.navigationItems.length, 'top-level items');
|
|
74
|
+
return manifest.navigationItems;
|
|
75
|
+
}
|
|
76
|
+
if (manifest) {
|
|
77
|
+
console.warn('⚠️ Manifest loaded but navigationItems is empty or missing');
|
|
78
|
+
}
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
// Build navigation tree from category metadata (fallback method)
|
|
82
|
+
function buildDocsNavigationFromCategories() {
|
|
83
|
+
const categories = getAllCategoriesMetadataSync();
|
|
84
|
+
const navItems = [];
|
|
85
|
+
for (const category of categories) {
|
|
86
|
+
// Create category node
|
|
87
|
+
const categoryItem = {
|
|
88
|
+
title: category.title,
|
|
89
|
+
path: `/help-center/${category.id}`,
|
|
90
|
+
children: [],
|
|
91
|
+
isFile: false
|
|
92
|
+
};
|
|
93
|
+
// Create a flat list of articles under each category
|
|
94
|
+
// Path format: /help/:categoryId/:slug (e.g., /help/adminide-modules/adminide-modules-account-auth0-login)
|
|
95
|
+
const articleItems = category.articles.map(article => ({
|
|
96
|
+
title: article.title,
|
|
97
|
+
path: `/help-center/${category.id}/${article.slug}`,
|
|
98
|
+
children: [],
|
|
99
|
+
isFile: true
|
|
100
|
+
}));
|
|
101
|
+
// If there are articles, add them as children
|
|
102
|
+
if (articleItems.length > 0) {
|
|
103
|
+
categoryItem.children = articleItems;
|
|
104
|
+
}
|
|
105
|
+
navItems.push(categoryItem);
|
|
106
|
+
}
|
|
107
|
+
return navItems;
|
|
108
|
+
}
|
|
109
|
+
// Get navigation tree (cached, tries manifest first, falls back to categories)
|
|
110
|
+
let cachedNavigation = null;
|
|
111
|
+
function getDocsNavigation() {
|
|
112
|
+
if (cachedNavigation) {
|
|
113
|
+
return cachedNavigation;
|
|
114
|
+
}
|
|
115
|
+
// Try to load from manifest synchronously first
|
|
116
|
+
const manifest = loadContentManifestSync();
|
|
117
|
+
const navFromManifest = buildNavigationFromManifest(manifest);
|
|
118
|
+
if (navFromManifest) {
|
|
119
|
+
cachedNavigation = navFromManifest;
|
|
120
|
+
console.log('✅ Navigation loaded from manifest (sync)');
|
|
121
|
+
return cachedNavigation;
|
|
122
|
+
}
|
|
123
|
+
// Fallback to category-based navigation
|
|
124
|
+
console.warn('⚠️ Falling back to category-based navigation (manifest not available sync)');
|
|
125
|
+
cachedNavigation = buildDocsNavigationFromCategories();
|
|
126
|
+
return cachedNavigation;
|
|
127
|
+
}
|
|
128
|
+
// Async version that ensures manifest is loaded
|
|
129
|
+
async function getDocsNavigationAsync() {
|
|
130
|
+
// Try sync first
|
|
131
|
+
const syncNav = getDocsNavigation();
|
|
132
|
+
// Check if we already have manifest-based navigation
|
|
133
|
+
const manifest = loadContentManifestSync();
|
|
134
|
+
if (manifest && manifest.navigationItems && manifest.navigationItems.length > 0) {
|
|
135
|
+
console.log('✅ Navigation already loaded from manifest');
|
|
136
|
+
return syncNav;
|
|
137
|
+
}
|
|
138
|
+
// Load manifest asynchronously
|
|
139
|
+
console.log('🔄 Loading manifest asynchronously...');
|
|
140
|
+
const asyncManifest = await loadContentManifest();
|
|
141
|
+
const navFromManifest = buildNavigationFromManifest(asyncManifest);
|
|
142
|
+
if (navFromManifest) {
|
|
143
|
+
cachedNavigation = navFromManifest;
|
|
144
|
+
console.log('✅ Navigation loaded from manifest (async)');
|
|
145
|
+
return cachedNavigation;
|
|
146
|
+
}
|
|
147
|
+
// Fallback to category-based navigation
|
|
148
|
+
console.warn('⚠️ Falling back to category-based navigation (manifest not available async)');
|
|
149
|
+
cachedNavigation = buildDocsNavigationFromCategories();
|
|
150
|
+
return cachedNavigation;
|
|
151
|
+
}export{getDocsNavigation,getDocsNavigationAsync};//# sourceMappingURL=docsNavigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docsNavigation.js","sources":["../../src/utils/docsNavigation.ts"],"sourcesContent":[null],"names":[],"mappings":"+DAAA;AA0BA;AACA,IAAI,cAAc,GAA2B,IAAI;AACjD,IAAI,mBAAmB,GAA2C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ts","sourceRoot":"","sources":["../../src/utils/helpCenterUtils.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,OAAO;
|
|
1
|
+
{"version":3,"file":"helpCenterUtils.d.ts","sourceRoot":"","sources":["../../src/utils/helpCenterUtils.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACvB;AAGD,eAAO,MAAM,cAAc,GAAI,YAAY,QAAQ,EAAE,aAcpD,CAAC;AAGF,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,EAAE,YAAY,QAAQ,EAAE,KAAG,QAAQ,GAAG,IAEvF,CAAC;AAGF,eAAO,MAAM,gBAAgB,GAAI,aAAa,MAAM,EAAE,YAAY,QAAQ,EAAE,KAAG,OAAO,GAAG,IAMxF,CAAC;AAGF,eAAO,MAAM,qBAAqB,GAAI,YAAY,MAAM,EAAE,YAAY,QAAQ,EAAE,KAAG,OAAO,EAGzF,CAAC;AAGF,eAAO,MAAM,mBAAmB,GAAI,YAAY,MAAM,EAAE,YAAY,QAAQ,EAAE,EAAE,cAAc,MAAM;;;GAsBnG,CAAC"}
|
|
@@ -24,9 +24,17 @@ export interface Category {
|
|
|
24
24
|
iconType: string;
|
|
25
25
|
articles: Article[];
|
|
26
26
|
}
|
|
27
|
-
export declare const getAllCategoriesMetadata: () => Category[]
|
|
28
|
-
export declare const
|
|
29
|
-
export declare const
|
|
27
|
+
export declare const getAllCategoriesMetadata: () => Promise<Category[]>;
|
|
28
|
+
export declare const getAllCategoriesMetadataSync: () => Category[];
|
|
29
|
+
export declare const getCategoryById: (categoryId: string) => Promise<Category | null>;
|
|
30
|
+
export declare const getCategoryByIdSync: (categoryId: string) => Category | null;
|
|
31
|
+
export declare const getArticleBySlug: (articleSlug: string) => Promise<Article | null>;
|
|
32
|
+
export declare const getArticleBySlugSync: (articleSlug: string) => Article | null;
|
|
30
33
|
export declare const loadArticleContent: (articleSlug: string) => Promise<Article | null>;
|
|
31
|
-
export declare const
|
|
34
|
+
export declare const loadDocContent: (docSlug: string) => Promise<Article | null>;
|
|
35
|
+
export declare const loadBlogContent: (blogSlug: string) => Promise<Article | null>;
|
|
36
|
+
export declare const parseMarkdownToHtml: (markdownContent: string) => Promise<string>;
|
|
37
|
+
export declare const searchArticles: (query: string) => Promise<Article[]>;
|
|
38
|
+
export declare const getAllArticles: () => Promise<Article[]>;
|
|
39
|
+
export declare const getAllArticlesSync: () => Article[];
|
|
32
40
|
//# sourceMappingURL=markdownLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdownLoader.d.ts","sourceRoot":"","sources":["../../src/utils/markdownLoader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"markdownLoader.d.ts","sourceRoot":"","sources":["../../src/utils/markdownLoader.ts"],"names":[],"mappings":"AAiIA,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;I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