@publier/native 0.19.0 → 0.20.0

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/dist/index.d.mts CHANGED
@@ -33,66 +33,6 @@ interface AnalyticsProvider {
33
33
  }
34
34
  export declare function generateAnalyticsScripts(analytics: AnalyticsProvider): string;
35
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
36
  interface LlmsPage {
97
37
  url: string;
98
38
  title: string;
@@ -106,32 +46,6 @@ interface LlmsOptions {
106
46
  collections?: string[];
107
47
  }
108
48
  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
49
  export declare const TOGGLEABLE_PAGES: readonly ['docs', 'blog', 'landing', 'press', 'about', 'team', 'contact', 'careers', 'changelog', 'status', 'knowledge-base', '404'];
136
50
  type ToggleablePage = (typeof TOGGLEABLE_PAGES)[number];
137
51
  type PagesToggleMap = Partial<Record<ToggleablePage, boolean>>;
@@ -238,58 +152,71 @@ export declare function resolvePublierConfig(input: unknown): {
238
152
  errors: ConfigValidationError[];
239
153
  };
240
154
  export declare function shouldRenderPage(page: ToggleablePage, pages: PagesToggleMap, defaultForTemplate: boolean): boolean;
241
- interface RobotsOptions {
242
- siteUrl?: string;
243
- content?: string;
155
+ interface Page {
156
+ slug: string[];
157
+ url: string;
158
+ filePath: string;
159
+ frontmatter: {
160
+ title: string;
161
+ description?: string;
162
+ order?: number;
163
+ icon?: string;
164
+ [key: string]: unknown;
165
+ };
166
+ toc: TocEntry[];
167
+ structuredData: StructuredSection[];
168
+ lastModified?: string;
169
+ bodyHtml?: string;
170
+ locale?: string;
244
171
  }
245
- export declare function generateRobotsTxt(options?: RobotsOptions): string;
246
- export declare function filterPublishedPages(pages: Page[]): Page[];
247
- interface RssFeedConfig {
172
+ interface TocEntry {
173
+ depth: number;
248
174
  title: string;
249
- description: string;
250
- siteUrl: string;
251
- feedUrl: string;
252
- language?: string;
253
- buildDate?: Date;
254
- }
255
- export declare function generateRssFeed(pages: Page[], config: RssFeedConfig): string;
256
- interface SkillPage {
175
+ url: string;
176
+ }
177
+ interface StructuredSection {
178
+ heading?: string;
179
+ content: string;
180
+ }
181
+ interface PageTreeNode {
182
+ type: 'page';
257
183
  title: string;
258
- path: string;
259
- description?: string;
184
+ url: string;
185
+ badge?: {
186
+ label: string;
187
+ variant?: string;
188
+ };
189
+ }
190
+ interface FolderTreeNode {
191
+ type: 'folder';
192
+ title: string;
193
+ children: TreeNode[];
194
+ defaultOpen?: boolean;
195
+ }
196
+ type TreeNode = PageTreeNode | FolderTreeNode;
197
+ interface PageTree {
198
+ root: TreeNode[];
260
199
  }
261
- interface SkillMdOptions {
262
- siteTitle: string;
263
- siteDescription: string;
264
- siteUrl: string;
265
- pages?: SkillPage[];
266
- apiBaseUrl?: string;
267
- supportUrl?: string;
200
+ interface ContentSource {
201
+ getPage(slug: string[]): Promise<Page | undefined>;
202
+ getPages(): Promise<Page[]>;
203
+ getPageTree(): Promise<PageTree>;
204
+ generateParams(): Promise<{
205
+ slug: string[];
206
+ }[]>;
268
207
  }
269
- export declare function generateSkillMd(options: SkillMdOptions): string;
270
- export declare function getSlug(filePath: string, baseDir: string): string;
271
208
  declare namespace index_d_exports {
272
- 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, shellCheckChangelog$1 as shellCheckChangelog, 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, shellRenderChangelogPage$1 as shellRenderChangelogPage, shellRenderCodeGroup$1 as shellRenderCodeGroup, shellRenderColumns$1 as shellRenderColumns, shellRenderDeprecationsPage$1 as shellRenderDeprecationsPage, 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, shellRenderProductDirectory$1 as shellRenderProductDirectory, 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 };
209
+ export { NativeHeadStats, NativePreloadStats, NativeTailwindResolvedTheme, NativeTailwindThemeError, __napiBindingTarget, analyticsGenerateBodyScripts$1 as analyticsGenerateBodyScripts, analyticsGenerateScripts$1 as analyticsGenerateScripts, asyncapiSourceBuild$1 as asyncapiSourceBuild, buildHook$1 as buildHook, configResolvePublierConfig$1 as configResolvePublierConfig, configResolveShellConfig$1 as configResolveShellConfig, configShouldRenderPage$1 as configShouldRenderPage, contentGenerateLlmsTxt$1 as contentGenerateLlmsTxt, navigationActiveIndex$1 as navigationActiveIndex, navigationBuildSidebar$1 as navigationBuildSidebar, navigationMatchNavPath$1 as navigationMatchNavPath, openapiBuildInstanceId$1 as openapiBuildInstanceId, openapiExtractEndpoints$1 as openapiExtractEndpoints, openapiGenerateFiles$1 as openapiGenerateFiles, openapiMergeSpecs$1 as openapiMergeSpecs, openapiNavigationBuild$1 as openapiNavigationBuild, openapiParseAsyncApiSpec$1 as openapiParseAsyncApiSpec, 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, 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, remarkResolveSnippet$1 as remarkResolveSnippet, remarkTransformAsides$1 as remarkTransformAsides, remarkVarsSubstitute$1 as remarkVarsSubstitute, searchEntryToPage$1 as searchEntryToPage, 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, shellCheckChangelog$1 as shellCheckChangelog, 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, shellRenderChangelogPage$1 as shellRenderChangelogPage, shellRenderCodeGroup$1 as shellRenderCodeGroup, shellRenderColumns$1 as shellRenderColumns, shellRenderDeprecationsPage$1 as shellRenderDeprecationsPage, 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, shellRenderProductDirectory$1 as shellRenderProductDirectory, 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 };
273
210
  }
274
211
  declare const __napiBindingTarget: 'native' | 'wasm32-wasi' | 'wasm32-wasip1';
275
212
  declare function analyticsGenerateBodyScripts$1(analyticsJson: string): string;
276
213
  declare function analyticsGenerateScripts$1(analyticsJson: string): string;
277
214
  declare function asyncapiSourceBuild$1(specJson: string, baseUrl: string): string;
278
- declare function blogFilterByTag$1(pagesJson: string, tag: string): string;
279
- declare function blogFilterPublished$1(pagesJson: string): string;
280
- declare function blogReadingTime$1(structuredJson: string): number;
281
- declare function blogSortByDate$1(pagesJson: string): string;
282
- declare function blogTagCounts$1(pagesJson: string): string;
283
215
  declare function buildHook$1(event: string, argsJson: string): string | null;
284
216
  declare function configResolvePublierConfig$1(inputJson: string): string;
285
217
  declare function configResolveShellConfig$1(yaml: string): string;
286
218
  declare function configShouldRenderPage$1(page: string, pagesJson: string, defaultForTemplate: boolean): boolean;
287
219
  declare function contentGenerateLlmsTxt$1(optionsJson: string): string;
288
- declare function contentGenerateOgImageMarkup$1(optionsJson: string): string;
289
- declare function contentGenerateRobotsTxt$1(optionsJson: string): string;
290
- declare function contentGenerateSkillMd$1(optionsJson: string): string;
291
- declare function contentGenerateTwitterMeta$1(optionsJson: string): string;
292
- declare function contentGetSlug$1(filePath: string, baseDir: string): string;
293
220
  interface NativeHeadStats {
294
221
  stylesheetsCount: number;
295
222
  modulesCount: number;
@@ -316,18 +243,12 @@ interface NativeTailwindThemeError {
316
243
  declare function navigationActiveIndex$1(entriesJson: string, currentPath: string): number;
317
244
  declare function navigationBuildSidebar$1(pagesJson: string, optionsJson: string): string;
318
245
  declare function navigationMatchNavPath$1(pathRulesJson: string, pathname: string): string;
319
- declare function openapiBuildCustomSampleMap$1(customSamplesJson: string): string;
320
246
  declare function openapiBuildInstanceId$1(method: string, path: string): string;
321
- declare function openapiDecodePlaceholders$1(source: string): string;
322
247
  declare function openapiExtractEndpoints$1(specJson: string, mergePathParameters: boolean, includeWebhooks: boolean): string;
323
248
  declare function openapiGenerateFiles$1(specJson: string, outputDir: string, groupBy: string, per: string, clean: boolean): string;
324
- declare function openapiGetMediaTypeExample$1(contentJson: string, mediaType: string): string | null;
325
- declare function openapiGetSnippetClient$1(lang: string): Array<string> | null;
326
- declare function openapiHarFromOperation$1(method: string, path: string, operationJson: string, baseUrl: string): string;
327
249
  declare function openapiMergeSpecs$1(specsJson: string): string;
328
250
  declare function openapiNavigationBuild$1(specJson: string, groupBy: string, slugPrefix: string | undefined | null, excludeDeprecated: boolean, includeWebhooks: boolean): string;
329
251
  declare function openapiParseAsyncApiSpec$1(jsonInput: string): string;
330
- declare function openapiParseOpenapiSpec$1(jsonInput: string): string;
331
252
  declare function openapiRenderApiPage$1(method: string, path: string, operationJson: string): string;
332
253
  declare function openapiRenderApiPlayground$1(inputJson: string): string;
333
254
  declare function openapiRenderApiReference$1(apiPageHtml: string, requestExampleHtml: string, codeSamplesHtml: string, responseExampleHtml: string): string;
@@ -344,7 +265,6 @@ declare function openapiRenderResponseField$1(name: string, typeStr: string, req
344
265
  declare function openapiRenderSchemaRow$1(inputJson: string): string;
345
266
  declare function openapiRenderSchemaView$1(schemaJson: string, name: string | undefined | null, required: boolean, depth: number): string;
346
267
  declare function openapiResolveBaseUrl$1(baseUrlProp?: string | undefined | null, specServersFirstUrl?: string | undefined | null): string;
347
- declare function openapiResolveRefs$1(specJson: string): string;
348
268
  declare function openapiSourceBuild$1(specJson: string, baseUrl: string): string;
349
269
  declare function pluginHook$1(plugin: string, hook: string, argsJson: string): string | null;
350
270
  declare function primitivesColorSwatchScript$1(): string;
@@ -363,13 +283,10 @@ declare function primitivesRenderViewAnimation$1(slotHtml: string, customClass:
363
283
  declare function primitivesTabsScript$1(): string;
364
284
  declare function primitivesViewAnimationScript$1(): string;
365
285
  declare function primitivesViewAnimationStyle$1(): string;
366
- declare function remarkCollectSections$1(treeJson: string): string;
367
286
  declare function remarkResolveSnippet$1(snippetDir: string, fileName: string, attrsJson: string): string | null;
368
287
  declare function remarkTransformAsides$1(treeJson: string): string;
369
288
  declare function remarkVarsSubstitute$1(treeJson: string, varsJson: string): string;
370
- declare function rssGenerateFeed$1(pagesJson: string, configJson: string): string;
371
289
  declare function searchEntryToPage$1(entryJson: string, optionsJson: string): string;
372
- declare function searchExtractStructuredData$1(source: string): string;
373
290
  declare function searchReadMetaYaml$1(basePath: string): string;
374
291
  declare function shellAnnouncementBannerScript$1(): string;
375
292
  declare function shellBuildBannerInitScript$1(storageKey?: string | undefined | null): string;
@@ -453,36 +370,20 @@ declare const native: typeof index_d_exports;
453
370
  export declare const analyticsGenerateBodyScripts: typeof analyticsGenerateBodyScripts$1;
454
371
  export declare const analyticsGenerateScripts: typeof analyticsGenerateScripts$1;
455
372
  export declare const asyncapiSourceBuild: typeof asyncapiSourceBuild$1;
456
- export declare const blogFilterByTag: typeof blogFilterByTag$1;
457
- export declare const blogFilterPublished: typeof blogFilterPublished$1;
458
- export declare const blogReadingTime: typeof blogReadingTime$1;
459
- export declare const blogSortByDate: typeof blogSortByDate$1;
460
- export declare const blogTagCounts: typeof blogTagCounts$1;
461
373
  export declare const buildHook: typeof buildHook$1;
462
374
  export declare const configResolvePublierConfig: typeof configResolvePublierConfig$1;
463
375
  export declare const configResolveShellConfig: typeof configResolveShellConfig$1;
464
376
  export declare const configShouldRenderPage: typeof configShouldRenderPage$1;
465
377
  export declare const contentGenerateLlmsTxt: typeof contentGenerateLlmsTxt$1;
466
- export declare const contentGenerateOgImageMarkup: typeof contentGenerateOgImageMarkup$1;
467
- export declare const contentGenerateRobotsTxt: typeof contentGenerateRobotsTxt$1;
468
- export declare const contentGenerateSkillMd: typeof contentGenerateSkillMd$1;
469
- export declare const contentGenerateTwitterMeta: typeof contentGenerateTwitterMeta$1;
470
- export declare const contentGetSlug: typeof contentGetSlug$1;
471
378
  export declare const navigationActiveIndex: typeof navigationActiveIndex$1;
472
379
  export declare const navigationBuildSidebar: typeof navigationBuildSidebar$1;
473
380
  export declare const navigationMatchNavPath: typeof navigationMatchNavPath$1;
474
- export declare const openapiBuildCustomSampleMap: typeof openapiBuildCustomSampleMap$1;
475
381
  export declare const openapiBuildInstanceId: typeof openapiBuildInstanceId$1;
476
- export declare const openapiDecodePlaceholders: typeof openapiDecodePlaceholders$1;
477
382
  export declare const openapiExtractEndpoints: typeof openapiExtractEndpoints$1;
478
383
  export declare const openapiGenerateFiles: typeof openapiGenerateFiles$1;
479
- export declare const openapiGetMediaTypeExample: typeof openapiGetMediaTypeExample$1;
480
- export declare const openapiGetSnippetClient: typeof openapiGetSnippetClient$1;
481
- export declare const openapiHarFromOperation: typeof openapiHarFromOperation$1;
482
384
  export declare const openapiMergeSpecs: typeof openapiMergeSpecs$1;
483
385
  export declare const openapiNavigationBuild: typeof openapiNavigationBuild$1;
484
386
  export declare const openapiParseAsyncApiSpec: typeof openapiParseAsyncApiSpec$1;
485
- export declare const openapiParseOpenapiSpec: typeof openapiParseOpenapiSpec$1;
486
387
  export declare const openapiRenderApiPage: typeof openapiRenderApiPage$1;
487
388
  export declare const openapiRenderApiPlayground: typeof openapiRenderApiPlayground$1;
488
389
  export declare const openapiRenderApiReference: typeof openapiRenderApiReference$1;
@@ -499,7 +400,6 @@ export declare const openapiRenderResponseField: typeof openapiRenderResponseFie
499
400
  export declare const openapiRenderSchemaRow: typeof openapiRenderSchemaRow$1;
500
401
  export declare const openapiRenderSchemaView: typeof openapiRenderSchemaView$1;
501
402
  export declare const openapiResolveBaseUrl: typeof openapiResolveBaseUrl$1;
502
- export declare const openapiResolveRefs: typeof openapiResolveRefs$1;
503
403
  export declare const openapiSourceBuild: typeof openapiSourceBuild$1;
504
404
  export declare const pluginHook: typeof pluginHook$1;
505
405
  export declare const primitivesColorSwatchScript: typeof primitivesColorSwatchScript$1;
@@ -518,13 +418,10 @@ export declare const primitivesRenderViewAnimation: typeof primitivesRenderViewA
518
418
  export declare const primitivesTabsScript: typeof primitivesTabsScript$1;
519
419
  export declare const primitivesViewAnimationScript: typeof primitivesViewAnimationScript$1;
520
420
  export declare const primitivesViewAnimationStyle: typeof primitivesViewAnimationStyle$1;
521
- export declare const remarkCollectSections: typeof remarkCollectSections$1;
522
421
  export declare const remarkResolveSnippet: typeof remarkResolveSnippet$1;
523
422
  export declare const remarkTransformAsides: typeof remarkTransformAsides$1;
524
423
  export declare const remarkVarsSubstitute: typeof remarkVarsSubstitute$1;
525
- export declare const rssGenerateFeed: typeof rssGenerateFeed$1;
526
424
  export declare const searchEntryToPage: typeof searchEntryToPage$1;
527
- export declare const searchExtractStructuredData: typeof searchExtractStructuredData$1;
528
425
  export declare const searchReadMetaYaml: typeof searchReadMetaYaml$1;
529
426
  export declare const shellAnnouncementBannerScript: typeof shellAnnouncementBannerScript$1;
530
427
  export declare const shellBuildBannerInitScript: typeof shellBuildBannerInitScript$1;
@@ -604,4 +501,4 @@ export declare const tailwindComposeThemeCss: typeof tailwindComposeThemeCss$1;
604
501
  export declare const tailwindReadPresetCss: typeof tailwindReadPresetCss$1;
605
502
  export declare const tailwindResolveTheme: typeof tailwindResolveTheme$1;
606
503
  export declare const verifyLicense: typeof verifyLicense$1;
607
- 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 };
504
+ 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 Page, type PageTree, type PageTreeNode, type PagesToggleMap, type PlausibleConfig, type PosthogConfig, type PressConfig, type PublierConfig, type RobotsConfig, type RssConfig, type SearchConfig, type SidebarConfig, type StructuredSection, type TocEntry, type ToggleablePage, type TreeNode, type UmamiConfig, native as default };
package/dist/index.mjs CHANGED
@@ -1,5 +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(
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,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.shellCheckChangelog,tt=t.shellCollectTailwindClassTokens,nt=t.shellComposeTailwindEntry,rt=t.shellGenerateId,it=t.shellInjectBodyScripts,at=t.shellInjectHeadScripts,ot=t.shellLazyUpgradeScript,st=t.shellListThemes,ct=t.shellNavActiveUpdateScript,lt=t.shellOpenInAiScript,ut=t.shellPlanDefaultRoutes,dt=t.shellPlanDocsSlug,ft=t.shellPlanRehypePlugins,pt=t.shellPlanRemarkPlugins,mt=t.shellRenderAnnouncementBanner,ht=t.shellRenderAside,gt=t.shellRenderBadge,_t=t.shellRenderBaseLayout,vt=t.shellRenderBlogIndex,yt=t.shellRenderBlogSlug,bt=t.shellRenderBreadcrumbs,xt=t.shellRenderCard,St=t.shellRenderCardGrid,Ct=t.shellRenderChangelogEntry,wt=t.shellRenderChangelogFooter,Tt=t.shellRenderChangelogHeader,Et=t.shellRenderChangelogPage,Dt=t.shellRenderCodeGroup,Ot=t.shellRenderColumns,kt=t.shellRenderDeprecationsPage,At=t.shellRenderDocsLayout,jt=t.shellRenderDocsSlug,Mt=t.shellRenderFileTree,Nt=t.shellRenderFileTreeNode,Pt=t.shellRenderIcon,Ft=t.shellRenderLastModified,It=t.shellRenderLinkButton,Lt=t.shellRenderLinkCard,Rt=t.shellRenderNotFound,zt=t.shellRenderOpenInAi,Bt=t.shellRenderPackageInstall,Vt=t.shellRenderPanels,Ht=t.shellRenderProductDirectory,Ut=t.shellRenderSearchButton,Wt=t.shellRenderSidebar,Gt=t.shellRenderSkipLink,Kt=t.shellRenderSteps,qt=t.shellRenderTableOfContents,Jt=t.shellRenderTabs,Yt=t.shellRenderThemeToggle,Xt=t.shellRenderTile,Zt=t.shellRenderTileGrid,Qt=t.shellRenderTopNav,$t=t.shellRenderTopNavMobile,en=t.shellRenderUpdateBadge,tn=t.shellRenderVersionSwitcher,nn=t.shellResolvePrefetch,rn=t.shellResolveSnippetsConfig,an=t.shellRewriteHead,on=t.shellRewriteModulepreload,sn=t.shellSearchButtonScript,cn=t.shellSearchDialogCss,ln=t.shellSearchDialogInnerHtml,un=t.shellSearchDialogScript,dn=t.shellSidebarHeightInitScript,fn=t.shellSidebarScrollInitScript,pn=t.shellTableOfContentsScript,mn=t.tailwindComposeThemeCss,hn=t.tailwindReadPresetCss,gn=t.tailwindResolveTheme,_n=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,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 shellCheckChangelog,tt as shellCollectTailwindClassTokens,nt as shellComposeTailwindEntry,rt as shellGenerateId,it as shellInjectBodyScripts,at as shellInjectHeadScripts,ot as shellLazyUpgradeScript,st as shellListThemes,ct as shellNavActiveUpdateScript,lt as shellOpenInAiScript,ut as shellPlanDefaultRoutes,dt as shellPlanDocsSlug,ft as shellPlanRehypePlugins,pt as shellPlanRemarkPlugins,mt as shellRenderAnnouncementBanner,ht as shellRenderAside,gt as shellRenderBadge,_t as shellRenderBaseLayout,vt as shellRenderBlogIndex,yt as shellRenderBlogSlug,bt as shellRenderBreadcrumbs,xt as shellRenderCard,St as shellRenderCardGrid,Ct as shellRenderChangelogEntry,wt as shellRenderChangelogFooter,Tt as shellRenderChangelogHeader,Et as shellRenderChangelogPage,Dt as shellRenderCodeGroup,Ot as shellRenderColumns,kt as shellRenderDeprecationsPage,At as shellRenderDocsLayout,jt as shellRenderDocsSlug,Mt as shellRenderFileTree,Nt as shellRenderFileTreeNode,Pt as shellRenderIcon,Ft as shellRenderLastModified,It as shellRenderLinkButton,Lt as shellRenderLinkCard,Rt as shellRenderNotFound,zt as shellRenderOpenInAi,Bt as shellRenderPackageInstall,Vt as shellRenderPanels,Ht as shellRenderProductDirectory,Ut as shellRenderSearchButton,Wt as shellRenderSidebar,Gt as shellRenderSkipLink,Kt as shellRenderSteps,qt as shellRenderTableOfContents,Jt as shellRenderTabs,Yt as shellRenderThemeToggle,Xt as shellRenderTile,Zt as shellRenderTileGrid,Qt as shellRenderTopNav,$t as shellRenderTopNavMobile,en as shellRenderUpdateBadge,tn as shellRenderVersionSwitcher,nn as shellResolvePrefetch,rn as shellResolveSnippetsConfig,an as shellRewriteHead,on as shellRewriteModulepreload,sn as shellSearchButtonScript,cn as shellSearchDialogCss,ln as shellSearchDialogInnerHtml,un as shellSearchDialogScript,dn as shellSidebarHeightInitScript,fn as shellSidebarScrollInitScript,pn as shellTableOfContentsScript,g as shouldRenderPage,i as sortByDate,mn as tailwindComposeThemeCss,hn as tailwindReadPresetCss,gn as tailwindResolveTheme,_n as verifyLicense};
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 ee(e){return t.contentGenerateLlmsTxt(JSON.stringify(e))}const te=[`docs`,`blog`,`landing`,`press`,`about`,`team`,`contact`,`careers`,`changelog`,`status`,`knowledge-base`,`404`],i=[`system`,`light`,`dark`];function a(e){return JSON.parse(t.configResolvePublierConfig(JSON.stringify(e)??`null`))}function o(e,n,r){return t.configShouldRenderPage(e,JSON.stringify(n),r)}var s=t;const c=t.analyticsGenerateBodyScripts,l=t.analyticsGenerateScripts,u=t.asyncapiSourceBuild,d=t.buildHook,f=t.configResolvePublierConfig,p=t.configResolveShellConfig,m=t.configShouldRenderPage,h=t.contentGenerateLlmsTxt,g=t.navigationActiveIndex,_=t.navigationBuildSidebar,v=t.navigationMatchNavPath,y=t.openapiBuildInstanceId,b=t.openapiExtractEndpoints,x=t.openapiGenerateFiles,S=t.openapiMergeSpecs,C=t.openapiNavigationBuild,w=t.openapiParseAsyncApiSpec,T=t.openapiRenderApiPage,E=t.openapiRenderApiPlayground,D=t.openapiRenderApiReference,O=t.openapiRenderApiReferenceShell,k=t.openapiRenderAsyncChannel,A=t.openapiRenderAsyncMessage,j=t.openapiRenderCodeSamples,M=t.openapiRenderCollapsibleSection,N=t.openapiRenderMethodBadge,P=t.openapiRenderParamField,F=t.openapiRenderRequestExample,I=t.openapiRenderResponseExample,L=t.openapiRenderResponseField,R=t.openapiRenderSchemaRow,z=t.openapiRenderSchemaView,B=t.openapiResolveBaseUrl,V=t.openapiSourceBuild,H=t.pluginHook,U=t.primitivesColorSwatchScript,W=t.primitivesColorSwatchStyle,G=t.primitivesCopyButtonScript,K=t.primitivesCopyButtonStyle,q=t.primitivesRenderAccordion,J=t.primitivesRenderAccordionItem,Y=t.primitivesRenderColorSwatch,X=t.primitivesRenderCopyButton,Z=t.primitivesRenderImageZoom,Q=t.primitivesRenderTabPanel,ne=t.primitivesRenderTabs,re=t.primitivesRenderTooltip,ie=t.primitivesRenderViewAnimation,ae=t.primitivesTabsScript,oe=t.primitivesViewAnimationScript,se=t.primitivesViewAnimationStyle,ce=t.remarkResolveSnippet,le=t.remarkTransformAsides,ue=t.remarkVarsSubstitute,de=t.searchEntryToPage,fe=t.searchReadMetaYaml,pe=t.shellAnnouncementBannerScript,me=t.shellBuildBannerInitScript,he=t.shellBuildGlobPattern,ge=t.shellBuildHeaders,_e=t.shellBuildLicenseErrorMessage,ve=t.shellBuildThemeInitScript,ye=t.shellCacheControl,be=t.shellCheckChangelog,xe=t.shellCollectTailwindClassTokens,Se=t.shellComposeTailwindEntry,Ce=t.shellGenerateId,we=t.shellInjectBodyScripts,Te=t.shellInjectHeadScripts,Ee=t.shellLazyUpgradeScript,$=t.shellListThemes,De=t.shellNavActiveUpdateScript,Oe=t.shellOpenInAiScript,ke=t.shellPlanDefaultRoutes,Ae=t.shellPlanDocsSlug,je=t.shellPlanRehypePlugins,Me=t.shellPlanRemarkPlugins,Ne=t.shellRenderAnnouncementBanner,Pe=t.shellRenderAside,Fe=t.shellRenderBadge,Ie=t.shellRenderBaseLayout,Le=t.shellRenderBlogIndex,Re=t.shellRenderBlogSlug,ze=t.shellRenderBreadcrumbs,Be=t.shellRenderCard,Ve=t.shellRenderCardGrid,He=t.shellRenderChangelogEntry,Ue=t.shellRenderChangelogFooter,We=t.shellRenderChangelogHeader,Ge=t.shellRenderChangelogPage,Ke=t.shellRenderCodeGroup,qe=t.shellRenderColumns,Je=t.shellRenderDeprecationsPage,Ye=t.shellRenderDocsLayout,Xe=t.shellRenderDocsSlug,Ze=t.shellRenderFileTree,Qe=t.shellRenderFileTreeNode,$e=t.shellRenderIcon,et=t.shellRenderLastModified,tt=t.shellRenderLinkButton,nt=t.shellRenderLinkCard,rt=t.shellRenderNotFound,it=t.shellRenderOpenInAi,at=t.shellRenderPackageInstall,ot=t.shellRenderPanels,st=t.shellRenderProductDirectory,ct=t.shellRenderSearchButton,lt=t.shellRenderSidebar,ut=t.shellRenderSkipLink,dt=t.shellRenderSteps,ft=t.shellRenderTableOfContents,pt=t.shellRenderTabs,mt=t.shellRenderThemeToggle,ht=t.shellRenderTile,gt=t.shellRenderTileGrid,_t=t.shellRenderTopNav,vt=t.shellRenderTopNavMobile,yt=t.shellRenderUpdateBadge,bt=t.shellRenderVersionSwitcher,xt=t.shellResolvePrefetch,St=t.shellResolveSnippetsConfig,Ct=t.shellRewriteHead,wt=t.shellRewriteModulepreload,Tt=t.shellSearchButtonScript,Et=t.shellSearchDialogCss,Dt=t.shellSearchDialogInnerHtml,Ot=t.shellSearchDialogScript,kt=t.shellSidebarHeightInitScript,At=t.shellSidebarScrollInitScript,jt=t.shellTableOfContentsScript,Mt=t.tailwindComposeThemeCss,Nt=t.tailwindReadPresetCss,Pt=t.tailwindResolveTheme,Ft=t.verifyLicense;export{i as APPEARANCE_DEFAULTS,te as TOGGLEABLE_PAGES,c as analyticsGenerateBodyScripts,l as analyticsGenerateScripts,u as asyncapiSourceBuild,d as buildHook,f as configResolvePublierConfig,p as configResolveShellConfig,m as configShouldRenderPage,h as contentGenerateLlmsTxt,s as default,r as generateAnalyticsBodyScripts,n as generateAnalyticsScripts,ee as generateLlmsTxt,g as navigationActiveIndex,_ as navigationBuildSidebar,v as navigationMatchNavPath,y as openapiBuildInstanceId,b as openapiExtractEndpoints,x as openapiGenerateFiles,S as openapiMergeSpecs,C as openapiNavigationBuild,w as openapiParseAsyncApiSpec,T as openapiRenderApiPage,E as openapiRenderApiPlayground,D as openapiRenderApiReference,O as openapiRenderApiReferenceShell,k as openapiRenderAsyncChannel,A as openapiRenderAsyncMessage,j as openapiRenderCodeSamples,M as openapiRenderCollapsibleSection,N as openapiRenderMethodBadge,P as openapiRenderParamField,F as openapiRenderRequestExample,I as openapiRenderResponseExample,L as openapiRenderResponseField,R as openapiRenderSchemaRow,z as openapiRenderSchemaView,B as openapiResolveBaseUrl,V as openapiSourceBuild,H as pluginHook,U as primitivesColorSwatchScript,W as primitivesColorSwatchStyle,G as primitivesCopyButtonScript,K as primitivesCopyButtonStyle,q as primitivesRenderAccordion,J as primitivesRenderAccordionItem,Y as primitivesRenderColorSwatch,X as primitivesRenderCopyButton,Z as primitivesRenderImageZoom,Q as primitivesRenderTabPanel,ne as primitivesRenderTabs,re as primitivesRenderTooltip,ie as primitivesRenderViewAnimation,ae as primitivesTabsScript,oe as primitivesViewAnimationScript,se as primitivesViewAnimationStyle,ce as remarkResolveSnippet,le as remarkTransformAsides,ue as remarkVarsSubstitute,a as resolvePublierConfig,de as searchEntryToPage,fe as searchReadMetaYaml,pe as shellAnnouncementBannerScript,me as shellBuildBannerInitScript,he as shellBuildGlobPattern,ge as shellBuildHeaders,_e as shellBuildLicenseErrorMessage,ve as shellBuildThemeInitScript,ye as shellCacheControl,be as shellCheckChangelog,xe as shellCollectTailwindClassTokens,Se as shellComposeTailwindEntry,Ce as shellGenerateId,we as shellInjectBodyScripts,Te as shellInjectHeadScripts,Ee as shellLazyUpgradeScript,$ as shellListThemes,De as shellNavActiveUpdateScript,Oe as shellOpenInAiScript,ke as shellPlanDefaultRoutes,Ae as shellPlanDocsSlug,je as shellPlanRehypePlugins,Me as shellPlanRemarkPlugins,Ne as shellRenderAnnouncementBanner,Pe as shellRenderAside,Fe as shellRenderBadge,Ie as shellRenderBaseLayout,Le as shellRenderBlogIndex,Re as shellRenderBlogSlug,ze as shellRenderBreadcrumbs,Be as shellRenderCard,Ve as shellRenderCardGrid,He as shellRenderChangelogEntry,Ue as shellRenderChangelogFooter,We as shellRenderChangelogHeader,Ge as shellRenderChangelogPage,Ke as shellRenderCodeGroup,qe as shellRenderColumns,Je as shellRenderDeprecationsPage,Ye as shellRenderDocsLayout,Xe as shellRenderDocsSlug,Ze as shellRenderFileTree,Qe as shellRenderFileTreeNode,$e as shellRenderIcon,et as shellRenderLastModified,tt as shellRenderLinkButton,nt as shellRenderLinkCard,rt as shellRenderNotFound,it as shellRenderOpenInAi,at as shellRenderPackageInstall,ot as shellRenderPanels,st as shellRenderProductDirectory,ct as shellRenderSearchButton,lt as shellRenderSidebar,ut as shellRenderSkipLink,dt as shellRenderSteps,ft as shellRenderTableOfContents,pt as shellRenderTabs,mt as shellRenderThemeToggle,ht as shellRenderTile,gt as shellRenderTileGrid,_t as shellRenderTopNav,vt as shellRenderTopNavMobile,yt as shellRenderUpdateBadge,bt as shellRenderVersionSwitcher,xt as shellResolvePrefetch,St as shellResolveSnippetsConfig,Ct as shellRewriteHead,wt as shellRewriteModulepreload,Tt as shellSearchButtonScript,Et as shellSearchDialogCss,Dt as shellSearchDialogInnerHtml,Ot as shellSearchDialogScript,kt as shellSidebarHeightInitScript,At as shellSidebarScrollInitScript,jt as shellTableOfContentsScript,o as shouldRenderPage,Mt as tailwindComposeThemeCss,Nt as tailwindReadPresetCss,Pt as tailwindResolveTheme,Ft as verifyLicense};
package/index.d.ts CHANGED
@@ -2,21 +2,11 @@ export declare const __napiBindingTarget: 'native' | 'wasm32-wasi' | 'wasm32-was
2
2
  export declare function analyticsGenerateBodyScripts(analyticsJson: string): string
3
3
  export declare function analyticsGenerateScripts(analyticsJson: string): string
4
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
5
  export declare function buildHook(event: string, argsJson: string): string | null
11
6
  export declare function configResolvePublierConfig(inputJson: string): string
12
7
  export declare function configResolveShellConfig(yaml: string): string
13
8
  export declare function configShouldRenderPage(page: string, pagesJson: string, defaultForTemplate: boolean): boolean
14
9
  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
10
  export interface NativeHeadStats {
21
11
  stylesheetsCount: number
22
12
  modulesCount: number
@@ -43,18 +33,12 @@ export interface NativeTailwindThemeError {
43
33
  export declare function navigationActiveIndex(entriesJson: string, currentPath: string): number
44
34
  export declare function navigationBuildSidebar(pagesJson: string, optionsJson: string): string
45
35
  export declare function navigationMatchNavPath(pathRulesJson: string, pathname: string): string
46
- export declare function openapiBuildCustomSampleMap(customSamplesJson: string): string
47
36
  export declare function openapiBuildInstanceId(method: string, path: string): string
48
- export declare function openapiDecodePlaceholders(source: string): string
49
37
  export declare function openapiExtractEndpoints(specJson: string, mergePathParameters: boolean, includeWebhooks: boolean): string
50
38
  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
39
  export declare function openapiMergeSpecs(specsJson: string): string
55
40
  export declare function openapiNavigationBuild(specJson: string, groupBy: string, slugPrefix: string | undefined | null, excludeDeprecated: boolean, includeWebhooks: boolean): string
56
41
  export declare function openapiParseAsyncApiSpec(jsonInput: string): string
57
- export declare function openapiParseOpenapiSpec(jsonInput: string): string
58
42
  export declare function openapiRenderApiPage(method: string, path: string, operationJson: string): string
59
43
  export declare function openapiRenderApiPlayground(inputJson: string): string
60
44
  export declare function openapiRenderApiReference(apiPageHtml: string, requestExampleHtml: string, codeSamplesHtml: string, responseExampleHtml: string): string
@@ -71,7 +55,6 @@ export declare function openapiRenderResponseField(name: string, typeStr: string
71
55
  export declare function openapiRenderSchemaRow(inputJson: string): string
72
56
  export declare function openapiRenderSchemaView(schemaJson: string, name: string | undefined | null, required: boolean, depth: number): string
73
57
  export declare function openapiResolveBaseUrl(baseUrlProp?: string | undefined | null, specServersFirstUrl?: string | undefined | null): string
74
- export declare function openapiResolveRefs(specJson: string): string
75
58
  export declare function openapiSourceBuild(specJson: string, baseUrl: string): string
76
59
  export declare function pluginHook(plugin: string, hook: string, argsJson: string): string | null
77
60
  export declare function primitivesColorSwatchScript(): string
@@ -90,13 +73,10 @@ export declare function primitivesRenderViewAnimation(slotHtml: string, customCl
90
73
  export declare function primitivesTabsScript(): string
91
74
  export declare function primitivesViewAnimationScript(): string
92
75
  export declare function primitivesViewAnimationStyle(): string
93
- export declare function remarkCollectSections(treeJson: string): string
94
76
  export declare function remarkResolveSnippet(snippetDir: string, fileName: string, attrsJson: string): string | null
95
77
  export declare function remarkTransformAsides(treeJson: string): string
96
78
  export declare function remarkVarsSubstitute(treeJson: string, varsJson: string): string
97
- export declare function rssGenerateFeed(pagesJson: string, configJson: string): string
98
79
  export declare function searchEntryToPage(entryJson: string, optionsJson: string): string
99
- export declare function searchExtractStructuredData(source: string): string
100
80
  export declare function searchReadMetaYaml(basePath: string): string
101
81
  export declare function shellAnnouncementBannerScript(): string
102
82
  export declare function shellBuildBannerInitScript(storageKey?: string | undefined | null): string
package/index.js CHANGED
@@ -93,8 +93,8 @@ function requireNative() {
93
93
  try {
94
94
  const binding = require('@publier/native-android-arm64')
95
95
  const bindingPackageVersion = require('@publier/native-android-arm64/package.json').version
96
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
96
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
98
98
  }
99
99
  return binding
100
100
  } catch (e) {
@@ -109,8 +109,8 @@ function requireNative() {
109
109
  try {
110
110
  const binding = require('@publier/native-android-arm-eabi')
111
111
  const bindingPackageVersion = require('@publier/native-android-arm-eabi/package.json').version
112
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
113
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
112
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
113
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
114
114
  }
115
115
  return binding
116
116
  } catch (e) {
@@ -130,8 +130,8 @@ function requireNative() {
130
130
  try {
131
131
  const binding = require('@publier/native-win32-x64-gnu')
132
132
  const bindingPackageVersion = require('@publier/native-win32-x64-gnu/package.json').version
133
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
133
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
135
135
  }
136
136
  return binding
137
137
  } catch (e) {
@@ -146,8 +146,8 @@ function requireNative() {
146
146
  try {
147
147
  const binding = require('@publier/native-win32-x64-msvc')
148
148
  const bindingPackageVersion = require('@publier/native-win32-x64-msvc/package.json').version
149
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
150
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
149
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
150
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
151
151
  }
152
152
  return binding
153
153
  } catch (e) {
@@ -163,8 +163,8 @@ function requireNative() {
163
163
  try {
164
164
  const binding = require('@publier/native-win32-ia32-msvc')
165
165
  const bindingPackageVersion = require('@publier/native-win32-ia32-msvc/package.json').version
166
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
166
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
168
168
  }
169
169
  return binding
170
170
  } catch (e) {
@@ -179,8 +179,8 @@ function requireNative() {
179
179
  try {
180
180
  const binding = require('@publier/native-win32-arm64-msvc')
181
181
  const bindingPackageVersion = require('@publier/native-win32-arm64-msvc/package.json').version
182
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
183
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
182
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
183
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
184
184
  }
185
185
  return binding
186
186
  } catch (e) {
@@ -198,8 +198,8 @@ function requireNative() {
198
198
  try {
199
199
  const binding = require('@publier/native-darwin-universal')
200
200
  const bindingPackageVersion = require('@publier/native-darwin-universal/package.json').version
201
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
201
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
203
203
  }
204
204
  return binding
205
205
  } catch (e) {
@@ -214,8 +214,8 @@ function requireNative() {
214
214
  try {
215
215
  const binding = require('@publier/native-darwin-x64')
216
216
  const bindingPackageVersion = require('@publier/native-darwin-x64/package.json').version
217
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
217
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
219
219
  }
220
220
  return binding
221
221
  } catch (e) {
@@ -230,8 +230,8 @@ function requireNative() {
230
230
  try {
231
231
  const binding = require('@publier/native-darwin-arm64')
232
232
  const bindingPackageVersion = require('@publier/native-darwin-arm64/package.json').version
233
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
234
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
233
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
234
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
235
235
  }
236
236
  return binding
237
237
  } catch (e) {
@@ -250,8 +250,8 @@ function requireNative() {
250
250
  try {
251
251
  const binding = require('@publier/native-freebsd-x64')
252
252
  const bindingPackageVersion = require('@publier/native-freebsd-x64/package.json').version
253
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
253
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
255
255
  }
256
256
  return binding
257
257
  } catch (e) {
@@ -266,8 +266,8 @@ function requireNative() {
266
266
  try {
267
267
  const binding = require('@publier/native-freebsd-arm64')
268
268
  const bindingPackageVersion = require('@publier/native-freebsd-arm64/package.json').version
269
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
270
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
269
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
270
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
271
271
  }
272
272
  return binding
273
273
  } catch (e) {
@@ -282,8 +282,8 @@ function requireNative() {
282
282
  try {
283
283
  const binding = require('@publier/native-freebsd-ppc64')
284
284
  const bindingPackageVersion = require('@publier/native-freebsd-ppc64/package.json').version
285
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
286
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
285
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
286
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
287
287
  }
288
288
  return binding
289
289
  } catch (e) {
@@ -303,8 +303,8 @@ function requireNative() {
303
303
  try {
304
304
  const binding = require('@publier/native-linux-x64-musl')
305
305
  const bindingPackageVersion = require('@publier/native-linux-x64-musl/package.json').version
306
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
307
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
306
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
307
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
308
308
  }
309
309
  return binding
310
310
  } catch (e) {
@@ -319,8 +319,8 @@ function requireNative() {
319
319
  try {
320
320
  const binding = require('@publier/native-linux-x64-gnu')
321
321
  const bindingPackageVersion = require('@publier/native-linux-x64-gnu/package.json').version
322
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
323
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
322
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
323
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
324
324
  }
325
325
  return binding
326
326
  } catch (e) {
@@ -337,8 +337,8 @@ function requireNative() {
337
337
  try {
338
338
  const binding = require('@publier/native-linux-arm64-musl')
339
339
  const bindingPackageVersion = require('@publier/native-linux-arm64-musl/package.json').version
340
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
341
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
340
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
341
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
342
342
  }
343
343
  return binding
344
344
  } catch (e) {
@@ -353,8 +353,8 @@ function requireNative() {
353
353
  try {
354
354
  const binding = require('@publier/native-linux-arm64-gnu')
355
355
  const bindingPackageVersion = require('@publier/native-linux-arm64-gnu/package.json').version
356
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
357
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
356
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
357
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
358
358
  }
359
359
  return binding
360
360
  } catch (e) {
@@ -371,8 +371,8 @@ function requireNative() {
371
371
  try {
372
372
  const binding = require('@publier/native-linux-arm-musleabihf')
373
373
  const bindingPackageVersion = require('@publier/native-linux-arm-musleabihf/package.json').version
374
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
375
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
374
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
375
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
376
376
  }
377
377
  return binding
378
378
  } catch (e) {
@@ -387,8 +387,8 @@ function requireNative() {
387
387
  try {
388
388
  const binding = require('@publier/native-linux-arm-gnueabihf')
389
389
  const bindingPackageVersion = require('@publier/native-linux-arm-gnueabihf/package.json').version
390
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
391
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
390
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
391
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
392
392
  }
393
393
  return binding
394
394
  } catch (e) {
@@ -405,8 +405,8 @@ function requireNative() {
405
405
  try {
406
406
  const binding = require('@publier/native-linux-loong64-musl')
407
407
  const bindingPackageVersion = require('@publier/native-linux-loong64-musl/package.json').version
408
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
409
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
408
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
409
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
410
410
  }
411
411
  return binding
412
412
  } catch (e) {
@@ -421,8 +421,8 @@ function requireNative() {
421
421
  try {
422
422
  const binding = require('@publier/native-linux-loong64-gnu')
423
423
  const bindingPackageVersion = require('@publier/native-linux-loong64-gnu/package.json').version
424
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
425
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
424
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
425
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
426
426
  }
427
427
  return binding
428
428
  } catch (e) {
@@ -439,8 +439,8 @@ function requireNative() {
439
439
  try {
440
440
  const binding = require('@publier/native-linux-riscv64-musl')
441
441
  const bindingPackageVersion = require('@publier/native-linux-riscv64-musl/package.json').version
442
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
443
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
442
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
443
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
444
444
  }
445
445
  return binding
446
446
  } catch (e) {
@@ -455,8 +455,8 @@ function requireNative() {
455
455
  try {
456
456
  const binding = require('@publier/native-linux-riscv64-gnu')
457
457
  const bindingPackageVersion = require('@publier/native-linux-riscv64-gnu/package.json').version
458
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
459
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
458
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
459
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
460
460
  }
461
461
  return binding
462
462
  } catch (e) {
@@ -472,8 +472,8 @@ function requireNative() {
472
472
  try {
473
473
  const binding = require('@publier/native-linux-ppc64-gnu')
474
474
  const bindingPackageVersion = require('@publier/native-linux-ppc64-gnu/package.json').version
475
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
476
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
475
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
476
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
477
477
  }
478
478
  return binding
479
479
  } catch (e) {
@@ -488,8 +488,8 @@ function requireNative() {
488
488
  try {
489
489
  const binding = require('@publier/native-linux-s390x-gnu')
490
490
  const bindingPackageVersion = require('@publier/native-linux-s390x-gnu/package.json').version
491
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
492
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
491
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
492
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
493
493
  }
494
494
  return binding
495
495
  } catch (e) {
@@ -508,8 +508,8 @@ function requireNative() {
508
508
  try {
509
509
  const binding = require('@publier/native-openharmony-arm64')
510
510
  const bindingPackageVersion = require('@publier/native-openharmony-arm64/package.json').version
511
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
511
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
513
513
  }
514
514
  return binding
515
515
  } catch (e) {
@@ -524,8 +524,8 @@ function requireNative() {
524
524
  try {
525
525
  const binding = require('@publier/native-openharmony-x64')
526
526
  const bindingPackageVersion = require('@publier/native-openharmony-x64/package.json').version
527
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
528
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
527
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
528
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
529
529
  }
530
530
  return binding
531
531
  } catch (e) {
@@ -540,8 +540,8 @@ function requireNative() {
540
540
  try {
541
541
  const binding = require('@publier/native-openharmony-arm')
542
542
  const bindingPackageVersion = require('@publier/native-openharmony-arm/package.json').version
543
- if (bindingPackageVersion !== '0.18.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
544
- throw new Error(`Native binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
543
+ if (bindingPackageVersion !== '0.19.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
544
+ throw new Error(`Native binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
545
545
  }
546
546
  return binding
547
547
  } catch (e) {
@@ -682,8 +682,8 @@ if (!nativeBinding || forceWasi) {
682
682
  if (!candidateFailed) {
683
683
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
684
684
  const bindingPackageVersion = require('@publier/native-wasm32-wasi/package.json').version
685
- if (bindingPackageVersion !== '0.18.0') {
686
- throw new Error(`WASI binding package version mismatch, expected 0.18.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
685
+ if (bindingPackageVersion !== '0.19.0') {
686
+ throw new Error(`WASI binding package version mismatch, expected 0.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
687
687
  }
688
688
  }
689
689
  wasiBinding = require('@publier/native-wasm32-wasi')
@@ -837,36 +837,20 @@ module.exports = nativeBinding
837
837
  module.exports.analyticsGenerateBodyScripts = nativeBinding.analyticsGenerateBodyScripts
838
838
  module.exports.analyticsGenerateScripts = nativeBinding.analyticsGenerateScripts
839
839
  module.exports.asyncapiSourceBuild = nativeBinding.asyncapiSourceBuild
840
- module.exports.blogFilterByTag = nativeBinding.blogFilterByTag
841
- module.exports.blogFilterPublished = nativeBinding.blogFilterPublished
842
- module.exports.blogReadingTime = nativeBinding.blogReadingTime
843
- module.exports.blogSortByDate = nativeBinding.blogSortByDate
844
- module.exports.blogTagCounts = nativeBinding.blogTagCounts
845
840
  module.exports.buildHook = nativeBinding.buildHook
846
841
  module.exports.configResolvePublierConfig = nativeBinding.configResolvePublierConfig
847
842
  module.exports.configResolveShellConfig = nativeBinding.configResolveShellConfig
848
843
  module.exports.configShouldRenderPage = nativeBinding.configShouldRenderPage
849
844
  module.exports.contentGenerateLlmsTxt = nativeBinding.contentGenerateLlmsTxt
850
- module.exports.contentGenerateOgImageMarkup = nativeBinding.contentGenerateOgImageMarkup
851
- module.exports.contentGenerateRobotsTxt = nativeBinding.contentGenerateRobotsTxt
852
- module.exports.contentGenerateSkillMd = nativeBinding.contentGenerateSkillMd
853
- module.exports.contentGenerateTwitterMeta = nativeBinding.contentGenerateTwitterMeta
854
- module.exports.contentGetSlug = nativeBinding.contentGetSlug
855
845
  module.exports.navigationActiveIndex = nativeBinding.navigationActiveIndex
856
846
  module.exports.navigationBuildSidebar = nativeBinding.navigationBuildSidebar
857
847
  module.exports.navigationMatchNavPath = nativeBinding.navigationMatchNavPath
858
- module.exports.openapiBuildCustomSampleMap = nativeBinding.openapiBuildCustomSampleMap
859
848
  module.exports.openapiBuildInstanceId = nativeBinding.openapiBuildInstanceId
860
- module.exports.openapiDecodePlaceholders = nativeBinding.openapiDecodePlaceholders
861
849
  module.exports.openapiExtractEndpoints = nativeBinding.openapiExtractEndpoints
862
850
  module.exports.openapiGenerateFiles = nativeBinding.openapiGenerateFiles
863
- module.exports.openapiGetMediaTypeExample = nativeBinding.openapiGetMediaTypeExample
864
- module.exports.openapiGetSnippetClient = nativeBinding.openapiGetSnippetClient
865
- module.exports.openapiHarFromOperation = nativeBinding.openapiHarFromOperation
866
851
  module.exports.openapiMergeSpecs = nativeBinding.openapiMergeSpecs
867
852
  module.exports.openapiNavigationBuild = nativeBinding.openapiNavigationBuild
868
853
  module.exports.openapiParseAsyncApiSpec = nativeBinding.openapiParseAsyncApiSpec
869
- module.exports.openapiParseOpenapiSpec = nativeBinding.openapiParseOpenapiSpec
870
854
  module.exports.openapiRenderApiPage = nativeBinding.openapiRenderApiPage
871
855
  module.exports.openapiRenderApiPlayground = nativeBinding.openapiRenderApiPlayground
872
856
  module.exports.openapiRenderApiReference = nativeBinding.openapiRenderApiReference
@@ -883,7 +867,6 @@ module.exports.openapiRenderResponseField = nativeBinding.openapiRenderResponseF
883
867
  module.exports.openapiRenderSchemaRow = nativeBinding.openapiRenderSchemaRow
884
868
  module.exports.openapiRenderSchemaView = nativeBinding.openapiRenderSchemaView
885
869
  module.exports.openapiResolveBaseUrl = nativeBinding.openapiResolveBaseUrl
886
- module.exports.openapiResolveRefs = nativeBinding.openapiResolveRefs
887
870
  module.exports.openapiSourceBuild = nativeBinding.openapiSourceBuild
888
871
  module.exports.pluginHook = nativeBinding.pluginHook
889
872
  module.exports.primitivesColorSwatchScript = nativeBinding.primitivesColorSwatchScript
@@ -902,13 +885,10 @@ module.exports.primitivesRenderViewAnimation = nativeBinding.primitivesRenderVie
902
885
  module.exports.primitivesTabsScript = nativeBinding.primitivesTabsScript
903
886
  module.exports.primitivesViewAnimationScript = nativeBinding.primitivesViewAnimationScript
904
887
  module.exports.primitivesViewAnimationStyle = nativeBinding.primitivesViewAnimationStyle
905
- module.exports.remarkCollectSections = nativeBinding.remarkCollectSections
906
888
  module.exports.remarkResolveSnippet = nativeBinding.remarkResolveSnippet
907
889
  module.exports.remarkTransformAsides = nativeBinding.remarkTransformAsides
908
890
  module.exports.remarkVarsSubstitute = nativeBinding.remarkVarsSubstitute
909
- module.exports.rssGenerateFeed = nativeBinding.rssGenerateFeed
910
891
  module.exports.searchEntryToPage = nativeBinding.searchEntryToPage
911
- module.exports.searchExtractStructuredData = nativeBinding.searchExtractStructuredData
912
892
  module.exports.searchReadMetaYaml = nativeBinding.searchReadMetaYaml
913
893
  module.exports.shellAnnouncementBannerScript = nativeBinding.shellAnnouncementBannerScript
914
894
  module.exports.shellBuildBannerInitScript = nativeBinding.shellBuildBannerInitScript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@publier/native",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Publier native bindings — build, content, and OpenAPI utilities.",
6
6
  "type": "commonjs",
Binary file