@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/index.d.ts ADDED
@@ -0,0 +1,174 @@
1
+ export declare const __napiBindingTarget: 'native' | 'wasm32-wasi' | 'wasm32-wasip1'
2
+ export declare function analyticsGenerateBodyScripts(analyticsJson: string): string
3
+ export declare function analyticsGenerateScripts(analyticsJson: string): string
4
+ export declare function asyncapiSourceBuild(specJson: string, baseUrl: string): string
5
+ export declare function blogFilterByTag(pagesJson: string, tag: string): string
6
+ export declare function blogFilterPublished(pagesJson: string): string
7
+ export declare function blogReadingTime(structuredJson: string): number
8
+ export declare function blogSortByDate(pagesJson: string): string
9
+ export declare function blogTagCounts(pagesJson: string): string
10
+ export declare function buildHook(event: string, argsJson: string): string | null
11
+ export declare function configResolvePublierConfig(inputJson: string): string
12
+ export declare function configResolveShellConfig(yaml: string): string
13
+ export declare function configShouldRenderPage(page: string, pagesJson: string, defaultForTemplate: boolean): boolean
14
+ export declare function contentGenerateLlmsTxt(optionsJson: string): string
15
+ export declare function contentGenerateOgImageMarkup(optionsJson: string): string
16
+ export declare function contentGenerateRobotsTxt(optionsJson: string): string
17
+ export declare function contentGenerateSkillMd(optionsJson: string): string
18
+ export declare function contentGenerateTwitterMeta(optionsJson: string): string
19
+ export declare function contentGetSlug(filePath: string, baseDir: string): string
20
+ export interface NativeHeadStats {
21
+ stylesheetsCount: number
22
+ modulesCount: number
23
+ pagesRewritten: number
24
+ stylesheets: Array<string>
25
+ modules: Array<string>
26
+ }
27
+ export interface NativePreloadStats {
28
+ jsCount: number
29
+ fontsCount: number
30
+ pagesRewritten: number
31
+ }
32
+ export interface NativeTailwindResolvedTheme {
33
+ preset?: string
34
+ overrides: Record<string, string>
35
+ overrideCss: string
36
+ errors: Array<NativeTailwindThemeError>
37
+ }
38
+ export interface NativeTailwindThemeError {
39
+ code: string
40
+ message: string
41
+ path: string
42
+ }
43
+ export declare function navigationActiveIndex(entriesJson: string, currentPath: string): number
44
+ export declare function navigationBuildSidebar(pagesJson: string, optionsJson: string): string
45
+ export declare function navigationMatchNavPath(pathRulesJson: string, pathname: string): string
46
+ export declare function openapiBuildCustomSampleMap(customSamplesJson: string): string
47
+ export declare function openapiBuildInstanceId(method: string, path: string): string
48
+ export declare function openapiDecodePlaceholders(source: string): string
49
+ export declare function openapiExtractEndpoints(specJson: string, mergePathParameters: boolean, includeWebhooks: boolean): string
50
+ export declare function openapiGenerateFiles(specJson: string, outputDir: string, groupBy: string, per: string, clean: boolean): string
51
+ export declare function openapiGetMediaTypeExample(contentJson: string, mediaType: string): string | null
52
+ export declare function openapiGetSnippetClient(lang: string): Array<string> | null
53
+ export declare function openapiHarFromOperation(method: string, path: string, operationJson: string, baseUrl: string): string
54
+ export declare function openapiMergeSpecs(specsJson: string): string
55
+ export declare function openapiNavigationBuild(specJson: string, groupBy: string, slugPrefix: string | undefined | null, excludeDeprecated: boolean, includeWebhooks: boolean): string
56
+ export declare function openapiParseAsyncApiSpec(jsonInput: string): string
57
+ export declare function openapiParseOpenapiSpec(jsonInput: string): string
58
+ export declare function openapiRenderApiPage(method: string, path: string, operationJson: string): string
59
+ export declare function openapiRenderApiPlayground(inputJson: string): string
60
+ export declare function openapiRenderApiReference(apiPageHtml: string, requestExampleHtml: string, codeSamplesHtml: string, responseExampleHtml: string): string
61
+ export declare function openapiRenderApiReferenceShell(): string
62
+ export declare function openapiRenderAsyncChannel(channelName: string, channelJson: string, operationsJson: string, protocol: string): string
63
+ export declare function openapiRenderAsyncMessage(messageJson: string): string
64
+ export declare function openapiRenderCodeSamples(method: string, path: string, samplesJson: string): string
65
+ export declare function openapiRenderCollapsibleSection(title: string, defaultOpen: boolean, slotHtml: string): string
66
+ export declare function openapiRenderMethodBadge(method: string): string
67
+ export declare function openapiRenderParamField(name: string, typeStr: string, required: boolean, deprecated: boolean, defaultValue: string | undefined | null, placeholder: string | undefined | null, slotHtml: string): string
68
+ export declare function openapiRenderRequestExample(method: string, path: string, operationJson: string, baseUrl: string, bodyExample?: string | undefined | null): string
69
+ export declare function openapiRenderResponseExample(tabsJson: string, instanceId?: string | undefined | null): string
70
+ export declare function openapiRenderResponseField(name: string, typeStr: string, required: boolean, deprecated: boolean, slotHtml: string): string
71
+ export declare function openapiRenderSchemaRow(inputJson: string): string
72
+ export declare function openapiRenderSchemaView(schemaJson: string, name: string | undefined | null, required: boolean, depth: number): string
73
+ export declare function openapiResolveBaseUrl(baseUrlProp?: string | undefined | null, specServersFirstUrl?: string | undefined | null): string
74
+ export declare function openapiResolveRefs(specJson: string): string
75
+ export declare function openapiSourceBuild(specJson: string, baseUrl: string): string
76
+ export declare function pluginHook(plugin: string, hook: string, argsJson: string): string | null
77
+ export declare function primitivesColorSwatchScript(): string
78
+ export declare function primitivesColorSwatchStyle(): string
79
+ export declare function primitivesCopyButtonScript(): string
80
+ export declare function primitivesCopyButtonStyle(): string
81
+ export declare function primitivesRenderAccordion(className: string | undefined | null, slotHtml: string): string
82
+ export declare function primitivesRenderAccordionItem(title: string, open: boolean, name: string | undefined | null, slotHtml: string): string
83
+ export declare function primitivesRenderColorSwatch(inputJson: string): string
84
+ export declare function primitivesRenderCopyButton(selector: string | undefined | null, text: string | undefined | null, floating: boolean, className?: string | undefined | null, label?: string | undefined | null): string
85
+ export declare function primitivesRenderImageZoom(src: string, alt: string, width?: number | undefined | null, height?: number | undefined | null, customClass?: string | undefined | null): string
86
+ export declare function primitivesRenderTabPanel(className: string | undefined | null, slotHtml: string): string
87
+ export declare function primitivesRenderTabs(labels: Array<string>, defaultIndex: number, variant: string | undefined | null, className: string | undefined | null, slotHtml: string, id: string): string
88
+ export declare function primitivesRenderTooltip(tip: string, position: string, color: string | undefined | null, open: boolean, className: string | undefined | null, slotHtml: string): string
89
+ export declare function primitivesRenderViewAnimation(slotHtml: string, customClass: string | undefined | null, delayMs: number, once: boolean): string
90
+ export declare function primitivesTabsScript(): string
91
+ export declare function primitivesViewAnimationScript(): string
92
+ export declare function primitivesViewAnimationStyle(): string
93
+ export declare function remarkCollectSections(treeJson: string): string
94
+ export declare function remarkResolveSnippet(snippetDir: string, fileName: string, attrsJson: string): string | null
95
+ export declare function remarkTransformAsides(treeJson: string): string
96
+ export declare function remarkVarsSubstitute(treeJson: string, varsJson: string): string
97
+ export declare function rssGenerateFeed(pagesJson: string, configJson: string): string
98
+ export declare function searchEntryToPage(entryJson: string, optionsJson: string): string
99
+ export declare function searchExtractStructuredData(source: string): string
100
+ export declare function searchReadMetaYaml(basePath: string): string
101
+ export declare function shellAnnouncementBannerScript(): string
102
+ export declare function shellBuildBannerInitScript(storageKey?: string | undefined | null): string
103
+ export declare function shellBuildGlobPattern(collection: string): Array<string>
104
+ export declare function shellBuildHeaders(): string
105
+ export declare function shellBuildLicenseErrorMessage(rawErr: string): string | null
106
+ export declare function shellBuildThemeInitScript(defaultScheme: string, strict: boolean): string
107
+ export declare function shellCacheControl(path: string): string
108
+ export declare function shellCollectTailwindClassTokens(): string
109
+ export declare function shellComposeTailwindEntry(sourceDirsJson: string, katexCssPath?: string | undefined | null): string
110
+ export declare function shellGenerateId(entry: string): string
111
+ export declare function shellInjectBodyScripts(distDir: string, pathnames: Array<string>, scriptsHtml: string): number
112
+ export declare function shellInjectHeadScripts(distDir: string, pathnames: Array<string>, scriptsHtml: string): number
113
+ export declare function shellLazyUpgradeScript(): string
114
+ export declare function shellListThemes(): string
115
+ export declare function shellNavActiveUpdateScript(): string
116
+ export declare function shellOpenInAiScript(): string
117
+ export declare function shellPlanDefaultRoutes(optionsJson: string, hasSiteUrl: boolean, collectionsPresentJson: string): string
118
+ export declare function shellPlanDocsSlug(inputJson: string): string
119
+ export declare function shellPlanRehypePlugins(optionsJson: string, mathEnabled: boolean): string
120
+ export declare function shellPlanRemarkPlugins(optionsJson: string, hasVars: boolean, hasSnippets: boolean, mathEnabled: boolean): string
121
+ export declare function shellRenderAnnouncementBanner(message: string, href: string | undefined | null, variant: string, dismissible: boolean, storageKey: string): string
122
+ export declare function shellRenderAside(asideType: string, title: string | undefined | null, slotHtml: string, titleId: string): string
123
+ export declare function shellRenderBadge(text: string, variant?: string | undefined | null, size?: string | undefined | null, className?: string | undefined | null): string
124
+ export declare function shellRenderBaseLayout(inputJson: string): string
125
+ export declare function shellRenderBlogIndex(inputJson: string): string
126
+ export declare function shellRenderBlogSlug(inputJson: string): string
127
+ export declare function shellRenderBreadcrumbs(itemsJson: string, label?: string | undefined | null, customClass?: string | undefined | null): string
128
+ export declare function shellRenderCard(title: string, variant: string, customClass: string | undefined | null, iconSlotHtml: string | undefined | null, slotHtml: string): string
129
+ export declare function shellRenderCardGrid(minColumnWidth: string, customClass: string | undefined | null, slotHtml: string): string
130
+ export declare function shellRenderChangelogEntry(inputJson: string): string
131
+ export declare function shellRenderChangelogFooter(): string
132
+ export declare function shellRenderChangelogHeader(): string
133
+ export declare function shellRenderCodeGroup(itemsJson: string, syncKey: string | undefined | null, id: string): string
134
+ export declare function shellRenderColumns(cols: number | undefined | null, gap: string | undefined | null, className: string | undefined | null, slotHtml: string): string
135
+ export declare function shellRenderDocsLayout(inputJson: string): string
136
+ export declare function shellRenderDocsSlug(inputJson: string): string
137
+ export declare function shellRenderFileTree(treeJson: string, label: string, customClass?: string | undefined | null): string
138
+ export declare function shellRenderFileTreeNode(entryJson: string): string
139
+ export declare function shellRenderIcon(innerHtml: string, fill: boolean, viewBox: string | undefined | null, strokeWidth: number | undefined | null, size: number, className?: string | undefined | null): string
140
+ export declare function shellRenderLastModified(dateMs: number | undefined | null, nowMs: number, format: string): string
141
+ 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
142
+ 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
143
+ export declare function shellRenderNotFound(): string
144
+ export declare function shellRenderOpenInAi(pageUrl: string, pageTitle: string): string
145
+ export declare function shellRenderPackageInstall(inputJson: string): string
146
+ export declare function shellRenderPanels(inputJson: string): string
147
+ export declare function shellRenderSearchButton(inputJson: string): string
148
+ export declare function shellRenderSidebar(inputJson: string): string
149
+ export declare function shellRenderSkipLink(inputJson: string): string
150
+ export declare function shellRenderSteps(inputJson: string): string
151
+ export declare function shellRenderTableOfContents(inputJson: string): string
152
+ export declare function shellRenderTabs(labelsJson: string, panelsJson: string, defaultIndex: number, syncKey: string | undefined | null, id: string, extraClass?: string | undefined | null): string
153
+ export declare function shellRenderThemeToggle(inputJson: string): string
154
+ export declare function shellRenderTile(inputJson: string): string
155
+ export declare function shellRenderTileGrid(inputJson: string): string
156
+ export declare function shellRenderTopNav(inputJson: string): string
157
+ export declare function shellRenderTopNavMobile(inputJson: string): string
158
+ export declare function shellRenderUpdateBadge(inputJson: string): string
159
+ export declare function shellRenderVersionSwitcher(inputJson: string): string
160
+ export declare function shellResolvePrefetch(userPrefetchJson: string | undefined | null, optionsJson: string): boolean
161
+ export declare function shellResolveSnippetsConfig(optionsJson: string, yamlSnippetsJson: string | undefined | null, autoDetectPresent: boolean): string
162
+ export declare function shellRewriteHead(distDir: string, pathnames: Array<string>): NativeHeadStats
163
+ export declare function shellRewriteModulepreload(distDir: string, pathnames: Array<string>): NativePreloadStats
164
+ export declare function shellSearchButtonScript(): string
165
+ export declare function shellSearchDialogCss(): string
166
+ export declare function shellSearchDialogInnerHtml(): string
167
+ export declare function shellSearchDialogScript(hotkey?: string | undefined | null): string
168
+ export declare function shellSidebarHeightInitScript(): string
169
+ export declare function shellSidebarScrollInitScript(): string
170
+ export declare function shellTableOfContentsScript(): string
171
+ export declare function tailwindComposeThemeCss(presetCss: string, overrideCss: string): string
172
+ export declare function tailwindReadPresetCss(themesDir: string, name: string): string
173
+ export declare function tailwindResolveTheme(json: string): NativeTailwindResolvedTheme
174
+ export declare function verifyLicense(): void