@publier/native 0.0.0-stage → 0.1.1
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/README.md +1 -3
- package/dist/index.d.mts +597 -0
- package/dist/index.mjs +5 -0
- package/index.d.ts +174 -0
- package/index.js +986 -0
- package/package.json +34 -3
- package/publier-native.linux-x64-gnu.node +0 -0
package/README.md
CHANGED
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,597 @@
|
|
|
1
|
+
interface Ga4Config {
|
|
2
|
+
measurementId: string;
|
|
3
|
+
}
|
|
4
|
+
interface PosthogConfig {
|
|
5
|
+
apiKey: string;
|
|
6
|
+
host?: string;
|
|
7
|
+
}
|
|
8
|
+
interface PlausibleConfig {
|
|
9
|
+
domain: string;
|
|
10
|
+
selfHosted?: string;
|
|
11
|
+
}
|
|
12
|
+
interface FathomConfig {
|
|
13
|
+
siteId: string;
|
|
14
|
+
}
|
|
15
|
+
interface UmamiConfig {
|
|
16
|
+
websiteId: string;
|
|
17
|
+
src: string;
|
|
18
|
+
}
|
|
19
|
+
interface CustomScript {
|
|
20
|
+
src?: string;
|
|
21
|
+
content?: string;
|
|
22
|
+
async?: boolean;
|
|
23
|
+
defer?: boolean;
|
|
24
|
+
placement?: 'head' | 'body';
|
|
25
|
+
}
|
|
26
|
+
interface AnalyticsProvider {
|
|
27
|
+
ga4?: Ga4Config;
|
|
28
|
+
posthog?: PosthogConfig;
|
|
29
|
+
plausible?: PlausibleConfig;
|
|
30
|
+
fathom?: FathomConfig;
|
|
31
|
+
umami?: UmamiConfig;
|
|
32
|
+
scripts?: CustomScript[];
|
|
33
|
+
}
|
|
34
|
+
export declare function generateAnalyticsScripts(analytics: AnalyticsProvider): string;
|
|
35
|
+
export declare function generateAnalyticsBodyScripts(analytics: AnalyticsProvider): string;
|
|
36
|
+
interface Page {
|
|
37
|
+
slug: string[];
|
|
38
|
+
url: string;
|
|
39
|
+
filePath: string;
|
|
40
|
+
frontmatter: {
|
|
41
|
+
title: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
order?: number;
|
|
44
|
+
icon?: string;
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
toc: TocEntry[];
|
|
48
|
+
structuredData: StructuredSection[];
|
|
49
|
+
lastModified?: string;
|
|
50
|
+
bodyHtml?: string;
|
|
51
|
+
locale?: string;
|
|
52
|
+
}
|
|
53
|
+
interface TocEntry {
|
|
54
|
+
depth: number;
|
|
55
|
+
title: string;
|
|
56
|
+
url: string;
|
|
57
|
+
}
|
|
58
|
+
interface StructuredSection {
|
|
59
|
+
heading?: string;
|
|
60
|
+
content: string;
|
|
61
|
+
}
|
|
62
|
+
interface PageTreeNode {
|
|
63
|
+
type: 'page';
|
|
64
|
+
title: string;
|
|
65
|
+
url: string;
|
|
66
|
+
badge?: {
|
|
67
|
+
label: string;
|
|
68
|
+
variant?: string;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
interface FolderTreeNode {
|
|
72
|
+
type: 'folder';
|
|
73
|
+
title: string;
|
|
74
|
+
children: TreeNode[];
|
|
75
|
+
defaultOpen?: boolean;
|
|
76
|
+
}
|
|
77
|
+
type TreeNode = PageTreeNode | FolderTreeNode;
|
|
78
|
+
interface PageTree {
|
|
79
|
+
root: TreeNode[];
|
|
80
|
+
}
|
|
81
|
+
interface ContentSource {
|
|
82
|
+
getPage(slug: string[]): Promise<Page | undefined>;
|
|
83
|
+
getPages(): Promise<Page[]>;
|
|
84
|
+
getPageTree(): Promise<PageTree>;
|
|
85
|
+
generateParams(): Promise<{
|
|
86
|
+
slug: string[];
|
|
87
|
+
}[]>;
|
|
88
|
+
}
|
|
89
|
+
export declare function sortByDate(pages: Page[]): Page[];
|
|
90
|
+
export declare function getTagCounts(pages: Page[]): Map<string, number>;
|
|
91
|
+
export declare function filterByTag(pages: Page[], tag: string): Page[];
|
|
92
|
+
export declare function getReadingTime(structuredData: {
|
|
93
|
+
heading?: string;
|
|
94
|
+
content: string;
|
|
95
|
+
}[]): number;
|
|
96
|
+
interface LlmsPage {
|
|
97
|
+
url: string;
|
|
98
|
+
title: string;
|
|
99
|
+
description?: string;
|
|
100
|
+
collection?: string;
|
|
101
|
+
}
|
|
102
|
+
interface LlmsOptions {
|
|
103
|
+
siteName: string;
|
|
104
|
+
siteDescription?: string;
|
|
105
|
+
pages: LlmsPage[];
|
|
106
|
+
collections?: string[];
|
|
107
|
+
}
|
|
108
|
+
export declare function generateLlmsTxt(options: LlmsOptions): string;
|
|
109
|
+
interface TwitterMetaTag {
|
|
110
|
+
name: string;
|
|
111
|
+
content: string;
|
|
112
|
+
}
|
|
113
|
+
interface TwitterMetaOptions {
|
|
114
|
+
title: string;
|
|
115
|
+
description: string;
|
|
116
|
+
imageUrl: string;
|
|
117
|
+
twitterHandle?: string;
|
|
118
|
+
cardType?: 'summary' | 'summary_large_image';
|
|
119
|
+
}
|
|
120
|
+
export declare function generateTwitterMeta(options: TwitterMetaOptions): TwitterMetaTag[];
|
|
121
|
+
interface OgImageOptions {
|
|
122
|
+
title: string;
|
|
123
|
+
description?: string;
|
|
124
|
+
siteName: string;
|
|
125
|
+
theme?: 'light' | 'dark';
|
|
126
|
+
width?: number;
|
|
127
|
+
height?: number;
|
|
128
|
+
fonts?: object[];
|
|
129
|
+
}
|
|
130
|
+
export declare const MAX_TITLE_LEN = 200;
|
|
131
|
+
export declare const MAX_DESCRIPTION_LEN = 400;
|
|
132
|
+
export declare const MAX_SITENAME_LEN = 80;
|
|
133
|
+
export declare function clamp(value: string, max: number): string;
|
|
134
|
+
export declare function generateOgImage(options: OgImageOptions): Promise<Uint8Array>;
|
|
135
|
+
export declare const TOGGLEABLE_PAGES: readonly ['docs', 'blog', 'landing', 'press', 'about', 'team', 'contact', 'careers', 'changelog', 'status', 'knowledge-base', '404'];
|
|
136
|
+
type ToggleablePage = (typeof TOGGLEABLE_PAGES)[number];
|
|
137
|
+
type PagesToggleMap = Partial<Record<ToggleablePage, boolean>>;
|
|
138
|
+
export declare const APPEARANCE_DEFAULTS: readonly ['system', 'light', 'dark'];
|
|
139
|
+
type AppearanceDefault = (typeof APPEARANCE_DEFAULTS)[number];
|
|
140
|
+
interface AppearanceConfig {
|
|
141
|
+
default: AppearanceDefault;
|
|
142
|
+
strict: boolean;
|
|
143
|
+
}
|
|
144
|
+
interface IntegrationsConfig {
|
|
145
|
+
openapi: string[];
|
|
146
|
+
asyncapi: string[];
|
|
147
|
+
mermaid: boolean;
|
|
148
|
+
math: boolean;
|
|
149
|
+
}
|
|
150
|
+
interface SearchConfig {
|
|
151
|
+
enabled: boolean;
|
|
152
|
+
hotkey: string;
|
|
153
|
+
}
|
|
154
|
+
interface SidebarConfig {
|
|
155
|
+
defaultOpenLevel: number;
|
|
156
|
+
}
|
|
157
|
+
interface NavLink {
|
|
158
|
+
label: string;
|
|
159
|
+
href: string;
|
|
160
|
+
external: boolean;
|
|
161
|
+
}
|
|
162
|
+
interface NavConfig {
|
|
163
|
+
title?: string;
|
|
164
|
+
links: NavLink[];
|
|
165
|
+
}
|
|
166
|
+
interface PressConfig {
|
|
167
|
+
contactEmail?: string;
|
|
168
|
+
sort: 'date-desc' | 'date-asc';
|
|
169
|
+
}
|
|
170
|
+
interface RobotsConfig {
|
|
171
|
+
content?: string;
|
|
172
|
+
}
|
|
173
|
+
interface RssConfig {
|
|
174
|
+
collections: string[];
|
|
175
|
+
}
|
|
176
|
+
interface LlmsConfig {
|
|
177
|
+
enabled: boolean;
|
|
178
|
+
full: boolean;
|
|
179
|
+
collections: string[];
|
|
180
|
+
}
|
|
181
|
+
interface LogoConfig {
|
|
182
|
+
light?: string;
|
|
183
|
+
dark?: string;
|
|
184
|
+
}
|
|
185
|
+
interface SiteConfig {
|
|
186
|
+
name: string;
|
|
187
|
+
url?: string;
|
|
188
|
+
description?: string;
|
|
189
|
+
logo?: LogoConfig;
|
|
190
|
+
favicon?: string;
|
|
191
|
+
footer?: string;
|
|
192
|
+
serviceWorker: boolean;
|
|
193
|
+
}
|
|
194
|
+
interface FontConfig {
|
|
195
|
+
family: string;
|
|
196
|
+
googleFontsUrl?: string;
|
|
197
|
+
src?: string;
|
|
198
|
+
weight?: string;
|
|
199
|
+
style?: string;
|
|
200
|
+
}
|
|
201
|
+
interface FontsConfig {
|
|
202
|
+
heading?: FontConfig;
|
|
203
|
+
body?: FontConfig;
|
|
204
|
+
mono?: FontConfig;
|
|
205
|
+
}
|
|
206
|
+
interface PublierConfig {
|
|
207
|
+
site: SiteConfig;
|
|
208
|
+
nav: NavConfig;
|
|
209
|
+
sidebar: SidebarConfig;
|
|
210
|
+
search: SearchConfig;
|
|
211
|
+
theme: string;
|
|
212
|
+
content: {
|
|
213
|
+
dir: string;
|
|
214
|
+
};
|
|
215
|
+
pages: PagesToggleMap;
|
|
216
|
+
press: PressConfig;
|
|
217
|
+
appearance: AppearanceConfig;
|
|
218
|
+
integrations: IntegrationsConfig;
|
|
219
|
+
snippetDir: string;
|
|
220
|
+
customCss: string[];
|
|
221
|
+
robots: RobotsConfig;
|
|
222
|
+
rss: RssConfig;
|
|
223
|
+
llms: LlmsConfig;
|
|
224
|
+
vars?: Record<string, string>;
|
|
225
|
+
fonts?: FontsConfig;
|
|
226
|
+
analytics?: AnalyticsProvider;
|
|
227
|
+
}
|
|
228
|
+
type ConfigErrorCode = 'missing-required' | 'unknown-key' | 'unknown-value' | 'invalid-value' | 'wrong-type' | 'invalid-enum' | 'invalid-email';
|
|
229
|
+
interface ConfigValidationError {
|
|
230
|
+
code: ConfigErrorCode;
|
|
231
|
+
path: string;
|
|
232
|
+
message: string;
|
|
233
|
+
}
|
|
234
|
+
export declare function resolvePublierConfig(input: unknown): {
|
|
235
|
+
config: PublierConfig;
|
|
236
|
+
errors: ConfigValidationError[];
|
|
237
|
+
};
|
|
238
|
+
export declare function shouldRenderPage(page: ToggleablePage, pages: PagesToggleMap, defaultForTemplate: boolean): boolean;
|
|
239
|
+
interface RobotsOptions {
|
|
240
|
+
siteUrl?: string;
|
|
241
|
+
content?: string;
|
|
242
|
+
}
|
|
243
|
+
export declare function generateRobotsTxt(options?: RobotsOptions): string;
|
|
244
|
+
export declare function filterPublishedPages(pages: Page[]): Page[];
|
|
245
|
+
interface RssFeedConfig {
|
|
246
|
+
title: string;
|
|
247
|
+
description: string;
|
|
248
|
+
siteUrl: string;
|
|
249
|
+
feedUrl: string;
|
|
250
|
+
language?: string;
|
|
251
|
+
buildDate?: Date;
|
|
252
|
+
}
|
|
253
|
+
export declare function generateRssFeed(pages: Page[], config: RssFeedConfig): string;
|
|
254
|
+
interface SkillPage {
|
|
255
|
+
title: string;
|
|
256
|
+
path: string;
|
|
257
|
+
description?: string;
|
|
258
|
+
}
|
|
259
|
+
interface SkillMdOptions {
|
|
260
|
+
siteTitle: string;
|
|
261
|
+
siteDescription: string;
|
|
262
|
+
siteUrl: string;
|
|
263
|
+
pages?: SkillPage[];
|
|
264
|
+
apiBaseUrl?: string;
|
|
265
|
+
supportUrl?: string;
|
|
266
|
+
}
|
|
267
|
+
export declare function generateSkillMd(options: SkillMdOptions): string;
|
|
268
|
+
export declare function getSlug(filePath: string, baseDir: string): string;
|
|
269
|
+
declare namespace index_d_exports {
|
|
270
|
+
export { NativeHeadStats, NativePreloadStats, NativeTailwindResolvedTheme, NativeTailwindThemeError, __napiBindingTarget, analyticsGenerateBodyScripts$1 as analyticsGenerateBodyScripts, analyticsGenerateScripts$1 as analyticsGenerateScripts, asyncapiSourceBuild$1 as asyncapiSourceBuild, blogFilterByTag$1 as blogFilterByTag, blogFilterPublished$1 as blogFilterPublished, blogReadingTime$1 as blogReadingTime, blogSortByDate$1 as blogSortByDate, blogTagCounts$1 as blogTagCounts, buildHook$1 as buildHook, configResolvePublierConfig$1 as configResolvePublierConfig, configResolveShellConfig$1 as configResolveShellConfig, configShouldRenderPage$1 as configShouldRenderPage, contentGenerateLlmsTxt$1 as contentGenerateLlmsTxt, contentGenerateOgImageMarkup$1 as contentGenerateOgImageMarkup, contentGenerateRobotsTxt$1 as contentGenerateRobotsTxt, contentGenerateSkillMd$1 as contentGenerateSkillMd, contentGenerateTwitterMeta$1 as contentGenerateTwitterMeta, contentGetSlug$1 as contentGetSlug, navigationActiveIndex$1 as navigationActiveIndex, navigationBuildSidebar$1 as navigationBuildSidebar, navigationMatchNavPath$1 as navigationMatchNavPath, openapiBuildCustomSampleMap$1 as openapiBuildCustomSampleMap, openapiBuildInstanceId$1 as openapiBuildInstanceId, openapiDecodePlaceholders$1 as openapiDecodePlaceholders, openapiExtractEndpoints$1 as openapiExtractEndpoints, openapiGenerateFiles$1 as openapiGenerateFiles, openapiGetMediaTypeExample$1 as openapiGetMediaTypeExample, openapiGetSnippetClient$1 as openapiGetSnippetClient, openapiHarFromOperation$1 as openapiHarFromOperation, openapiMergeSpecs$1 as openapiMergeSpecs, openapiNavigationBuild$1 as openapiNavigationBuild, openapiParseAsyncApiSpec$1 as openapiParseAsyncApiSpec, openapiParseOpenapiSpec$1 as openapiParseOpenapiSpec, openapiRenderApiPage$1 as openapiRenderApiPage, openapiRenderApiPlayground$1 as openapiRenderApiPlayground, openapiRenderApiReference$1 as openapiRenderApiReference, openapiRenderApiReferenceShell$1 as openapiRenderApiReferenceShell, openapiRenderAsyncChannel$1 as openapiRenderAsyncChannel, openapiRenderAsyncMessage$1 as openapiRenderAsyncMessage, openapiRenderCodeSamples$1 as openapiRenderCodeSamples, openapiRenderCollapsibleSection$1 as openapiRenderCollapsibleSection, openapiRenderMethodBadge$1 as openapiRenderMethodBadge, openapiRenderParamField$1 as openapiRenderParamField, openapiRenderRequestExample$1 as openapiRenderRequestExample, openapiRenderResponseExample$1 as openapiRenderResponseExample, openapiRenderResponseField$1 as openapiRenderResponseField, openapiRenderSchemaRow$1 as openapiRenderSchemaRow, openapiRenderSchemaView$1 as openapiRenderSchemaView, openapiResolveBaseUrl$1 as openapiResolveBaseUrl, openapiResolveRefs$1 as openapiResolveRefs, openapiSourceBuild$1 as openapiSourceBuild, pluginHook$1 as pluginHook, primitivesColorSwatchScript$1 as primitivesColorSwatchScript, primitivesColorSwatchStyle$1 as primitivesColorSwatchStyle, primitivesCopyButtonScript$1 as primitivesCopyButtonScript, primitivesCopyButtonStyle$1 as primitivesCopyButtonStyle, primitivesRenderAccordion$1 as primitivesRenderAccordion, primitivesRenderAccordionItem$1 as primitivesRenderAccordionItem, primitivesRenderColorSwatch$1 as primitivesRenderColorSwatch, primitivesRenderCopyButton$1 as primitivesRenderCopyButton, primitivesRenderImageZoom$1 as primitivesRenderImageZoom, primitivesRenderTabPanel$1 as primitivesRenderTabPanel, primitivesRenderTabs$1 as primitivesRenderTabs, primitivesRenderTooltip$1 as primitivesRenderTooltip, primitivesRenderViewAnimation$1 as primitivesRenderViewAnimation, primitivesTabsScript$1 as primitivesTabsScript, primitivesViewAnimationScript$1 as primitivesViewAnimationScript, primitivesViewAnimationStyle$1 as primitivesViewAnimationStyle, remarkCollectSections$1 as remarkCollectSections, remarkResolveSnippet$1 as remarkResolveSnippet, remarkTransformAsides$1 as remarkTransformAsides, remarkVarsSubstitute$1 as remarkVarsSubstitute, rssGenerateFeed$1 as rssGenerateFeed, searchEntryToPage$1 as searchEntryToPage, searchExtractStructuredData$1 as searchExtractStructuredData, searchReadMetaYaml$1 as searchReadMetaYaml, shellAnnouncementBannerScript$1 as shellAnnouncementBannerScript, shellBuildBannerInitScript$1 as shellBuildBannerInitScript, shellBuildGlobPattern$1 as shellBuildGlobPattern, shellBuildHeaders$1 as shellBuildHeaders, shellBuildLicenseErrorMessage$1 as shellBuildLicenseErrorMessage, shellBuildThemeInitScript$1 as shellBuildThemeInitScript, shellCacheControl$1 as shellCacheControl, shellCollectTailwindClassTokens$1 as shellCollectTailwindClassTokens, shellComposeTailwindEntry$1 as shellComposeTailwindEntry, shellGenerateId$1 as shellGenerateId, shellInjectBodyScripts$1 as shellInjectBodyScripts, shellInjectHeadScripts$1 as shellInjectHeadScripts, shellLazyUpgradeScript$1 as shellLazyUpgradeScript, shellListThemes$1 as shellListThemes, shellNavActiveUpdateScript$1 as shellNavActiveUpdateScript, shellOpenInAiScript$1 as shellOpenInAiScript, shellPlanDefaultRoutes$1 as shellPlanDefaultRoutes, shellPlanDocsSlug$1 as shellPlanDocsSlug, shellPlanRehypePlugins$1 as shellPlanRehypePlugins, shellPlanRemarkPlugins$1 as shellPlanRemarkPlugins, shellRenderAnnouncementBanner$1 as shellRenderAnnouncementBanner, shellRenderAside$1 as shellRenderAside, shellRenderBadge$1 as shellRenderBadge, shellRenderBaseLayout$1 as shellRenderBaseLayout, shellRenderBlogIndex$1 as shellRenderBlogIndex, shellRenderBlogSlug$1 as shellRenderBlogSlug, shellRenderBreadcrumbs$1 as shellRenderBreadcrumbs, shellRenderCard$1 as shellRenderCard, shellRenderCardGrid$1 as shellRenderCardGrid, shellRenderChangelogEntry$1 as shellRenderChangelogEntry, shellRenderChangelogFooter$1 as shellRenderChangelogFooter, shellRenderChangelogHeader$1 as shellRenderChangelogHeader, shellRenderCodeGroup$1 as shellRenderCodeGroup, shellRenderColumns$1 as shellRenderColumns, shellRenderDocsLayout$1 as shellRenderDocsLayout, shellRenderDocsSlug$1 as shellRenderDocsSlug, shellRenderFileTree$1 as shellRenderFileTree, shellRenderFileTreeNode$1 as shellRenderFileTreeNode, shellRenderIcon$1 as shellRenderIcon, shellRenderLastModified$1 as shellRenderLastModified, shellRenderLinkButton$1 as shellRenderLinkButton, shellRenderLinkCard$1 as shellRenderLinkCard, shellRenderNotFound$1 as shellRenderNotFound, shellRenderOpenInAi$1 as shellRenderOpenInAi, shellRenderPackageInstall$1 as shellRenderPackageInstall, shellRenderPanels$1 as shellRenderPanels, shellRenderSearchButton$1 as shellRenderSearchButton, shellRenderSidebar$1 as shellRenderSidebar, shellRenderSkipLink$1 as shellRenderSkipLink, shellRenderSteps$1 as shellRenderSteps, shellRenderTableOfContents$1 as shellRenderTableOfContents, shellRenderTabs$1 as shellRenderTabs, shellRenderThemeToggle$1 as shellRenderThemeToggle, shellRenderTile$1 as shellRenderTile, shellRenderTileGrid$1 as shellRenderTileGrid, shellRenderTopNav$1 as shellRenderTopNav, shellRenderTopNavMobile$1 as shellRenderTopNavMobile, shellRenderUpdateBadge$1 as shellRenderUpdateBadge, shellRenderVersionSwitcher$1 as shellRenderVersionSwitcher, shellResolvePrefetch$1 as shellResolvePrefetch, shellResolveSnippetsConfig$1 as shellResolveSnippetsConfig, shellRewriteHead$1 as shellRewriteHead, shellRewriteModulepreload$1 as shellRewriteModulepreload, shellSearchButtonScript$1 as shellSearchButtonScript, shellSearchDialogCss$1 as shellSearchDialogCss, shellSearchDialogInnerHtml$1 as shellSearchDialogInnerHtml, shellSearchDialogScript$1 as shellSearchDialogScript, shellSidebarHeightInitScript$1 as shellSidebarHeightInitScript, shellSidebarScrollInitScript$1 as shellSidebarScrollInitScript, shellTableOfContentsScript$1 as shellTableOfContentsScript, tailwindComposeThemeCss$1 as tailwindComposeThemeCss, tailwindReadPresetCss$1 as tailwindReadPresetCss, tailwindResolveTheme$1 as tailwindResolveTheme, verifyLicense$1 as verifyLicense };
|
|
271
|
+
}
|
|
272
|
+
declare const __napiBindingTarget: 'native' | 'wasm32-wasi' | 'wasm32-wasip1';
|
|
273
|
+
declare function analyticsGenerateBodyScripts$1(analyticsJson: string): string;
|
|
274
|
+
declare function analyticsGenerateScripts$1(analyticsJson: string): string;
|
|
275
|
+
declare function asyncapiSourceBuild$1(specJson: string, baseUrl: string): string;
|
|
276
|
+
declare function blogFilterByTag$1(pagesJson: string, tag: string): string;
|
|
277
|
+
declare function blogFilterPublished$1(pagesJson: string): string;
|
|
278
|
+
declare function blogReadingTime$1(structuredJson: string): number;
|
|
279
|
+
declare function blogSortByDate$1(pagesJson: string): string;
|
|
280
|
+
declare function blogTagCounts$1(pagesJson: string): string;
|
|
281
|
+
declare function buildHook$1(event: string, argsJson: string): string | null;
|
|
282
|
+
declare function configResolvePublierConfig$1(inputJson: string): string;
|
|
283
|
+
declare function configResolveShellConfig$1(yaml: string): string;
|
|
284
|
+
declare function configShouldRenderPage$1(page: string, pagesJson: string, defaultForTemplate: boolean): boolean;
|
|
285
|
+
declare function contentGenerateLlmsTxt$1(optionsJson: string): string;
|
|
286
|
+
declare function contentGenerateOgImageMarkup$1(optionsJson: string): string;
|
|
287
|
+
declare function contentGenerateRobotsTxt$1(optionsJson: string): string;
|
|
288
|
+
declare function contentGenerateSkillMd$1(optionsJson: string): string;
|
|
289
|
+
declare function contentGenerateTwitterMeta$1(optionsJson: string): string;
|
|
290
|
+
declare function contentGetSlug$1(filePath: string, baseDir: string): string;
|
|
291
|
+
interface NativeHeadStats {
|
|
292
|
+
stylesheetsCount: number;
|
|
293
|
+
modulesCount: number;
|
|
294
|
+
pagesRewritten: number;
|
|
295
|
+
stylesheets: Array<string>;
|
|
296
|
+
modules: Array<string>;
|
|
297
|
+
}
|
|
298
|
+
interface NativePreloadStats {
|
|
299
|
+
jsCount: number;
|
|
300
|
+
fontsCount: number;
|
|
301
|
+
pagesRewritten: number;
|
|
302
|
+
}
|
|
303
|
+
interface NativeTailwindResolvedTheme {
|
|
304
|
+
preset?: string;
|
|
305
|
+
overrides: Record<string, string>;
|
|
306
|
+
overrideCss: string;
|
|
307
|
+
errors: Array<NativeTailwindThemeError>;
|
|
308
|
+
}
|
|
309
|
+
interface NativeTailwindThemeError {
|
|
310
|
+
code: string;
|
|
311
|
+
message: string;
|
|
312
|
+
path: string;
|
|
313
|
+
}
|
|
314
|
+
declare function navigationActiveIndex$1(entriesJson: string, currentPath: string): number;
|
|
315
|
+
declare function navigationBuildSidebar$1(pagesJson: string, optionsJson: string): string;
|
|
316
|
+
declare function navigationMatchNavPath$1(pathRulesJson: string, pathname: string): string;
|
|
317
|
+
declare function openapiBuildCustomSampleMap$1(customSamplesJson: string): string;
|
|
318
|
+
declare function openapiBuildInstanceId$1(method: string, path: string): string;
|
|
319
|
+
declare function openapiDecodePlaceholders$1(source: string): string;
|
|
320
|
+
declare function openapiExtractEndpoints$1(specJson: string, mergePathParameters: boolean, includeWebhooks: boolean): string;
|
|
321
|
+
declare function openapiGenerateFiles$1(specJson: string, outputDir: string, groupBy: string, per: string, clean: boolean): string;
|
|
322
|
+
declare function openapiGetMediaTypeExample$1(contentJson: string, mediaType: string): string | null;
|
|
323
|
+
declare function openapiGetSnippetClient$1(lang: string): Array<string> | null;
|
|
324
|
+
declare function openapiHarFromOperation$1(method: string, path: string, operationJson: string, baseUrl: string): string;
|
|
325
|
+
declare function openapiMergeSpecs$1(specsJson: string): string;
|
|
326
|
+
declare function openapiNavigationBuild$1(specJson: string, groupBy: string, slugPrefix: string | undefined | null, excludeDeprecated: boolean, includeWebhooks: boolean): string;
|
|
327
|
+
declare function openapiParseAsyncApiSpec$1(jsonInput: string): string;
|
|
328
|
+
declare function openapiParseOpenapiSpec$1(jsonInput: string): string;
|
|
329
|
+
declare function openapiRenderApiPage$1(method: string, path: string, operationJson: string): string;
|
|
330
|
+
declare function openapiRenderApiPlayground$1(inputJson: string): string;
|
|
331
|
+
declare function openapiRenderApiReference$1(apiPageHtml: string, requestExampleHtml: string, codeSamplesHtml: string, responseExampleHtml: string): string;
|
|
332
|
+
declare function openapiRenderApiReferenceShell$1(): string;
|
|
333
|
+
declare function openapiRenderAsyncChannel$1(channelName: string, channelJson: string, operationsJson: string, protocol: string): string;
|
|
334
|
+
declare function openapiRenderAsyncMessage$1(messageJson: string): string;
|
|
335
|
+
declare function openapiRenderCodeSamples$1(method: string, path: string, samplesJson: string): string;
|
|
336
|
+
declare function openapiRenderCollapsibleSection$1(title: string, defaultOpen: boolean, slotHtml: string): string;
|
|
337
|
+
declare function openapiRenderMethodBadge$1(method: string): string;
|
|
338
|
+
declare function openapiRenderParamField$1(name: string, typeStr: string, required: boolean, deprecated: boolean, defaultValue: string | undefined | null, placeholder: string | undefined | null, slotHtml: string): string;
|
|
339
|
+
declare function openapiRenderRequestExample$1(method: string, path: string, operationJson: string, baseUrl: string, bodyExample?: string | undefined | null): string;
|
|
340
|
+
declare function openapiRenderResponseExample$1(tabsJson: string, instanceId?: string | undefined | null): string;
|
|
341
|
+
declare function openapiRenderResponseField$1(name: string, typeStr: string, required: boolean, deprecated: boolean, slotHtml: string): string;
|
|
342
|
+
declare function openapiRenderSchemaRow$1(inputJson: string): string;
|
|
343
|
+
declare function openapiRenderSchemaView$1(schemaJson: string, name: string | undefined | null, required: boolean, depth: number): string;
|
|
344
|
+
declare function openapiResolveBaseUrl$1(baseUrlProp?: string | undefined | null, specServersFirstUrl?: string | undefined | null): string;
|
|
345
|
+
declare function openapiResolveRefs$1(specJson: string): string;
|
|
346
|
+
declare function openapiSourceBuild$1(specJson: string, baseUrl: string): string;
|
|
347
|
+
declare function pluginHook$1(plugin: string, hook: string, argsJson: string): string | null;
|
|
348
|
+
declare function primitivesColorSwatchScript$1(): string;
|
|
349
|
+
declare function primitivesColorSwatchStyle$1(): string;
|
|
350
|
+
declare function primitivesCopyButtonScript$1(): string;
|
|
351
|
+
declare function primitivesCopyButtonStyle$1(): string;
|
|
352
|
+
declare function primitivesRenderAccordion$1(className: string | undefined | null, slotHtml: string): string;
|
|
353
|
+
declare function primitivesRenderAccordionItem$1(title: string, open: boolean, name: string | undefined | null, slotHtml: string): string;
|
|
354
|
+
declare function primitivesRenderColorSwatch$1(inputJson: string): string;
|
|
355
|
+
declare function primitivesRenderCopyButton$1(selector: string | undefined | null, text: string | undefined | null, floating: boolean, className?: string | undefined | null, label?: string | undefined | null): string;
|
|
356
|
+
declare function primitivesRenderImageZoom$1(src: string, alt: string, width?: number | undefined | null, height?: number | undefined | null, customClass?: string | undefined | null): string;
|
|
357
|
+
declare function primitivesRenderTabPanel$1(className: string | undefined | null, slotHtml: string): string;
|
|
358
|
+
declare function primitivesRenderTabs$1(labels: Array<string>, defaultIndex: number, variant: string | undefined | null, className: string | undefined | null, slotHtml: string, id: string): string;
|
|
359
|
+
declare function primitivesRenderTooltip$1(tip: string, position: string, color: string | undefined | null, open: boolean, className: string | undefined | null, slotHtml: string): string;
|
|
360
|
+
declare function primitivesRenderViewAnimation$1(slotHtml: string, customClass: string | undefined | null, delayMs: number, once: boolean): string;
|
|
361
|
+
declare function primitivesTabsScript$1(): string;
|
|
362
|
+
declare function primitivesViewAnimationScript$1(): string;
|
|
363
|
+
declare function primitivesViewAnimationStyle$1(): string;
|
|
364
|
+
declare function remarkCollectSections$1(treeJson: string): string;
|
|
365
|
+
declare function remarkResolveSnippet$1(snippetDir: string, fileName: string, attrsJson: string): string | null;
|
|
366
|
+
declare function remarkTransformAsides$1(treeJson: string): string;
|
|
367
|
+
declare function remarkVarsSubstitute$1(treeJson: string, varsJson: string): string;
|
|
368
|
+
declare function rssGenerateFeed$1(pagesJson: string, configJson: string): string;
|
|
369
|
+
declare function searchEntryToPage$1(entryJson: string, optionsJson: string): string;
|
|
370
|
+
declare function searchExtractStructuredData$1(source: string): string;
|
|
371
|
+
declare function searchReadMetaYaml$1(basePath: string): string;
|
|
372
|
+
declare function shellAnnouncementBannerScript$1(): string;
|
|
373
|
+
declare function shellBuildBannerInitScript$1(storageKey?: string | undefined | null): string;
|
|
374
|
+
declare function shellBuildGlobPattern$1(collection: string): Array<string>;
|
|
375
|
+
declare function shellBuildHeaders$1(): string;
|
|
376
|
+
declare function shellBuildLicenseErrorMessage$1(rawErr: string): string | null;
|
|
377
|
+
declare function shellBuildThemeInitScript$1(defaultScheme: string, strict: boolean): string;
|
|
378
|
+
declare function shellCacheControl$1(path: string): string;
|
|
379
|
+
declare function shellCollectTailwindClassTokens$1(): string;
|
|
380
|
+
declare function shellComposeTailwindEntry$1(sourceDirsJson: string, katexCssPath?: string | undefined | null): string;
|
|
381
|
+
declare function shellGenerateId$1(entry: string): string;
|
|
382
|
+
declare function shellInjectBodyScripts$1(distDir: string, pathnames: Array<string>, scriptsHtml: string): number;
|
|
383
|
+
declare function shellInjectHeadScripts$1(distDir: string, pathnames: Array<string>, scriptsHtml: string): number;
|
|
384
|
+
declare function shellLazyUpgradeScript$1(): string;
|
|
385
|
+
declare function shellListThemes$1(): string;
|
|
386
|
+
declare function shellNavActiveUpdateScript$1(): string;
|
|
387
|
+
declare function shellOpenInAiScript$1(): string;
|
|
388
|
+
declare function shellPlanDefaultRoutes$1(optionsJson: string, hasSiteUrl: boolean, collectionsPresentJson: string): string;
|
|
389
|
+
declare function shellPlanDocsSlug$1(inputJson: string): string;
|
|
390
|
+
declare function shellPlanRehypePlugins$1(optionsJson: string, mathEnabled: boolean): string;
|
|
391
|
+
declare function shellPlanRemarkPlugins$1(optionsJson: string, hasVars: boolean, hasSnippets: boolean, mathEnabled: boolean): string;
|
|
392
|
+
declare function shellRenderAnnouncementBanner$1(message: string, href: string | undefined | null, variant: string, dismissible: boolean, storageKey: string): string;
|
|
393
|
+
declare function shellRenderAside$1(asideType: string, title: string | undefined | null, slotHtml: string, titleId: string): string;
|
|
394
|
+
declare function shellRenderBadge$1(text: string, variant?: string | undefined | null, size?: string | undefined | null, className?: string | undefined | null): string;
|
|
395
|
+
declare function shellRenderBaseLayout$1(inputJson: string): string;
|
|
396
|
+
declare function shellRenderBlogIndex$1(inputJson: string): string;
|
|
397
|
+
declare function shellRenderBlogSlug$1(inputJson: string): string;
|
|
398
|
+
declare function shellRenderBreadcrumbs$1(itemsJson: string, label?: string | undefined | null, customClass?: string | undefined | null): string;
|
|
399
|
+
declare function shellRenderCard$1(title: string, variant: string, customClass: string | undefined | null, iconSlotHtml: string | undefined | null, slotHtml: string): string;
|
|
400
|
+
declare function shellRenderCardGrid$1(minColumnWidth: string, customClass: string | undefined | null, slotHtml: string): string;
|
|
401
|
+
declare function shellRenderChangelogEntry$1(inputJson: string): string;
|
|
402
|
+
declare function shellRenderChangelogFooter$1(): string;
|
|
403
|
+
declare function shellRenderChangelogHeader$1(): string;
|
|
404
|
+
declare function shellRenderCodeGroup$1(itemsJson: string, syncKey: string | undefined | null, id: string): string;
|
|
405
|
+
declare function shellRenderColumns$1(cols: number | undefined | null, gap: string | undefined | null, className: string | undefined | null, slotHtml: string): string;
|
|
406
|
+
declare function shellRenderDocsLayout$1(inputJson: string): string;
|
|
407
|
+
declare function shellRenderDocsSlug$1(inputJson: string): string;
|
|
408
|
+
declare function shellRenderFileTree$1(treeJson: string, label: string, customClass?: string | undefined | null): string;
|
|
409
|
+
declare function shellRenderFileTreeNode$1(entryJson: string): string;
|
|
410
|
+
declare function shellRenderIcon$1(innerHtml: string, fill: boolean, viewBox: string | undefined | null, strokeWidth: number | undefined | null, size: number, className?: string | undefined | null): string;
|
|
411
|
+
declare function shellRenderLastModified$1(dateMs: number | undefined | null, nowMs: number, format: string): string;
|
|
412
|
+
declare function shellRenderLinkButton$1(href: string, variant: string | undefined | null, iconPlacement: string | undefined | null, rel: string | undefined | null, target: string | undefined | null, className: string | undefined | null, slotHtml: string): string;
|
|
413
|
+
declare function shellRenderLinkCard$1(title: string, href: string, description?: string | undefined | null, rel?: string | undefined | null, target?: string | undefined | null, customClass?: string | undefined | null): string;
|
|
414
|
+
declare function shellRenderNotFound$1(): string;
|
|
415
|
+
declare function shellRenderOpenInAi$1(pageUrl: string, pageTitle: string): string;
|
|
416
|
+
declare function shellRenderPackageInstall$1(inputJson: string): string;
|
|
417
|
+
declare function shellRenderPanels$1(inputJson: string): string;
|
|
418
|
+
declare function shellRenderSearchButton$1(inputJson: string): string;
|
|
419
|
+
declare function shellRenderSidebar$1(inputJson: string): string;
|
|
420
|
+
declare function shellRenderSkipLink$1(inputJson: string): string;
|
|
421
|
+
declare function shellRenderSteps$1(inputJson: string): string;
|
|
422
|
+
declare function shellRenderTableOfContents$1(inputJson: string): string;
|
|
423
|
+
declare function shellRenderTabs$1(labelsJson: string, panelsJson: string, defaultIndex: number, syncKey: string | undefined | null, id: string, extraClass?: string | undefined | null): string;
|
|
424
|
+
declare function shellRenderThemeToggle$1(inputJson: string): string;
|
|
425
|
+
declare function shellRenderTile$1(inputJson: string): string;
|
|
426
|
+
declare function shellRenderTileGrid$1(inputJson: string): string;
|
|
427
|
+
declare function shellRenderTopNav$1(inputJson: string): string;
|
|
428
|
+
declare function shellRenderTopNavMobile$1(inputJson: string): string;
|
|
429
|
+
declare function shellRenderUpdateBadge$1(inputJson: string): string;
|
|
430
|
+
declare function shellRenderVersionSwitcher$1(inputJson: string): string;
|
|
431
|
+
declare function shellResolvePrefetch$1(userPrefetchJson: string | undefined | null, optionsJson: string): boolean;
|
|
432
|
+
declare function shellResolveSnippetsConfig$1(optionsJson: string, yamlSnippetsJson: string | undefined | null, autoDetectPresent: boolean): string;
|
|
433
|
+
declare function shellRewriteHead$1(distDir: string, pathnames: Array<string>): NativeHeadStats;
|
|
434
|
+
declare function shellRewriteModulepreload$1(distDir: string, pathnames: Array<string>): NativePreloadStats;
|
|
435
|
+
declare function shellSearchButtonScript$1(): string;
|
|
436
|
+
declare function shellSearchDialogCss$1(): string;
|
|
437
|
+
declare function shellSearchDialogInnerHtml$1(): string;
|
|
438
|
+
declare function shellSearchDialogScript$1(hotkey?: string | undefined | null): string;
|
|
439
|
+
declare function shellSidebarHeightInitScript$1(): string;
|
|
440
|
+
declare function shellSidebarScrollInitScript$1(): string;
|
|
441
|
+
declare function shellTableOfContentsScript$1(): string;
|
|
442
|
+
declare function tailwindComposeThemeCss$1(presetCss: string, overrideCss: string): string;
|
|
443
|
+
declare function tailwindReadPresetCss$1(themesDir: string, name: string): string;
|
|
444
|
+
declare function tailwindResolveTheme$1(json: string): NativeTailwindResolvedTheme;
|
|
445
|
+
declare function verifyLicense$1(): void;
|
|
446
|
+
declare const native: typeof index_d_exports;
|
|
447
|
+
export declare const analyticsGenerateBodyScripts: typeof analyticsGenerateBodyScripts$1;
|
|
448
|
+
export declare const analyticsGenerateScripts: typeof analyticsGenerateScripts$1;
|
|
449
|
+
export declare const asyncapiSourceBuild: typeof asyncapiSourceBuild$1;
|
|
450
|
+
export declare const blogFilterByTag: typeof blogFilterByTag$1;
|
|
451
|
+
export declare const blogFilterPublished: typeof blogFilterPublished$1;
|
|
452
|
+
export declare const blogReadingTime: typeof blogReadingTime$1;
|
|
453
|
+
export declare const blogSortByDate: typeof blogSortByDate$1;
|
|
454
|
+
export declare const blogTagCounts: typeof blogTagCounts$1;
|
|
455
|
+
export declare const buildHook: typeof buildHook$1;
|
|
456
|
+
export declare const configResolvePublierConfig: typeof configResolvePublierConfig$1;
|
|
457
|
+
export declare const configResolveShellConfig: typeof configResolveShellConfig$1;
|
|
458
|
+
export declare const configShouldRenderPage: typeof configShouldRenderPage$1;
|
|
459
|
+
export declare const contentGenerateLlmsTxt: typeof contentGenerateLlmsTxt$1;
|
|
460
|
+
export declare const contentGenerateOgImageMarkup: typeof contentGenerateOgImageMarkup$1;
|
|
461
|
+
export declare const contentGenerateRobotsTxt: typeof contentGenerateRobotsTxt$1;
|
|
462
|
+
export declare const contentGenerateSkillMd: typeof contentGenerateSkillMd$1;
|
|
463
|
+
export declare const contentGenerateTwitterMeta: typeof contentGenerateTwitterMeta$1;
|
|
464
|
+
export declare const contentGetSlug: typeof contentGetSlug$1;
|
|
465
|
+
export declare const navigationActiveIndex: typeof navigationActiveIndex$1;
|
|
466
|
+
export declare const navigationBuildSidebar: typeof navigationBuildSidebar$1;
|
|
467
|
+
export declare const navigationMatchNavPath: typeof navigationMatchNavPath$1;
|
|
468
|
+
export declare const openapiBuildCustomSampleMap: typeof openapiBuildCustomSampleMap$1;
|
|
469
|
+
export declare const openapiBuildInstanceId: typeof openapiBuildInstanceId$1;
|
|
470
|
+
export declare const openapiDecodePlaceholders: typeof openapiDecodePlaceholders$1;
|
|
471
|
+
export declare const openapiExtractEndpoints: typeof openapiExtractEndpoints$1;
|
|
472
|
+
export declare const openapiGenerateFiles: typeof openapiGenerateFiles$1;
|
|
473
|
+
export declare const openapiGetMediaTypeExample: typeof openapiGetMediaTypeExample$1;
|
|
474
|
+
export declare const openapiGetSnippetClient: typeof openapiGetSnippetClient$1;
|
|
475
|
+
export declare const openapiHarFromOperation: typeof openapiHarFromOperation$1;
|
|
476
|
+
export declare const openapiMergeSpecs: typeof openapiMergeSpecs$1;
|
|
477
|
+
export declare const openapiNavigationBuild: typeof openapiNavigationBuild$1;
|
|
478
|
+
export declare const openapiParseAsyncApiSpec: typeof openapiParseAsyncApiSpec$1;
|
|
479
|
+
export declare const openapiParseOpenapiSpec: typeof openapiParseOpenapiSpec$1;
|
|
480
|
+
export declare const openapiRenderApiPage: typeof openapiRenderApiPage$1;
|
|
481
|
+
export declare const openapiRenderApiPlayground: typeof openapiRenderApiPlayground$1;
|
|
482
|
+
export declare const openapiRenderApiReference: typeof openapiRenderApiReference$1;
|
|
483
|
+
export declare const openapiRenderApiReferenceShell: typeof openapiRenderApiReferenceShell$1;
|
|
484
|
+
export declare const openapiRenderAsyncChannel: typeof openapiRenderAsyncChannel$1;
|
|
485
|
+
export declare const openapiRenderAsyncMessage: typeof openapiRenderAsyncMessage$1;
|
|
486
|
+
export declare const openapiRenderCodeSamples: typeof openapiRenderCodeSamples$1;
|
|
487
|
+
export declare const openapiRenderCollapsibleSection: typeof openapiRenderCollapsibleSection$1;
|
|
488
|
+
export declare const openapiRenderMethodBadge: typeof openapiRenderMethodBadge$1;
|
|
489
|
+
export declare const openapiRenderParamField: typeof openapiRenderParamField$1;
|
|
490
|
+
export declare const openapiRenderRequestExample: typeof openapiRenderRequestExample$1;
|
|
491
|
+
export declare const openapiRenderResponseExample: typeof openapiRenderResponseExample$1;
|
|
492
|
+
export declare const openapiRenderResponseField: typeof openapiRenderResponseField$1;
|
|
493
|
+
export declare const openapiRenderSchemaRow: typeof openapiRenderSchemaRow$1;
|
|
494
|
+
export declare const openapiRenderSchemaView: typeof openapiRenderSchemaView$1;
|
|
495
|
+
export declare const openapiResolveBaseUrl: typeof openapiResolveBaseUrl$1;
|
|
496
|
+
export declare const openapiResolveRefs: typeof openapiResolveRefs$1;
|
|
497
|
+
export declare const openapiSourceBuild: typeof openapiSourceBuild$1;
|
|
498
|
+
export declare const pluginHook: typeof pluginHook$1;
|
|
499
|
+
export declare const primitivesColorSwatchScript: typeof primitivesColorSwatchScript$1;
|
|
500
|
+
export declare const primitivesColorSwatchStyle: typeof primitivesColorSwatchStyle$1;
|
|
501
|
+
export declare const primitivesCopyButtonScript: typeof primitivesCopyButtonScript$1;
|
|
502
|
+
export declare const primitivesCopyButtonStyle: typeof primitivesCopyButtonStyle$1;
|
|
503
|
+
export declare const primitivesRenderAccordion: typeof primitivesRenderAccordion$1;
|
|
504
|
+
export declare const primitivesRenderAccordionItem: typeof primitivesRenderAccordionItem$1;
|
|
505
|
+
export declare const primitivesRenderColorSwatch: typeof primitivesRenderColorSwatch$1;
|
|
506
|
+
export declare const primitivesRenderCopyButton: typeof primitivesRenderCopyButton$1;
|
|
507
|
+
export declare const primitivesRenderImageZoom: typeof primitivesRenderImageZoom$1;
|
|
508
|
+
export declare const primitivesRenderTabPanel: typeof primitivesRenderTabPanel$1;
|
|
509
|
+
export declare const primitivesRenderTabs: typeof primitivesRenderTabs$1;
|
|
510
|
+
export declare const primitivesRenderTooltip: typeof primitivesRenderTooltip$1;
|
|
511
|
+
export declare const primitivesRenderViewAnimation: typeof primitivesRenderViewAnimation$1;
|
|
512
|
+
export declare const primitivesTabsScript: typeof primitivesTabsScript$1;
|
|
513
|
+
export declare const primitivesViewAnimationScript: typeof primitivesViewAnimationScript$1;
|
|
514
|
+
export declare const primitivesViewAnimationStyle: typeof primitivesViewAnimationStyle$1;
|
|
515
|
+
export declare const remarkCollectSections: typeof remarkCollectSections$1;
|
|
516
|
+
export declare const remarkResolveSnippet: typeof remarkResolveSnippet$1;
|
|
517
|
+
export declare const remarkTransformAsides: typeof remarkTransformAsides$1;
|
|
518
|
+
export declare const remarkVarsSubstitute: typeof remarkVarsSubstitute$1;
|
|
519
|
+
export declare const rssGenerateFeed: typeof rssGenerateFeed$1;
|
|
520
|
+
export declare const searchEntryToPage: typeof searchEntryToPage$1;
|
|
521
|
+
export declare const searchExtractStructuredData: typeof searchExtractStructuredData$1;
|
|
522
|
+
export declare const searchReadMetaYaml: typeof searchReadMetaYaml$1;
|
|
523
|
+
export declare const shellAnnouncementBannerScript: typeof shellAnnouncementBannerScript$1;
|
|
524
|
+
export declare const shellBuildBannerInitScript: typeof shellBuildBannerInitScript$1;
|
|
525
|
+
export declare const shellBuildGlobPattern: typeof shellBuildGlobPattern$1;
|
|
526
|
+
export declare const shellBuildHeaders: typeof shellBuildHeaders$1;
|
|
527
|
+
export declare const shellBuildLicenseErrorMessage: typeof shellBuildLicenseErrorMessage$1;
|
|
528
|
+
export declare const shellBuildThemeInitScript: typeof shellBuildThemeInitScript$1;
|
|
529
|
+
export declare const shellCacheControl: typeof shellCacheControl$1;
|
|
530
|
+
export declare const shellCollectTailwindClassTokens: typeof shellCollectTailwindClassTokens$1;
|
|
531
|
+
export declare const shellComposeTailwindEntry: typeof shellComposeTailwindEntry$1;
|
|
532
|
+
export declare const shellGenerateId: typeof shellGenerateId$1;
|
|
533
|
+
export declare const shellInjectBodyScripts: typeof shellInjectBodyScripts$1;
|
|
534
|
+
export declare const shellInjectHeadScripts: typeof shellInjectHeadScripts$1;
|
|
535
|
+
export declare const shellLazyUpgradeScript: typeof shellLazyUpgradeScript$1;
|
|
536
|
+
export declare const shellListThemes: typeof shellListThemes$1;
|
|
537
|
+
export declare const shellNavActiveUpdateScript: typeof shellNavActiveUpdateScript$1;
|
|
538
|
+
export declare const shellOpenInAiScript: typeof shellOpenInAiScript$1;
|
|
539
|
+
export declare const shellPlanDefaultRoutes: typeof shellPlanDefaultRoutes$1;
|
|
540
|
+
export declare const shellPlanDocsSlug: typeof shellPlanDocsSlug$1;
|
|
541
|
+
export declare const shellPlanRehypePlugins: typeof shellPlanRehypePlugins$1;
|
|
542
|
+
export declare const shellPlanRemarkPlugins: typeof shellPlanRemarkPlugins$1;
|
|
543
|
+
export declare const shellRenderAnnouncementBanner: typeof shellRenderAnnouncementBanner$1;
|
|
544
|
+
export declare const shellRenderAside: typeof shellRenderAside$1;
|
|
545
|
+
export declare const shellRenderBadge: typeof shellRenderBadge$1;
|
|
546
|
+
export declare const shellRenderBaseLayout: typeof shellRenderBaseLayout$1;
|
|
547
|
+
export declare const shellRenderBlogIndex: typeof shellRenderBlogIndex$1;
|
|
548
|
+
export declare const shellRenderBlogSlug: typeof shellRenderBlogSlug$1;
|
|
549
|
+
export declare const shellRenderBreadcrumbs: typeof shellRenderBreadcrumbs$1;
|
|
550
|
+
export declare const shellRenderCard: typeof shellRenderCard$1;
|
|
551
|
+
export declare const shellRenderCardGrid: typeof shellRenderCardGrid$1;
|
|
552
|
+
export declare const shellRenderChangelogEntry: typeof shellRenderChangelogEntry$1;
|
|
553
|
+
export declare const shellRenderChangelogFooter: typeof shellRenderChangelogFooter$1;
|
|
554
|
+
export declare const shellRenderChangelogHeader: typeof shellRenderChangelogHeader$1;
|
|
555
|
+
export declare const shellRenderCodeGroup: typeof shellRenderCodeGroup$1;
|
|
556
|
+
export declare const shellRenderColumns: typeof shellRenderColumns$1;
|
|
557
|
+
export declare const shellRenderDocsLayout: typeof shellRenderDocsLayout$1;
|
|
558
|
+
export declare const shellRenderDocsSlug: typeof shellRenderDocsSlug$1;
|
|
559
|
+
export declare const shellRenderFileTree: typeof shellRenderFileTree$1;
|
|
560
|
+
export declare const shellRenderFileTreeNode: typeof shellRenderFileTreeNode$1;
|
|
561
|
+
export declare const shellRenderIcon: typeof shellRenderIcon$1;
|
|
562
|
+
export declare const shellRenderLastModified: typeof shellRenderLastModified$1;
|
|
563
|
+
export declare const shellRenderLinkButton: typeof shellRenderLinkButton$1;
|
|
564
|
+
export declare const shellRenderLinkCard: typeof shellRenderLinkCard$1;
|
|
565
|
+
export declare const shellRenderNotFound: typeof shellRenderNotFound$1;
|
|
566
|
+
export declare const shellRenderOpenInAi: typeof shellRenderOpenInAi$1;
|
|
567
|
+
export declare const shellRenderPackageInstall: typeof shellRenderPackageInstall$1;
|
|
568
|
+
export declare const shellRenderPanels: typeof shellRenderPanels$1;
|
|
569
|
+
export declare const shellRenderSearchButton: typeof shellRenderSearchButton$1;
|
|
570
|
+
export declare const shellRenderSidebar: typeof shellRenderSidebar$1;
|
|
571
|
+
export declare const shellRenderSkipLink: typeof shellRenderSkipLink$1;
|
|
572
|
+
export declare const shellRenderSteps: typeof shellRenderSteps$1;
|
|
573
|
+
export declare const shellRenderTableOfContents: typeof shellRenderTableOfContents$1;
|
|
574
|
+
export declare const shellRenderTabs: typeof shellRenderTabs$1;
|
|
575
|
+
export declare const shellRenderThemeToggle: typeof shellRenderThemeToggle$1;
|
|
576
|
+
export declare const shellRenderTile: typeof shellRenderTile$1;
|
|
577
|
+
export declare const shellRenderTileGrid: typeof shellRenderTileGrid$1;
|
|
578
|
+
export declare const shellRenderTopNav: typeof shellRenderTopNav$1;
|
|
579
|
+
export declare const shellRenderTopNavMobile: typeof shellRenderTopNavMobile$1;
|
|
580
|
+
export declare const shellRenderUpdateBadge: typeof shellRenderUpdateBadge$1;
|
|
581
|
+
export declare const shellRenderVersionSwitcher: typeof shellRenderVersionSwitcher$1;
|
|
582
|
+
export declare const shellResolvePrefetch: typeof shellResolvePrefetch$1;
|
|
583
|
+
export declare const shellResolveSnippetsConfig: typeof shellResolveSnippetsConfig$1;
|
|
584
|
+
export declare const shellRewriteHead: typeof shellRewriteHead$1;
|
|
585
|
+
export declare const shellRewriteModulepreload: typeof shellRewriteModulepreload$1;
|
|
586
|
+
export declare const shellSearchButtonScript: typeof shellSearchButtonScript$1;
|
|
587
|
+
export declare const shellSearchDialogCss: typeof shellSearchDialogCss$1;
|
|
588
|
+
export declare const shellSearchDialogInnerHtml: typeof shellSearchDialogInnerHtml$1;
|
|
589
|
+
export declare const shellSearchDialogScript: typeof shellSearchDialogScript$1;
|
|
590
|
+
export declare const shellSidebarHeightInitScript: typeof shellSidebarHeightInitScript$1;
|
|
591
|
+
export declare const shellSidebarScrollInitScript: typeof shellSidebarScrollInitScript$1;
|
|
592
|
+
export declare const shellTableOfContentsScript: typeof shellTableOfContentsScript$1;
|
|
593
|
+
export declare const tailwindComposeThemeCss: typeof tailwindComposeThemeCss$1;
|
|
594
|
+
export declare const tailwindReadPresetCss: typeof tailwindReadPresetCss$1;
|
|
595
|
+
export declare const tailwindResolveTheme: typeof tailwindResolveTheme$1;
|
|
596
|
+
export declare const verifyLicense: typeof verifyLicense$1;
|
|
597
|
+
export { type AnalyticsProvider, type AppearanceConfig, type AppearanceDefault, type ConfigErrorCode, type ConfigValidationError, type ContentSource, type CustomScript, type FathomConfig, type FolderTreeNode, type FontConfig, type FontsConfig, type Ga4Config, type IntegrationsConfig, type LlmsConfig, type LlmsOptions, type LlmsPage, type LogoConfig, type NavConfig, type NavLink, type OgImageOptions, type Page, type PageTree, type PageTreeNode, type PagesToggleMap, type PlausibleConfig, type PosthogConfig, type PressConfig, type PublierConfig, type RobotsConfig, type RobotsOptions, type RssConfig, type SearchConfig, type SidebarConfig, type SkillMdOptions, type SkillPage, type StructuredSection, type TocEntry, type ToggleablePage, type TreeNode, type TwitterMetaOptions, type TwitterMetaTag, type UmamiConfig, native as default };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{createRequire as e}from"node:module";const t=e(import.meta.url)(`../index.js`);function n(e){return t.analyticsGenerateScripts(JSON.stringify(e))}function r(e){return t.analyticsGenerateBodyScripts(JSON.stringify(e))}function i(e){return JSON.parse(t.blogSortByDate(JSON.stringify(e)))}function a(e){let n=JSON.parse(t.blogTagCounts(JSON.stringify(e)));return new Map(Object.entries(n))}function o(e,n){return JSON.parse(t.blogFilterByTag(JSON.stringify(e),n))}function s(e){return t.blogReadingTime(JSON.stringify(e))}function ee(e){return t.contentGenerateLlmsTxt(JSON.stringify(e))}function te(e){return JSON.parse(t.contentGenerateTwitterMeta(JSON.stringify(e)))}const c=200,l=400,u=80;function d(e,t){return e.length<=t?e:e.slice(0,t)}async function f(e){let{width:n=1200,height:r=630}=e,i,a;try{i=(await import(
|
|
2
|
+
/* @vite-ignore */
|
|
3
|
+
`satori`)).default}catch{throw Error(`@publier/native (og-image) requires "satori" as a peer dependency. Install it: pnpm add satori`)}try{a=(await import(
|
|
4
|
+
/* @vite-ignore */
|
|
5
|
+
`@resvg/resvg-js`)).Resvg}catch{throw Error(`@publier/native (og-image) requires "@resvg/resvg-js" as a peer dependency. Install it: pnpm add @resvg/resvg-js`)}let o=JSON.parse(t.contentGenerateOgImageMarkup(JSON.stringify(e))),s=await i(o,{width:n,height:r,fonts:e.fonts??[]});return new a(s,{fitTo:{mode:`width`,value:n}}).render().asPng()}const p=[`docs`,`blog`,`landing`,`press`,`about`,`team`,`contact`,`careers`,`changelog`,`status`,`knowledge-base`,`404`],m=[`system`,`light`,`dark`];function h(e){return JSON.parse(t.configResolvePublierConfig(JSON.stringify(e)??`null`))}function g(e,n,r){return t.configShouldRenderPage(e,JSON.stringify(n),r)}function _(e={}){return t.contentGenerateRobotsTxt(JSON.stringify(e))}function v(e){return JSON.parse(t.blogFilterPublished(JSON.stringify(e)))}function y(e,n){let r={title:n.title,description:n.description,siteUrl:n.siteUrl,feedUrl:n.feedUrl,language:n.language,buildDate:(n.buildDate??/* @__PURE__ */ new Date).toUTCString()};return t.rssGenerateFeed(JSON.stringify(e),JSON.stringify(r))}function b(e){return t.contentGenerateSkillMd(JSON.stringify(e))}function x(e,n){return t.contentGetSlug(e,n)}var S=t;const C=t.analyticsGenerateBodyScripts,w=t.analyticsGenerateScripts,T=t.asyncapiSourceBuild,E=t.blogFilterByTag,D=t.blogFilterPublished,O=t.blogReadingTime,k=t.blogSortByDate,A=t.blogTagCounts,j=t.buildHook,M=t.configResolvePublierConfig,N=t.configResolveShellConfig,P=t.configShouldRenderPage,F=t.contentGenerateLlmsTxt,I=t.contentGenerateOgImageMarkup,L=t.contentGenerateRobotsTxt,R=t.contentGenerateSkillMd,z=t.contentGenerateTwitterMeta,B=t.contentGetSlug,V=t.navigationActiveIndex,H=t.navigationBuildSidebar,U=t.navigationMatchNavPath,W=t.openapiBuildCustomSampleMap,G=t.openapiBuildInstanceId,K=t.openapiDecodePlaceholders,q=t.openapiExtractEndpoints,J=t.openapiGenerateFiles,Y=t.openapiGetMediaTypeExample,X=t.openapiGetSnippetClient,Z=t.openapiHarFromOperation,Q=t.openapiMergeSpecs,ne=t.openapiNavigationBuild,re=t.openapiParseAsyncApiSpec,ie=t.openapiParseOpenapiSpec,ae=t.openapiRenderApiPage,oe=t.openapiRenderApiPlayground,se=t.openapiRenderApiReference,ce=t.openapiRenderApiReferenceShell,le=t.openapiRenderAsyncChannel,ue=t.openapiRenderAsyncMessage,de=t.openapiRenderCodeSamples,fe=t.openapiRenderCollapsibleSection,pe=t.openapiRenderMethodBadge,me=t.openapiRenderParamField,he=t.openapiRenderRequestExample,ge=t.openapiRenderResponseExample,_e=t.openapiRenderResponseField,ve=t.openapiRenderSchemaRow,ye=t.openapiRenderSchemaView,be=t.openapiResolveBaseUrl,xe=t.openapiResolveRefs,Se=t.openapiSourceBuild,Ce=t.pluginHook,we=t.primitivesColorSwatchScript,Te=t.primitivesColorSwatchStyle,Ee=t.primitivesCopyButtonScript,De=t.primitivesCopyButtonStyle,Oe=t.primitivesRenderAccordion,ke=t.primitivesRenderAccordionItem,Ae=t.primitivesRenderColorSwatch,je=t.primitivesRenderCopyButton,Me=t.primitivesRenderImageZoom,Ne=t.primitivesRenderTabPanel,Pe=t.primitivesRenderTabs,Fe=t.primitivesRenderTooltip,Ie=t.primitivesRenderViewAnimation,Le=t.primitivesTabsScript,Re=t.primitivesViewAnimationScript,$=t.primitivesViewAnimationStyle,ze=t.remarkCollectSections,Be=t.remarkResolveSnippet,Ve=t.remarkTransformAsides,He=t.remarkVarsSubstitute,Ue=t.rssGenerateFeed,We=t.searchEntryToPage,Ge=t.searchExtractStructuredData,Ke=t.searchReadMetaYaml,qe=t.shellAnnouncementBannerScript,Je=t.shellBuildBannerInitScript,Ye=t.shellBuildGlobPattern,Xe=t.shellBuildHeaders,Ze=t.shellBuildLicenseErrorMessage,Qe=t.shellBuildThemeInitScript,$e=t.shellCacheControl,et=t.shellCollectTailwindClassTokens,tt=t.shellComposeTailwindEntry,nt=t.shellGenerateId,rt=t.shellInjectBodyScripts,it=t.shellInjectHeadScripts,at=t.shellLazyUpgradeScript,ot=t.shellListThemes,st=t.shellNavActiveUpdateScript,ct=t.shellOpenInAiScript,lt=t.shellPlanDefaultRoutes,ut=t.shellPlanDocsSlug,dt=t.shellPlanRehypePlugins,ft=t.shellPlanRemarkPlugins,pt=t.shellRenderAnnouncementBanner,mt=t.shellRenderAside,ht=t.shellRenderBadge,gt=t.shellRenderBaseLayout,_t=t.shellRenderBlogIndex,vt=t.shellRenderBlogSlug,yt=t.shellRenderBreadcrumbs,bt=t.shellRenderCard,xt=t.shellRenderCardGrid,St=t.shellRenderChangelogEntry,Ct=t.shellRenderChangelogFooter,wt=t.shellRenderChangelogHeader,Tt=t.shellRenderCodeGroup,Et=t.shellRenderColumns,Dt=t.shellRenderDocsLayout,Ot=t.shellRenderDocsSlug,kt=t.shellRenderFileTree,At=t.shellRenderFileTreeNode,jt=t.shellRenderIcon,Mt=t.shellRenderLastModified,Nt=t.shellRenderLinkButton,Pt=t.shellRenderLinkCard,Ft=t.shellRenderNotFound,It=t.shellRenderOpenInAi,Lt=t.shellRenderPackageInstall,Rt=t.shellRenderPanels,zt=t.shellRenderSearchButton,Bt=t.shellRenderSidebar,Vt=t.shellRenderSkipLink,Ht=t.shellRenderSteps,Ut=t.shellRenderTableOfContents,Wt=t.shellRenderTabs,Gt=t.shellRenderThemeToggle,Kt=t.shellRenderTile,qt=t.shellRenderTileGrid,Jt=t.shellRenderTopNav,Yt=t.shellRenderTopNavMobile,Xt=t.shellRenderUpdateBadge,Zt=t.shellRenderVersionSwitcher,Qt=t.shellResolvePrefetch,$t=t.shellResolveSnippetsConfig,en=t.shellRewriteHead,tn=t.shellRewriteModulepreload,nn=t.shellSearchButtonScript,rn=t.shellSearchDialogCss,an=t.shellSearchDialogInnerHtml,on=t.shellSearchDialogScript,sn=t.shellSidebarHeightInitScript,cn=t.shellSidebarScrollInitScript,ln=t.shellTableOfContentsScript,un=t.tailwindComposeThemeCss,dn=t.tailwindReadPresetCss,fn=t.tailwindResolveTheme,pn=t.verifyLicense;export{m as APPEARANCE_DEFAULTS,l as MAX_DESCRIPTION_LEN,u as MAX_SITENAME_LEN,c as MAX_TITLE_LEN,p as TOGGLEABLE_PAGES,C as analyticsGenerateBodyScripts,w as analyticsGenerateScripts,T as asyncapiSourceBuild,E as blogFilterByTag,D as blogFilterPublished,O as blogReadingTime,k as blogSortByDate,A as blogTagCounts,j as buildHook,d as clamp,M as configResolvePublierConfig,N as configResolveShellConfig,P as configShouldRenderPage,F as contentGenerateLlmsTxt,I as contentGenerateOgImageMarkup,L as contentGenerateRobotsTxt,R as contentGenerateSkillMd,z as contentGenerateTwitterMeta,B as contentGetSlug,S as default,o as filterByTag,v as filterPublishedPages,r as generateAnalyticsBodyScripts,n as generateAnalyticsScripts,ee as generateLlmsTxt,f as generateOgImage,_ as generateRobotsTxt,y as generateRssFeed,b as generateSkillMd,te as generateTwitterMeta,s as getReadingTime,x as getSlug,a as getTagCounts,V as navigationActiveIndex,H as navigationBuildSidebar,U as navigationMatchNavPath,W as openapiBuildCustomSampleMap,G as openapiBuildInstanceId,K as openapiDecodePlaceholders,q as openapiExtractEndpoints,J as openapiGenerateFiles,Y as openapiGetMediaTypeExample,X as openapiGetSnippetClient,Z as openapiHarFromOperation,Q as openapiMergeSpecs,ne as openapiNavigationBuild,re as openapiParseAsyncApiSpec,ie as openapiParseOpenapiSpec,ae as openapiRenderApiPage,oe as openapiRenderApiPlayground,se as openapiRenderApiReference,ce as openapiRenderApiReferenceShell,le as openapiRenderAsyncChannel,ue as openapiRenderAsyncMessage,de as openapiRenderCodeSamples,fe as openapiRenderCollapsibleSection,pe as openapiRenderMethodBadge,me as openapiRenderParamField,he as openapiRenderRequestExample,ge as openapiRenderResponseExample,_e as openapiRenderResponseField,ve as openapiRenderSchemaRow,ye as openapiRenderSchemaView,be as openapiResolveBaseUrl,xe as openapiResolveRefs,Se as openapiSourceBuild,Ce as pluginHook,we as primitivesColorSwatchScript,Te as primitivesColorSwatchStyle,Ee as primitivesCopyButtonScript,De as primitivesCopyButtonStyle,Oe as primitivesRenderAccordion,ke as primitivesRenderAccordionItem,Ae as primitivesRenderColorSwatch,je as primitivesRenderCopyButton,Me as primitivesRenderImageZoom,Ne as primitivesRenderTabPanel,Pe as primitivesRenderTabs,Fe as primitivesRenderTooltip,Ie as primitivesRenderViewAnimation,Le as primitivesTabsScript,Re as primitivesViewAnimationScript,$ as primitivesViewAnimationStyle,ze as remarkCollectSections,Be as remarkResolveSnippet,Ve as remarkTransformAsides,He as remarkVarsSubstitute,h as resolvePublierConfig,Ue as rssGenerateFeed,We as searchEntryToPage,Ge as searchExtractStructuredData,Ke as searchReadMetaYaml,qe as shellAnnouncementBannerScript,Je as shellBuildBannerInitScript,Ye as shellBuildGlobPattern,Xe as shellBuildHeaders,Ze as shellBuildLicenseErrorMessage,Qe as shellBuildThemeInitScript,$e as shellCacheControl,et as shellCollectTailwindClassTokens,tt as shellComposeTailwindEntry,nt as shellGenerateId,rt as shellInjectBodyScripts,it as shellInjectHeadScripts,at as shellLazyUpgradeScript,ot as shellListThemes,st as shellNavActiveUpdateScript,ct as shellOpenInAiScript,lt as shellPlanDefaultRoutes,ut as shellPlanDocsSlug,dt as shellPlanRehypePlugins,ft as shellPlanRemarkPlugins,pt as shellRenderAnnouncementBanner,mt as shellRenderAside,ht as shellRenderBadge,gt as shellRenderBaseLayout,_t as shellRenderBlogIndex,vt as shellRenderBlogSlug,yt as shellRenderBreadcrumbs,bt as shellRenderCard,xt as shellRenderCardGrid,St as shellRenderChangelogEntry,Ct as shellRenderChangelogFooter,wt as shellRenderChangelogHeader,Tt as shellRenderCodeGroup,Et as shellRenderColumns,Dt as shellRenderDocsLayout,Ot as shellRenderDocsSlug,kt as shellRenderFileTree,At as shellRenderFileTreeNode,jt as shellRenderIcon,Mt as shellRenderLastModified,Nt as shellRenderLinkButton,Pt as shellRenderLinkCard,Ft as shellRenderNotFound,It as shellRenderOpenInAi,Lt as shellRenderPackageInstall,Rt as shellRenderPanels,zt as shellRenderSearchButton,Bt as shellRenderSidebar,Vt as shellRenderSkipLink,Ht as shellRenderSteps,Ut as shellRenderTableOfContents,Wt as shellRenderTabs,Gt as shellRenderThemeToggle,Kt as shellRenderTile,qt as shellRenderTileGrid,Jt as shellRenderTopNav,Yt as shellRenderTopNavMobile,Xt as shellRenderUpdateBadge,Zt as shellRenderVersionSwitcher,Qt as shellResolvePrefetch,$t as shellResolveSnippetsConfig,en as shellRewriteHead,tn as shellRewriteModulepreload,nn as shellSearchButtonScript,rn as shellSearchDialogCss,an as shellSearchDialogInnerHtml,on as shellSearchDialogScript,sn as shellSidebarHeightInitScript,cn as shellSidebarScrollInitScript,ln as shellTableOfContentsScript,g as shouldRenderPage,i as sortByDate,un as tailwindComposeThemeCss,dn as tailwindReadPresetCss,fn as tailwindResolveTheme,pn as verifyLicense};
|