@publier/native 0.10.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 -0
- package/dist/index.d.mts +635 -0
- package/dist/index.mjs +1 -0
- package/index.d.ts +179 -0
- package/index.js +733 -0
- package/package.json +64 -0
- package/publier-native.linux-x64-gnu.node +0 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
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(`satori`)).default}catch{throw Error(`@publier/native (og-image) requires "satori" as a peer dependency. Install it: pnpm add satori`)}try{a=(await import(`@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??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.configShouldRenderPage,P=t.contentGenerateLlmsTxt,F=t.contentGenerateOgImageMarkup,I=t.contentGenerateRobotsTxt,L=t.contentGenerateSkillMd,R=t.contentGenerateTwitterMeta,z=t.contentGetSlug,B=t.navigationActiveIndex,V=t.navigationBuildSidebar,H=t.navigationMatchNavPath,U=t.openapiBuildCustomSampleMap,W=t.openapiBuildInstanceId,G=t.openapiDecodePlaceholders,K=t.openapiExtractEndpoints,q=t.openapiGenerateFiles,J=t.openapiGetMediaTypeExample,Y=t.openapiGetSnippetClient,X=t.openapiHarFromOperation,Z=t.openapiMergeSpecs,Q=t.openapiNavigationBuild,ne=t.openapiParseAsyncApiSpec,re=t.openapiParseOpenapiSpec,ie=t.openapiRenderApiPage,ae=t.openapiRenderApiPlayground,oe=t.openapiRenderApiReference,se=t.openapiRenderApiReferenceShell,ce=t.openapiRenderAsyncChannel,le=t.openapiRenderAsyncMessage,ue=t.openapiRenderCodeSamples,de=t.openapiRenderCollapsibleSection,fe=t.openapiRenderMethodBadge,pe=t.openapiRenderParamField,me=t.openapiRenderRequestExample,he=t.openapiRenderResponseExample,ge=t.openapiRenderResponseField,_e=t.openapiRenderSchemaRow,ve=t.openapiRenderSchemaView,ye=t.openapiResolveBaseUrl,be=t.openapiResolveRefs,xe=t.openapiSourceBuild,Se=t.pluginHook,Ce=t.primitivesColorSwatchScript,we=t.primitivesColorSwatchStyle,Te=t.primitivesCopyButtonScript,Ee=t.primitivesCopyButtonStyle,De=t.primitivesImageZoomScript,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,ze=t.primitivesViewAnimationStyle,Be=t.remarkCollectSections,Ve=t.remarkResolveSnippet,He=t.remarkTransformAsides,$=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.shellExtractAnalyticsFromYaml,rt=t.shellExtractAnnouncementFromYaml,it=t.shellExtractDocsConfigFromYaml,at=t.shellExtractFontsFromYaml,ot=t.shellExtractNavFromYaml,st=t.shellExtractSiteFromYaml,ct=t.shellExtractSnippetsFromYaml,lt=t.shellExtractVarsFromYaml,ut=t.shellGenerateId,dt=t.shellLazyUpgradeScript,ft=t.shellListThemes,pt=t.shellNavActiveUpdateScript,mt=t.shellOpenInAiScript,ht=t.shellPlanDefaultRoutes,gt=t.shellPlanDocsSlug,_t=t.shellPlanRehypePlugins,vt=t.shellPlanRemarkPlugins,yt=t.shellRenderAnnouncementBanner,bt=t.shellRenderAside,xt=t.shellRenderBadge,St=t.shellRenderBaseLayout,Ct=t.shellRenderBlogIndex,wt=t.shellRenderBlogSlug,Tt=t.shellRenderBreadcrumbs,Et=t.shellRenderCard,Dt=t.shellRenderCardGrid,Ot=t.shellRenderChangelogEntry,kt=t.shellRenderChangelogFooter,At=t.shellRenderChangelogHeader,jt=t.shellRenderCodeGroup,Mt=t.shellRenderColumns,Nt=t.shellRenderDocsLayout,Pt=t.shellRenderDocsSlug,Ft=t.shellRenderFileTree,It=t.shellRenderFileTreeNode,Lt=t.shellRenderIcon,Rt=t.shellRenderLastModified,zt=t.shellRenderLinkButton,Bt=t.shellRenderLinkCard,Vt=t.shellRenderNotFound,Ht=t.shellRenderOpenInAi,Ut=t.shellRenderPackageInstall,Wt=t.shellRenderPanels,Gt=t.shellRenderSearchButton,Kt=t.shellRenderSidebar,qt=t.shellRenderSkipLink,Jt=t.shellRenderSteps,Yt=t.shellRenderTableOfContents,Xt=t.shellRenderTabs,Zt=t.shellRenderThemeToggle,Qt=t.shellRenderTile,$t=t.shellRenderTileGrid,en=t.shellRenderTopNav,tn=t.shellRenderTopNavMobile,nn=t.shellRenderUpdateBadge,rn=t.shellRenderVersionSwitcher,an=t.shellResolvePrefetch,on=t.shellResolveSnippetsConfig,sn=t.shellRewriteHead,cn=t.shellRewriteModulepreload,ln=t.shellSearchButtonScript,un=t.shellSearchDialogCss,dn=t.shellSearchDialogInnerHtml,fn=t.shellSearchDialogScript,pn=t.shellSidebarHeightInitScript,mn=t.shellSidebarScrollInitScript,hn=t.shellTableOfContentsScript,gn=t.tailwindComposeThemeCss,_n=t.tailwindReadPresetCss,vn=t.tailwindResolveTheme,yn=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 configShouldRenderPage,P as contentGenerateLlmsTxt,F as contentGenerateOgImageMarkup,I as contentGenerateRobotsTxt,L as contentGenerateSkillMd,R as contentGenerateTwitterMeta,z 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,B as navigationActiveIndex,V as navigationBuildSidebar,H as navigationMatchNavPath,U as openapiBuildCustomSampleMap,W as openapiBuildInstanceId,G as openapiDecodePlaceholders,K as openapiExtractEndpoints,q as openapiGenerateFiles,J as openapiGetMediaTypeExample,Y as openapiGetSnippetClient,X as openapiHarFromOperation,Z as openapiMergeSpecs,Q as openapiNavigationBuild,ne as openapiParseAsyncApiSpec,re as openapiParseOpenapiSpec,ie as openapiRenderApiPage,ae as openapiRenderApiPlayground,oe as openapiRenderApiReference,se as openapiRenderApiReferenceShell,ce as openapiRenderAsyncChannel,le as openapiRenderAsyncMessage,ue as openapiRenderCodeSamples,de as openapiRenderCollapsibleSection,fe as openapiRenderMethodBadge,pe as openapiRenderParamField,me as openapiRenderRequestExample,he as openapiRenderResponseExample,ge as openapiRenderResponseField,_e as openapiRenderSchemaRow,ve as openapiRenderSchemaView,ye as openapiResolveBaseUrl,be as openapiResolveRefs,xe as openapiSourceBuild,Se as pluginHook,Ce as primitivesColorSwatchScript,we as primitivesColorSwatchStyle,Te as primitivesCopyButtonScript,Ee as primitivesCopyButtonStyle,De as primitivesImageZoomScript,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,ze as primitivesViewAnimationStyle,Be as remarkCollectSections,Ve as remarkResolveSnippet,He as remarkTransformAsides,$ 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 shellExtractAnalyticsFromYaml,rt as shellExtractAnnouncementFromYaml,it as shellExtractDocsConfigFromYaml,at as shellExtractFontsFromYaml,ot as shellExtractNavFromYaml,st as shellExtractSiteFromYaml,ct as shellExtractSnippetsFromYaml,lt as shellExtractVarsFromYaml,ut as shellGenerateId,dt as shellLazyUpgradeScript,ft as shellListThemes,pt as shellNavActiveUpdateScript,mt as shellOpenInAiScript,ht as shellPlanDefaultRoutes,gt as shellPlanDocsSlug,_t as shellPlanRehypePlugins,vt as shellPlanRemarkPlugins,yt as shellRenderAnnouncementBanner,bt as shellRenderAside,xt as shellRenderBadge,St as shellRenderBaseLayout,Ct as shellRenderBlogIndex,wt as shellRenderBlogSlug,Tt as shellRenderBreadcrumbs,Et as shellRenderCard,Dt as shellRenderCardGrid,Ot as shellRenderChangelogEntry,kt as shellRenderChangelogFooter,At as shellRenderChangelogHeader,jt as shellRenderCodeGroup,Mt as shellRenderColumns,Nt as shellRenderDocsLayout,Pt as shellRenderDocsSlug,Ft as shellRenderFileTree,It as shellRenderFileTreeNode,Lt as shellRenderIcon,Rt as shellRenderLastModified,zt as shellRenderLinkButton,Bt as shellRenderLinkCard,Vt as shellRenderNotFound,Ht as shellRenderOpenInAi,Ut as shellRenderPackageInstall,Wt as shellRenderPanels,Gt as shellRenderSearchButton,Kt as shellRenderSidebar,qt as shellRenderSkipLink,Jt as shellRenderSteps,Yt as shellRenderTableOfContents,Xt as shellRenderTabs,Zt as shellRenderThemeToggle,Qt as shellRenderTile,$t as shellRenderTileGrid,en as shellRenderTopNav,tn as shellRenderTopNavMobile,nn as shellRenderUpdateBadge,rn as shellRenderVersionSwitcher,an as shellResolvePrefetch,on as shellResolveSnippetsConfig,sn as shellRewriteHead,cn as shellRewriteModulepreload,ln as shellSearchButtonScript,un as shellSearchDialogCss,dn as shellSearchDialogInnerHtml,fn as shellSearchDialogScript,pn as shellSidebarHeightInitScript,mn as shellSidebarScrollInitScript,hn as shellTableOfContentsScript,g as shouldRenderPage,i as sortByDate,gn as tailwindComposeThemeCss,_n as tailwindReadPresetCss,vn as tailwindResolveTheme,yn as verifyLicense};
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
export declare function analyticsGenerateBodyScripts(analyticsJson: string): string
|
|
2
|
+
export declare function analyticsGenerateScripts(analyticsJson: string): string
|
|
3
|
+
export declare function asyncapiSourceBuild(specJson: string, baseUrl: string): string
|
|
4
|
+
export declare function blogFilterByTag(pagesJson: string, tag: string): string
|
|
5
|
+
export declare function blogFilterPublished(pagesJson: string): string
|
|
6
|
+
export declare function blogReadingTime(structuredJson: string): number
|
|
7
|
+
export declare function blogSortByDate(pagesJson: string): string
|
|
8
|
+
export declare function blogTagCounts(pagesJson: string): string
|
|
9
|
+
export declare function buildHook(event: string, argsJson: string): string | null
|
|
10
|
+
export declare function configResolvePublierConfig(inputJson: string): string
|
|
11
|
+
export declare function configShouldRenderPage(page: string, pagesJson: string, defaultForTemplate: boolean): boolean
|
|
12
|
+
export declare function contentGenerateLlmsTxt(optionsJson: string): string
|
|
13
|
+
export declare function contentGenerateOgImageMarkup(optionsJson: string): string
|
|
14
|
+
export declare function contentGenerateRobotsTxt(optionsJson: string): string
|
|
15
|
+
export declare function contentGenerateSkillMd(optionsJson: string): string
|
|
16
|
+
export declare function contentGenerateTwitterMeta(optionsJson: string): string
|
|
17
|
+
export declare function contentGetSlug(filePath: string, baseDir: string): string
|
|
18
|
+
export interface NativeHeadStats {
|
|
19
|
+
stylesheetsCount: number
|
|
20
|
+
modulesCount: number
|
|
21
|
+
pagesRewritten: number
|
|
22
|
+
stylesheets: Array<string>
|
|
23
|
+
modules: Array<string>
|
|
24
|
+
}
|
|
25
|
+
export interface NativePreloadStats {
|
|
26
|
+
jsCount: number
|
|
27
|
+
fontsCount: number
|
|
28
|
+
pagesRewritten: number
|
|
29
|
+
}
|
|
30
|
+
export interface NativeTailwindResolvedTheme {
|
|
31
|
+
preset?: string
|
|
32
|
+
overrides: Record<string, string>
|
|
33
|
+
overrideCss: string
|
|
34
|
+
errors: Array<NativeTailwindThemeError>
|
|
35
|
+
}
|
|
36
|
+
export interface NativeTailwindThemeError {
|
|
37
|
+
code: string
|
|
38
|
+
message: string
|
|
39
|
+
path: string
|
|
40
|
+
}
|
|
41
|
+
export declare function navigationActiveIndex(entriesJson: string, currentPath: string): number
|
|
42
|
+
export declare function navigationBuildSidebar(pagesJson: string, optionsJson: string): string
|
|
43
|
+
export declare function navigationMatchNavPath(pathRulesJson: string, pathname: string): string
|
|
44
|
+
export declare function openapiBuildCustomSampleMap(customSamplesJson: string): string
|
|
45
|
+
export declare function openapiBuildInstanceId(method: string, path: string): string
|
|
46
|
+
export declare function openapiDecodePlaceholders(source: string): string
|
|
47
|
+
export declare function openapiExtractEndpoints(specJson: string, mergePathParameters: boolean, includeWebhooks: boolean): string
|
|
48
|
+
export declare function openapiGenerateFiles(specJson: string, outputDir: string, groupBy: string, per: string, clean: boolean): string
|
|
49
|
+
export declare function openapiGetMediaTypeExample(contentJson: string, mediaType: string): string | null
|
|
50
|
+
export declare function openapiGetSnippetClient(lang: string): Array<string> | null
|
|
51
|
+
export declare function openapiHarFromOperation(method: string, path: string, operationJson: string, baseUrl: string): string
|
|
52
|
+
export declare function openapiMergeSpecs(specsJson: string): string
|
|
53
|
+
export declare function openapiNavigationBuild(specJson: string, groupBy: string, slugPrefix: string | undefined | null, excludeDeprecated: boolean, includeWebhooks: boolean): string
|
|
54
|
+
export declare function openapiParseAsyncApiSpec(jsonInput: string): string
|
|
55
|
+
export declare function openapiParseOpenapiSpec(jsonInput: string): string
|
|
56
|
+
export declare function openapiRenderApiPage(method: string, path: string, operationJson: string): string
|
|
57
|
+
export declare function openapiRenderApiPlayground(inputJson: string): string
|
|
58
|
+
export declare function openapiRenderApiReference(apiPageHtml: string, requestExampleHtml: string, codeSamplesHtml: string, responseExampleHtml: string): string
|
|
59
|
+
export declare function openapiRenderApiReferenceShell(): string
|
|
60
|
+
export declare function openapiRenderAsyncChannel(channelName: string, channelJson: string, operationsJson: string, protocol: string): string
|
|
61
|
+
export declare function openapiRenderAsyncMessage(messageJson: string): string
|
|
62
|
+
export declare function openapiRenderCodeSamples(method: string, path: string, samplesJson: string): string
|
|
63
|
+
export declare function openapiRenderCollapsibleSection(title: string, defaultOpen: boolean, slotHtml: string): string
|
|
64
|
+
export declare function openapiRenderMethodBadge(method: string): string
|
|
65
|
+
export declare function openapiRenderParamField(name: string, typeStr: string, required: boolean, deprecated: boolean, defaultValue: string | undefined | null, placeholder: string | undefined | null, slotHtml: string): string
|
|
66
|
+
export declare function openapiRenderRequestExample(method: string, path: string, operationJson: string, baseUrl: string, bodyExample?: string | undefined | null): string
|
|
67
|
+
export declare function openapiRenderResponseExample(tabsJson: string, instanceId?: string | undefined | null): string
|
|
68
|
+
export declare function openapiRenderResponseField(name: string, typeStr: string, required: boolean, deprecated: boolean, slotHtml: string): string
|
|
69
|
+
export declare function openapiRenderSchemaRow(inputJson: string): string
|
|
70
|
+
export declare function openapiRenderSchemaView(schemaJson: string, name: string | undefined | null, required: boolean, depth: number): string
|
|
71
|
+
export declare function openapiResolveBaseUrl(baseUrlProp?: string | undefined | null, specServersFirstUrl?: string | undefined | null): string
|
|
72
|
+
export declare function openapiResolveRefs(specJson: string): string
|
|
73
|
+
export declare function openapiSourceBuild(specJson: string, baseUrl: string): string
|
|
74
|
+
export declare function pluginHook(plugin: string, hook: string, argsJson: string): string | null
|
|
75
|
+
export declare function primitivesColorSwatchScript(): string
|
|
76
|
+
export declare function primitivesColorSwatchStyle(): string
|
|
77
|
+
export declare function primitivesCopyButtonScript(): string
|
|
78
|
+
export declare function primitivesCopyButtonStyle(): string
|
|
79
|
+
export declare function primitivesImageZoomScript(): string
|
|
80
|
+
export declare function primitivesRenderAccordion(className: string | undefined | null, slotHtml: string): string
|
|
81
|
+
export declare function primitivesRenderAccordionItem(title: string, open: boolean, name: string | undefined | null, slotHtml: string): string
|
|
82
|
+
export declare function primitivesRenderColorSwatch(inputJson: string): string
|
|
83
|
+
export declare function primitivesRenderCopyButton(selector: string | undefined | null, text: string | undefined | null, floating: boolean, className?: string | undefined | null, label?: string | undefined | null): string
|
|
84
|
+
export declare function primitivesRenderImageZoom(src: string, alt: string, width?: number | undefined | null, height?: number | undefined | null, customClass?: string | undefined | null): string
|
|
85
|
+
export declare function primitivesRenderTabPanel(className: string | undefined | null, slotHtml: string): string
|
|
86
|
+
export declare function primitivesRenderTabs(labels: Array<string>, defaultIndex: number, variant: string | undefined | null, className: string | undefined | null, slotHtml: string, id: string): string
|
|
87
|
+
export declare function primitivesRenderTooltip(tip: string, position: string, color: string | undefined | null, open: boolean, className: string | undefined | null, slotHtml: string): string
|
|
88
|
+
export declare function primitivesRenderViewAnimation(slotHtml: string, customClass: string | undefined | null, delayMs: number, once: boolean): string
|
|
89
|
+
export declare function primitivesTabsScript(): string
|
|
90
|
+
export declare function primitivesViewAnimationScript(): string
|
|
91
|
+
export declare function primitivesViewAnimationStyle(): string
|
|
92
|
+
export declare function remarkCollectSections(treeJson: string): string
|
|
93
|
+
export declare function remarkResolveSnippet(snippetDir: string, fileName: string, attrsJson: string): string | null
|
|
94
|
+
export declare function remarkTransformAsides(treeJson: string): string
|
|
95
|
+
export declare function remarkVarsSubstitute(treeJson: string, varsJson: string): string
|
|
96
|
+
export declare function rssGenerateFeed(pagesJson: string, configJson: string): string
|
|
97
|
+
export declare function searchEntryToPage(entryJson: string, optionsJson: string): string
|
|
98
|
+
export declare function searchExtractStructuredData(source: string): string
|
|
99
|
+
export declare function searchReadMetaYaml(basePath: string): string
|
|
100
|
+
export declare function shellAnnouncementBannerScript(): string
|
|
101
|
+
export declare function shellBuildBannerInitScript(storageKey?: string | undefined | null): string
|
|
102
|
+
export declare function shellBuildGlobPattern(collection: string): Array<string>
|
|
103
|
+
export declare function shellBuildHeaders(): string
|
|
104
|
+
export declare function shellBuildLicenseErrorMessage(rawErr: string): string | null
|
|
105
|
+
export declare function shellBuildThemeInitScript(defaultScheme: string, strict: boolean): string
|
|
106
|
+
export declare function shellCacheControl(path: string): string
|
|
107
|
+
export declare function shellCollectTailwindClassTokens(): string
|
|
108
|
+
export declare function shellComposeTailwindEntry(sourceDirsJson: string, katexCssPath?: string | undefined | null): string
|
|
109
|
+
export declare function shellExtractAnalyticsFromYaml(yaml: string): string | null
|
|
110
|
+
export declare function shellExtractAnnouncementFromYaml(yaml: string): string | null
|
|
111
|
+
export declare function shellExtractDocsConfigFromYaml(yaml: string): string
|
|
112
|
+
export declare function shellExtractFontsFromYaml(yaml: string): string | null
|
|
113
|
+
export declare function shellExtractNavFromYaml(yaml: string): string
|
|
114
|
+
export declare function shellExtractSiteFromYaml(yaml: string): string
|
|
115
|
+
export declare function shellExtractSnippetsFromYaml(yaml: string): string | null
|
|
116
|
+
export declare function shellExtractVarsFromYaml(yaml: string): string | null
|
|
117
|
+
export declare function shellGenerateId(entry: string): string
|
|
118
|
+
export declare function shellLazyUpgradeScript(): string
|
|
119
|
+
export declare function shellListThemes(): string
|
|
120
|
+
export declare function shellNavActiveUpdateScript(): string
|
|
121
|
+
export declare function shellOpenInAiScript(): string
|
|
122
|
+
export declare function shellPlanDefaultRoutes(optionsJson: string, hasSiteUrl: boolean, collectionsPresentJson: string): string
|
|
123
|
+
export declare function shellPlanDocsSlug(inputJson: string): string
|
|
124
|
+
export declare function shellPlanRehypePlugins(optionsJson: string, mathEnabled: boolean): string
|
|
125
|
+
export declare function shellPlanRemarkPlugins(optionsJson: string, hasVars: boolean, hasSnippets: boolean, mathEnabled: boolean): string
|
|
126
|
+
export declare function shellRenderAnnouncementBanner(message: string, href: string | undefined | null, variant: string, dismissible: boolean, storageKey: string): string
|
|
127
|
+
export declare function shellRenderAside(asideType: string, title: string | undefined | null, slotHtml: string, titleId: string): string
|
|
128
|
+
export declare function shellRenderBadge(text: string, variant?: string | undefined | null, size?: string | undefined | null, className?: string | undefined | null): string
|
|
129
|
+
export declare function shellRenderBaseLayout(inputJson: string): string
|
|
130
|
+
export declare function shellRenderBlogIndex(inputJson: string): string
|
|
131
|
+
export declare function shellRenderBlogSlug(inputJson: string): string
|
|
132
|
+
export declare function shellRenderBreadcrumbs(itemsJson: string, label?: string | undefined | null, customClass?: string | undefined | null): string
|
|
133
|
+
export declare function shellRenderCard(title: string, variant: string, customClass: string | undefined | null, iconSlotHtml: string | undefined | null, slotHtml: string): string
|
|
134
|
+
export declare function shellRenderCardGrid(minColumnWidth: string, customClass: string | undefined | null, slotHtml: string): string
|
|
135
|
+
export declare function shellRenderChangelogEntry(inputJson: string): string
|
|
136
|
+
export declare function shellRenderChangelogFooter(): string
|
|
137
|
+
export declare function shellRenderChangelogHeader(): string
|
|
138
|
+
export declare function shellRenderCodeGroup(itemsJson: string, syncKey: string | undefined | null, id: string): string
|
|
139
|
+
export declare function shellRenderColumns(cols: number | undefined | null, gap: string | undefined | null, className: string | undefined | null, slotHtml: string): string
|
|
140
|
+
export declare function shellRenderDocsLayout(inputJson: string): string
|
|
141
|
+
export declare function shellRenderDocsSlug(inputJson: string): string
|
|
142
|
+
export declare function shellRenderFileTree(treeJson: string, label: string, customClass?: string | undefined | null): string
|
|
143
|
+
export declare function shellRenderFileTreeNode(entryJson: string): string
|
|
144
|
+
export declare function shellRenderIcon(innerHtml: string, fill: boolean, viewBox: string | undefined | null, strokeWidth: number | undefined | null, size: number, className?: string | undefined | null): string
|
|
145
|
+
export declare function shellRenderLastModified(dateMs: number | undefined | null, nowMs: number, format: string): string
|
|
146
|
+
export declare function shellRenderLinkButton(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
|
|
147
|
+
export declare function shellRenderLinkCard(title: string, href: string, description?: string | undefined | null, rel?: string | undefined | null, target?: string | undefined | null, customClass?: string | undefined | null): string
|
|
148
|
+
export declare function shellRenderNotFound(): string
|
|
149
|
+
export declare function shellRenderOpenInAi(pageUrl: string, pageTitle: string): string
|
|
150
|
+
export declare function shellRenderPackageInstall(inputJson: string): string
|
|
151
|
+
export declare function shellRenderPanels(inputJson: string): string
|
|
152
|
+
export declare function shellRenderSearchButton(inputJson: string): string
|
|
153
|
+
export declare function shellRenderSidebar(inputJson: string): string
|
|
154
|
+
export declare function shellRenderSkipLink(inputJson: string): string
|
|
155
|
+
export declare function shellRenderSteps(inputJson: string): string
|
|
156
|
+
export declare function shellRenderTableOfContents(inputJson: string): string
|
|
157
|
+
export declare function shellRenderTabs(labelsJson: string, panelsJson: string, defaultIndex: number, syncKey: string | undefined | null, id: string, extraClass?: string | undefined | null): string
|
|
158
|
+
export declare function shellRenderThemeToggle(inputJson: string): string
|
|
159
|
+
export declare function shellRenderTile(inputJson: string): string
|
|
160
|
+
export declare function shellRenderTileGrid(inputJson: string): string
|
|
161
|
+
export declare function shellRenderTopNav(inputJson: string): string
|
|
162
|
+
export declare function shellRenderTopNavMobile(inputJson: string): string
|
|
163
|
+
export declare function shellRenderUpdateBadge(inputJson: string): string
|
|
164
|
+
export declare function shellRenderVersionSwitcher(inputJson: string): string
|
|
165
|
+
export declare function shellResolvePrefetch(userPrefetchJson: string | undefined | null, optionsJson: string): boolean
|
|
166
|
+
export declare function shellResolveSnippetsConfig(optionsJson: string, yamlSnippetsJson: string | undefined | null, autoDetectPresent: boolean): string
|
|
167
|
+
export declare function shellRewriteHead(distDir: string, pathnames: Array<string>): NativeHeadStats
|
|
168
|
+
export declare function shellRewriteModulepreload(distDir: string, pathnames: Array<string>): NativePreloadStats
|
|
169
|
+
export declare function shellSearchButtonScript(): string
|
|
170
|
+
export declare function shellSearchDialogCss(): string
|
|
171
|
+
export declare function shellSearchDialogInnerHtml(): string
|
|
172
|
+
export declare function shellSearchDialogScript(): string
|
|
173
|
+
export declare function shellSidebarHeightInitScript(): string
|
|
174
|
+
export declare function shellSidebarScrollInitScript(): string
|
|
175
|
+
export declare function shellTableOfContentsScript(): string
|
|
176
|
+
export declare function tailwindComposeThemeCss(presetCss: string, overrideCss: string): string
|
|
177
|
+
export declare function tailwindReadPresetCss(themesDir: string, name: string): string
|
|
178
|
+
export declare function tailwindResolveTheme(json: string): NativeTailwindResolvedTheme
|
|
179
|
+
export declare function verifyLicense(): void
|