@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.
Files changed (202) hide show
  1. package/lib/components/HelpCenterFooter.d.ts.map +1 -1
  2. package/lib/components/HelpCenterFooter.js +93 -85
  3. package/lib/components/HelpCenterFooter.js.map +1 -1
  4. package/lib/components/HelpCenterHeader.d.ts +1 -5
  5. package/lib/components/HelpCenterHeader.d.ts.map +1 -1
  6. package/lib/components/HelpCenterHeader.js +67 -69
  7. package/lib/components/HelpCenterHeader.js.map +1 -1
  8. package/lib/components/Logo.d.ts.map +1 -1
  9. package/lib/components/Logo.js +3 -2
  10. package/lib/components/Logo.js.map +1 -1
  11. package/lib/components/SearchBar.d.ts +8 -0
  12. package/lib/components/SearchBar.d.ts.map +1 -0
  13. package/lib/components/SearchBar.js +234 -0
  14. package/lib/components/SearchBar.js.map +1 -0
  15. package/lib/components/SidebarSearch.d.ts +8 -0
  16. package/lib/components/SidebarSearch.d.ts.map +1 -0
  17. package/lib/components/SidebarSearch.js +114 -0
  18. package/lib/components/SidebarSearch.js.map +1 -0
  19. package/lib/components/navbar/index.d.ts.map +1 -1
  20. package/lib/components/navbar/index.js +5 -4
  21. package/lib/components/navbar/index.js.map +1 -1
  22. package/lib/compute.d.ts.map +1 -1
  23. package/lib/compute.js +19 -1
  24. package/lib/compute.js.map +1 -1
  25. package/lib/pages/CategoryCollection/index.d.ts.map +1 -1
  26. package/lib/pages/CategoryCollection/index.js +5 -11
  27. package/lib/pages/CategoryCollection/index.js.map +1 -1
  28. package/lib/pages/HelpCenter/components/HelpCategoryCard.d.ts +2 -0
  29. package/lib/pages/HelpCenter/components/HelpCategoryCard.d.ts.map +1 -1
  30. package/lib/pages/HelpCenter/components/HelpCategoryCard.js +135 -50
  31. package/lib/pages/HelpCenter/components/HelpCategoryCard.js.map +1 -1
  32. package/lib/pages/HelpCenter/components/Icons.d.ts +10 -0
  33. package/lib/pages/HelpCenter/components/Icons.d.ts.map +1 -1
  34. package/lib/pages/HelpCenter/components/Icons.js +211 -1
  35. package/lib/pages/HelpCenter/components/Icons.js.map +1 -1
  36. package/lib/pages/HelpCenter/components/PopularArticle.d.ts.map +1 -1
  37. package/lib/pages/HelpCenter/components/PopularArticle.js +17 -23
  38. package/lib/pages/HelpCenter/components/PopularArticle.js.map +1 -1
  39. package/lib/pages/HelpCenter/index.d.ts.map +1 -1
  40. package/lib/pages/HelpCenter/index.js +106 -37
  41. package/lib/pages/HelpCenter/index.js.map +1 -1
  42. package/lib/pages/HelpCenter/mockData.d.ts.map +1 -1
  43. package/lib/pages/HelpCenter/mockData.js +14 -6
  44. package/lib/pages/HelpCenter/mockData.js.map +1 -1
  45. package/lib/pages/LandingPage/components/HeroSection.d.ts +0 -1
  46. package/lib/pages/LandingPage/components/HeroSection.d.ts.map +1 -1
  47. package/lib/pages/LandingPage/components/HeroSection.js +3 -6
  48. package/lib/pages/LandingPage/components/HeroSection.js.map +1 -1
  49. package/lib/pages/LandingPage/index.d.ts.map +1 -1
  50. package/lib/pages/LandingPage/index.js +1 -6
  51. package/lib/pages/LandingPage/index.js.map +1 -1
  52. package/lib/pages/Markdown/MarkdownPageLayout.d.ts +3 -0
  53. package/lib/pages/Markdown/MarkdownPageLayout.d.ts.map +1 -0
  54. package/lib/pages/Markdown/MarkdownPageLayout.js +314 -0
  55. package/lib/pages/Markdown/MarkdownPageLayout.js.map +1 -0
  56. package/lib/pages/Markdown/MarkdownPageWithParams.d.ts +9 -0
  57. package/lib/pages/Markdown/MarkdownPageWithParams.d.ts.map +1 -0
  58. package/lib/pages/Markdown/MarkdownPageWithParams.js +65 -0
  59. package/lib/pages/Markdown/MarkdownPageWithParams.js.map +1 -0
  60. package/lib/pages/Markdown/index.d.ts +3 -0
  61. package/lib/pages/Markdown/index.d.ts.map +1 -0
  62. package/lib/pages/Markdown/index.js +5 -0
  63. package/lib/pages/Markdown/index.js.map +1 -0
  64. package/lib/routes.json +28 -1
  65. package/lib/{content → templates/content}/account-management/account-setup.md +10 -0
  66. package/lib/{content → templates/content}/account-management/delete-account.md +10 -0
  67. package/lib/{content → templates/content}/account-management/preferences.md +10 -0
  68. package/lib/{content → templates/content}/account-management/privacy-settings.md +10 -0
  69. package/lib/{content → templates/content}/account-management/profile-settings.md +8 -0
  70. package/lib/templates/content/ai-employees/ai-employees-overview.md +97 -0
  71. package/lib/templates/content/ai-employees/getting-started-ai-employees.md +119 -0
  72. package/lib/templates/content/ai-employees/how-ai-employees-work.md +123 -0
  73. package/lib/templates/content/ai-employees/supervised-mode.md +141 -0
  74. package/lib/templates/content/content-manifest.json +5670 -0
  75. package/lib/{content → templates/content}/data-privacy/data-collection.md +9 -0
  76. package/lib/{content → templates/content}/data-privacy/privacy-policy.md +10 -0
  77. package/lib/{content → templates/content}/data-subject-privacy/data-access.md +12 -0
  78. package/lib/{content → templates/content}/data-subject-privacy/data-portability.md +15 -0
  79. package/lib/{content → templates/content}/data-subject-privacy/privacy-requests.md +11 -0
  80. package/lib/{content → templates/content}/file-uploads/file-upload-overview.md +9 -0
  81. package/lib/{content → templates/content}/getting-started/getting-started-guide.md +9 -0
  82. package/lib/templates/content/integrations/crm-integrations.md +130 -0
  83. package/lib/templates/content/integrations/github-integration.md +95 -0
  84. package/lib/templates/content/integrations/integrations-overview.md +142 -0
  85. package/lib/templates/content/integrations/monitoring-integrations.md +109 -0
  86. package/lib/templates/content/integrations/productivity-integrations.md +129 -0
  87. package/lib/templates/content/integrations/slack-integration.md +79 -0
  88. package/lib/templates/content/openclaw/openclaw-architecture.md +202 -0
  89. package/lib/templates/content/openclaw/openclaw-contribution.md +107 -0
  90. package/lib/templates/content/openclaw/openclaw-overview.md +152 -0
  91. package/lib/templates/content/platform-features/always-watching.md +63 -0
  92. package/lib/templates/content/platform-features/instant-context.md +67 -0
  93. package/lib/templates/content/platform-features/instant-onboarding.md +80 -0
  94. package/lib/templates/content/platform-features/platform-overview.md +58 -0
  95. package/lib/templates/content/platform-features/proactive-alerts.md +88 -0
  96. package/lib/templates/content/platform-features/smart-escalation.md +93 -0
  97. package/lib/{content → templates/content}/product-features/ai-models.md +1 -1
  98. package/lib/{content → templates/content}/product-features/collaboration-tools.md +8 -0
  99. package/lib/{content → templates/content}/product-features/conversation-features.md +6 -0
  100. package/lib/{content → templates/content}/product-features/export-features.md +8 -0
  101. package/lib/{content → templates/content}/product-features/follow-up-questions.md +8 -0
  102. package/lib/{content → templates/content}/product-features/real-time-search.md +8 -0
  103. package/lib/{content → templates/content}/product-features/saved-searches.md +8 -0
  104. package/lib/{content → templates/content}/product-features/search-features.md +1 -1
  105. package/lib/{content → templates/content}/product-features/search-history.md +8 -0
  106. package/lib/{content → templates/content}/product-features/source-citations.md +8 -0
  107. package/lib/{content → templates/content}/scope-api/api-overview.md +8 -0
  108. package/lib/{content → templates/content}/search-modes/deep-research.md +8 -0
  109. package/lib/{content → templates/content}/search-modes/labs-features.md +10 -0
  110. package/lib/{content → templates/content}/search-modes/pro-search.md +8 -0
  111. package/lib/{content → templates/content}/search-modes/regular-search.md +8 -0
  112. package/lib/templates/content/security-compliance/audit-trail.md +112 -0
  113. package/lib/templates/content/security-compliance/compliance.md +120 -0
  114. package/lib/templates/content/security-compliance/data-encryption.md +94 -0
  115. package/lib/templates/content/security-compliance/security-overview.md +186 -0
  116. package/lib/templates/content/security-compliance/vm-isolation.md +126 -0
  117. package/lib/templates/content/solutions-engineering/bug-tracking-context.md +126 -0
  118. package/lib/templates/content/solutions-engineering/engineering-overview.md +107 -0
  119. package/lib/templates/content/solutions-engineering/error-monitoring.md +120 -0
  120. package/lib/templates/content/solutions-engineering/institutional-memory.md +120 -0
  121. package/lib/templates/content/solutions-marketing/brand-monitoring.md +135 -0
  122. package/lib/templates/content/solutions-marketing/content-automation.md +111 -0
  123. package/lib/templates/content/solutions-marketing/marketing-overview.md +108 -0
  124. package/lib/templates/content/solutions-marketing/social-media-management.md +108 -0
  125. package/lib/templates/content/solutions-sales/call-preparation.md +106 -0
  126. package/lib/templates/content/solutions-sales/crm-automation.md +119 -0
  127. package/lib/templates/content/solutions-sales/lead-management.md +108 -0
  128. package/lib/templates/content/solutions-sales/sales-overview.md +120 -0
  129. package/lib/{content → templates/content}/spaces-library/spaces-overview.md +8 -0
  130. package/lib/{content → templates/content}/student-hub/academic-research.md +8 -0
  131. package/lib/{content → templates/content}/student-hub/student-discounts.md +10 -0
  132. package/lib/{content → templates/content}/student-hub/student-overview.md +8 -0
  133. package/lib/{content → templates/content}/student-hub/study-tools.md +8 -0
  134. package/lib/{content → templates/content}/subscription-billing/billing-cycle.md +8 -0
  135. package/lib/{content → templates/content}/subscription-billing/billing-overview.md +6 -0
  136. package/lib/{content → templates/content}/subscription-billing/billing-support.md +8 -0
  137. package/lib/{content → templates/content}/subscription-billing/currency-support.md +10 -0
  138. package/lib/{content → templates/content}/subscription-billing/enterprise-pricing.md +8 -0
  139. package/lib/{content → templates/content}/subscription-billing/invoice-management.md +8 -0
  140. package/lib/{content → templates/content}/subscription-billing/payment-methods.md +9 -0
  141. package/lib/{content → templates/content}/subscription-billing/promotional-offers.md +8 -0
  142. package/lib/{content → templates/content}/subscription-billing/refund-policy.md +10 -0
  143. package/lib/{content → templates/content}/subscription-billing/student-discounts.md +10 -0
  144. package/lib/{content → templates/content}/subscription-billing/tax-information.md +8 -0
  145. package/lib/{content → templates/content}/technical-questions/ai-models-technical.md +10 -0
  146. package/lib/{content → templates/content}/technical-questions/api-technical.md +10 -0
  147. package/lib/{content → templates/content}/technical-questions/data-processing.md +10 -0
  148. package/lib/{content → templates/content}/technical-questions/database-architecture.md +10 -0
  149. package/lib/{content → templates/content}/technical-questions/infrastructure.md +10 -0
  150. package/lib/{content → templates/content}/technical-questions/performance-optimization.md +10 -0
  151. package/lib/{content → templates/content}/technical-questions/search-algorithms.md +10 -0
  152. package/lib/{content → templates/content}/technical-questions/technical-overview.md +10 -0
  153. package/lib/{content → templates/content}/threads/conversation-management.md +8 -0
  154. package/lib/{content → templates/content}/threads/threads-overview.md +8 -0
  155. package/lib/{content → templates/content}/troubleshooting/common-issues.md +8 -0
  156. package/lib/templates/content/use-cases/engineering-use-cases.md +123 -0
  157. package/lib/templates/content/use-cases/marketing-use-cases.md +128 -0
  158. package/lib/templates/content/use-cases/sales-use-cases.md +123 -0
  159. package/lib/templates/content/use-cases/support-use-cases.md +120 -0
  160. package/lib/templates/content/use-cases/use-cases-overview.md +115 -0
  161. package/lib/{content → templates/content}/what-is-yantra/getting-started-yantra.md +1 -1
  162. package/lib/{content → templates/content}/what-is-yantra/how-yantra-works.md +1 -1
  163. package/lib/{content → templates/content}/what-is-yantra/practical-tips-yantra.md +2 -1
  164. package/lib/{content → templates/content}/what-is-yantra/what-is-yantra-intro.md +1 -1
  165. package/lib/{content → templates/content}/what-is-yantra/yantra-discord-community.md +4 -1
  166. package/lib/{content → templates/content}/yantra-assistant/android-app.md +10 -0
  167. package/lib/{content → templates/content}/yantra-assistant/ios-app.md +10 -0
  168. package/lib/{content → templates/content}/yantra-assistant/mobile-app-overview.md +8 -0
  169. package/lib/{content → templates/content}/yantra-assistant/voice-assistant.md +10 -0
  170. package/lib/{content → templates/content}/yantra-enterprise/admin-dashboard.md +10 -0
  171. package/lib/{content → templates/content}/yantra-enterprise/custom-branding.md +10 -0
  172. package/lib/{content → templates/content}/yantra-enterprise/dedicated-support.md +10 -0
  173. package/lib/{content → templates/content}/yantra-enterprise/enterprise-overview.md +8 -0
  174. package/lib/{content → templates/content}/yantra-enterprise/sso-integration.md +10 -0
  175. package/lib/{content → templates/content}/yantra-enterprise/user-management.md +10 -0
  176. package/lib/{content → templates/content}/yantra-pro-max/billing-management.md +13 -0
  177. package/lib/{content → templates/content}/yantra-pro-max/cancellation-refund.md +13 -0
  178. package/lib/{content → templates/content}/yantra-pro-max/pro-pricing.md +13 -9
  179. package/lib/{content → templates/content}/yantra-pro-max/subscription-benefits.md +8 -0
  180. package/lib/{content → templates/content}/yantra-pro-max/upgrade-process.md +13 -0
  181. package/lib/{content → templates/content}/yantra-pro-max/yantra-max-features.md +8 -8
  182. package/lib/{content → templates/content}/yantra-pro-max/yantra-pro-overview.md +8 -8
  183. package/lib/utils/docsNavigation.d.ts +10 -0
  184. package/lib/utils/docsNavigation.d.ts.map +1 -0
  185. package/lib/utils/docsNavigation.js +151 -0
  186. package/lib/utils/docsNavigation.js.map +1 -0
  187. package/lib/utils/helpCenterUtils.d.ts.map +1 -1
  188. package/lib/utils/markdownLoader.d.ts +12 -4
  189. package/lib/utils/markdownLoader.d.ts.map +1 -1
  190. package/lib/utils/markdownLoader.js +362 -1163
  191. package/lib/utils/markdownLoader.js.map +1 -1
  192. package/package.json +23 -6
  193. package/lib/pages/ArticlePage/index.d.ts +0 -4
  194. package/lib/pages/ArticlePage/index.d.ts.map +0 -1
  195. package/lib/pages/ArticlePage/index.js +0 -190
  196. package/lib/pages/ArticlePage/index.js.map +0 -1
  197. package/lib/pages/HelpCenter/components/BookStack.js +0 -36
  198. package/lib/pages/HelpCenter/components/BookStack.js.map +0 -1
  199. package/lib/pages/LandingPage/components/SearchBar.d.ts +0 -8
  200. package/lib/pages/LandingPage/components/SearchBar.d.ts.map +0 -1
  201. package/lib/pages/LandingPage/components/SearchBar.js +0 -58
  202. 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,IAAI;AAEtE;AACA;AAEA;AACA,SAAS,uBAAuB,GAAA;MACxB,cAAA,EAAc;AACd,IAAA,OAAA;;;MAIA,OAAA,WAAkB,WAAA,UAA8B,CAAA,oBAAqB,EAAA;AACrE,IAAA,cAAA,GAAA,MAAkB,CAAA,oBAAe;AACjC,IAAA,OAAA,CAAA,GAAO,CAAC,oDAAI,CAAA;AACZ,IAAA,OAAA;;;;AAKJ,EAAA,OAAA;AACJ;AAEA;AACA,eAAe,mBAAmB,GAAA;MAC1B,cAAA,EAAc;AACd,IAAA,OAAA;;MAGA,mBAAA,EAAmB;AACnB,IAAA,OAAA;;AAGJ,EAAA,MAAA,SAAe,GAAA,OAAU,MAAA,KAAW,WAAA,IAAe,OAAA,MAAa,CAAA,QAAS,KAAA;MAErE,CAAA,SAAU,EAAA;AACV,IAAA,OAAA,IAAO;;AAGX,EAAA,mBAAA,GAAsB,CAAA,YAAY;AAC9B,IAAA,IAAA;AACI,MAAA,MAAA,gBAAg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,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 getCategoryById: (categoryId: string) => Category | null;
29
- export declare const getArticleBySlug: (articleSlug: string) => Article | null;
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 parseMarkdownToHtml: (markdownContent: string) => string;
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":"AAEA,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,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