@publier/native 0.16.0 → 0.17.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 +3 -1
- package/dist/index.mjs +1 -1
- package/index.d.ts +1 -0
- package/index.js +57 -56
- package/package.json +1 -1
- package/publier-native.linux-x64-gnu.node +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -268,7 +268,7 @@ interface SkillMdOptions {
|
|
|
268
268
|
export declare function generateSkillMd(options: SkillMdOptions): string;
|
|
269
269
|
export declare function getSlug(filePath: string, baseDir: string): string;
|
|
270
270
|
declare namespace index_d_exports {
|
|
271
|
-
export { NativeHeadStats, NativePreloadStats, NativeTailwindResolvedTheme, NativeTailwindThemeError, __napiBindingTarget, analyticsGenerateBodyScripts$1 as analyticsGenerateBodyScripts, analyticsGenerateScripts$1 as analyticsGenerateScripts, asyncapiSourceBuild$1 as asyncapiSourceBuild, blogFilterByTag$1 as blogFilterByTag, blogFilterPublished$1 as blogFilterPublished, blogReadingTime$1 as blogReadingTime, blogSortByDate$1 as blogSortByDate, blogTagCounts$1 as blogTagCounts, buildHook$1 as buildHook, configResolvePublierConfig$1 as configResolvePublierConfig, configResolveShellConfig$1 as configResolveShellConfig, configShouldRenderPage$1 as configShouldRenderPage, contentGenerateLlmsTxt$1 as contentGenerateLlmsTxt, contentGenerateOgImageMarkup$1 as contentGenerateOgImageMarkup, contentGenerateRobotsTxt$1 as contentGenerateRobotsTxt, contentGenerateSkillMd$1 as contentGenerateSkillMd, contentGenerateTwitterMeta$1 as contentGenerateTwitterMeta, contentGetSlug$1 as contentGetSlug, navigationActiveIndex$1 as navigationActiveIndex, navigationBuildSidebar$1 as navigationBuildSidebar, navigationMatchNavPath$1 as navigationMatchNavPath, openapiBuildCustomSampleMap$1 as openapiBuildCustomSampleMap, openapiBuildInstanceId$1 as openapiBuildInstanceId, openapiDecodePlaceholders$1 as openapiDecodePlaceholders, openapiExtractEndpoints$1 as openapiExtractEndpoints, openapiGenerateFiles$1 as openapiGenerateFiles, openapiGetMediaTypeExample$1 as openapiGetMediaTypeExample, openapiGetSnippetClient$1 as openapiGetSnippetClient, openapiHarFromOperation$1 as openapiHarFromOperation, openapiMergeSpecs$1 as openapiMergeSpecs, openapiNavigationBuild$1 as openapiNavigationBuild, openapiParseAsyncApiSpec$1 as openapiParseAsyncApiSpec, openapiParseOpenapiSpec$1 as openapiParseOpenapiSpec, openapiRenderApiPage$1 as openapiRenderApiPage, openapiRenderApiPlayground$1 as openapiRenderApiPlayground, openapiRenderApiReference$1 as openapiRenderApiReference, openapiRenderApiReferenceShell$1 as openapiRenderApiReferenceShell, openapiRenderAsyncChannel$1 as openapiRenderAsyncChannel, openapiRenderAsyncMessage$1 as openapiRenderAsyncMessage, openapiRenderCodeSamples$1 as openapiRenderCodeSamples, openapiRenderCollapsibleSection$1 as openapiRenderCollapsibleSection, openapiRenderMethodBadge$1 as openapiRenderMethodBadge, openapiRenderParamField$1 as openapiRenderParamField, openapiRenderRequestExample$1 as openapiRenderRequestExample, openapiRenderResponseExample$1 as openapiRenderResponseExample, openapiRenderResponseField$1 as openapiRenderResponseField, openapiRenderSchemaRow$1 as openapiRenderSchemaRow, openapiRenderSchemaView$1 as openapiRenderSchemaView, openapiResolveBaseUrl$1 as openapiResolveBaseUrl, openapiResolveRefs$1 as openapiResolveRefs, openapiSourceBuild$1 as openapiSourceBuild, pluginHook$1 as pluginHook, primitivesColorSwatchScript$1 as primitivesColorSwatchScript, primitivesColorSwatchStyle$1 as primitivesColorSwatchStyle, primitivesCopyButtonScript$1 as primitivesCopyButtonScript, primitivesCopyButtonStyle$1 as primitivesCopyButtonStyle, primitivesRenderAccordion$1 as primitivesRenderAccordion, primitivesRenderAccordionItem$1 as primitivesRenderAccordionItem, primitivesRenderColorSwatch$1 as primitivesRenderColorSwatch, primitivesRenderCopyButton$1 as primitivesRenderCopyButton, primitivesRenderImageZoom$1 as primitivesRenderImageZoom, primitivesRenderTabPanel$1 as primitivesRenderTabPanel, primitivesRenderTabs$1 as primitivesRenderTabs, primitivesRenderTooltip$1 as primitivesRenderTooltip, primitivesRenderViewAnimation$1 as primitivesRenderViewAnimation, primitivesTabsScript$1 as primitivesTabsScript, primitivesViewAnimationScript$1 as primitivesViewAnimationScript, primitivesViewAnimationStyle$1 as primitivesViewAnimationStyle, remarkCollectSections$1 as remarkCollectSections, remarkResolveSnippet$1 as remarkResolveSnippet, remarkTransformAsides$1 as remarkTransformAsides, remarkVarsSubstitute$1 as remarkVarsSubstitute, rssGenerateFeed$1 as rssGenerateFeed, searchEntryToPage$1 as searchEntryToPage, searchExtractStructuredData$1 as searchExtractStructuredData, searchReadMetaYaml$1 as searchReadMetaYaml, shellAnnouncementBannerScript$1 as shellAnnouncementBannerScript, shellBuildBannerInitScript$1 as shellBuildBannerInitScript, shellBuildGlobPattern$1 as shellBuildGlobPattern, shellBuildHeaders$1 as shellBuildHeaders, shellBuildLicenseErrorMessage$1 as shellBuildLicenseErrorMessage, shellBuildThemeInitScript$1 as shellBuildThemeInitScript, shellCacheControl$1 as shellCacheControl, shellCollectTailwindClassTokens$1 as shellCollectTailwindClassTokens, shellComposeTailwindEntry$1 as shellComposeTailwindEntry, shellGenerateId$1 as shellGenerateId, shellInjectBodyScripts$1 as shellInjectBodyScripts, shellInjectHeadScripts$1 as shellInjectHeadScripts, shellLazyUpgradeScript$1 as shellLazyUpgradeScript, shellListThemes$1 as shellListThemes, shellNavActiveUpdateScript$1 as shellNavActiveUpdateScript, shellOpenInAiScript$1 as shellOpenInAiScript, shellPlanDefaultRoutes$1 as shellPlanDefaultRoutes, shellPlanDocsSlug$1 as shellPlanDocsSlug, shellPlanRehypePlugins$1 as shellPlanRehypePlugins, shellPlanRemarkPlugins$1 as shellPlanRemarkPlugins, shellRenderAnnouncementBanner$1 as shellRenderAnnouncementBanner, shellRenderAside$1 as shellRenderAside, shellRenderBadge$1 as shellRenderBadge, shellRenderBaseLayout$1 as shellRenderBaseLayout, shellRenderBlogIndex$1 as shellRenderBlogIndex, shellRenderBlogSlug$1 as shellRenderBlogSlug, shellRenderBreadcrumbs$1 as shellRenderBreadcrumbs, shellRenderCard$1 as shellRenderCard, shellRenderCardGrid$1 as shellRenderCardGrid, shellRenderChangelogEntry$1 as shellRenderChangelogEntry, shellRenderChangelogFooter$1 as shellRenderChangelogFooter, shellRenderChangelogHeader$1 as shellRenderChangelogHeader, shellRenderCodeGroup$1 as shellRenderCodeGroup, shellRenderColumns$1 as shellRenderColumns, shellRenderDocsLayout$1 as shellRenderDocsLayout, shellRenderDocsSlug$1 as shellRenderDocsSlug, shellRenderFileTree$1 as shellRenderFileTree, shellRenderFileTreeNode$1 as shellRenderFileTreeNode, shellRenderIcon$1 as shellRenderIcon, shellRenderLastModified$1 as shellRenderLastModified, shellRenderLinkButton$1 as shellRenderLinkButton, shellRenderLinkCard$1 as shellRenderLinkCard, shellRenderNotFound$1 as shellRenderNotFound, shellRenderOpenInAi$1 as shellRenderOpenInAi, shellRenderPackageInstall$1 as shellRenderPackageInstall, shellRenderPanels$1 as shellRenderPanels, shellRenderSearchButton$1 as shellRenderSearchButton, shellRenderSidebar$1 as shellRenderSidebar, shellRenderSkipLink$1 as shellRenderSkipLink, shellRenderSteps$1 as shellRenderSteps, shellRenderTableOfContents$1 as shellRenderTableOfContents, shellRenderTabs$1 as shellRenderTabs, shellRenderThemeToggle$1 as shellRenderThemeToggle, shellRenderTile$1 as shellRenderTile, shellRenderTileGrid$1 as shellRenderTileGrid, shellRenderTopNav$1 as shellRenderTopNav, shellRenderTopNavMobile$1 as shellRenderTopNavMobile, shellRenderUpdateBadge$1 as shellRenderUpdateBadge, shellRenderVersionSwitcher$1 as shellRenderVersionSwitcher, shellResolvePrefetch$1 as shellResolvePrefetch, shellResolveSnippetsConfig$1 as shellResolveSnippetsConfig, shellRewriteHead$1 as shellRewriteHead, shellRewriteModulepreload$1 as shellRewriteModulepreload, shellSearchButtonScript$1 as shellSearchButtonScript, shellSearchDialogCss$1 as shellSearchDialogCss, shellSearchDialogInnerHtml$1 as shellSearchDialogInnerHtml, shellSearchDialogScript$1 as shellSearchDialogScript, shellSidebarHeightInitScript$1 as shellSidebarHeightInitScript, shellSidebarScrollInitScript$1 as shellSidebarScrollInitScript, shellTableOfContentsScript$1 as shellTableOfContentsScript, tailwindComposeThemeCss$1 as tailwindComposeThemeCss, tailwindReadPresetCss$1 as tailwindReadPresetCss, tailwindResolveTheme$1 as tailwindResolveTheme, verifyLicense$1 as verifyLicense };
|
|
271
|
+
export { NativeHeadStats, NativePreloadStats, NativeTailwindResolvedTheme, NativeTailwindThemeError, __napiBindingTarget, analyticsGenerateBodyScripts$1 as analyticsGenerateBodyScripts, analyticsGenerateScripts$1 as analyticsGenerateScripts, asyncapiSourceBuild$1 as asyncapiSourceBuild, blogFilterByTag$1 as blogFilterByTag, blogFilterPublished$1 as blogFilterPublished, blogReadingTime$1 as blogReadingTime, blogSortByDate$1 as blogSortByDate, blogTagCounts$1 as blogTagCounts, buildHook$1 as buildHook, configResolvePublierConfig$1 as configResolvePublierConfig, configResolveShellConfig$1 as configResolveShellConfig, configShouldRenderPage$1 as configShouldRenderPage, contentGenerateLlmsTxt$1 as contentGenerateLlmsTxt, contentGenerateOgImageMarkup$1 as contentGenerateOgImageMarkup, contentGenerateRobotsTxt$1 as contentGenerateRobotsTxt, contentGenerateSkillMd$1 as contentGenerateSkillMd, contentGenerateTwitterMeta$1 as contentGenerateTwitterMeta, contentGetSlug$1 as contentGetSlug, navigationActiveIndex$1 as navigationActiveIndex, navigationBuildSidebar$1 as navigationBuildSidebar, navigationMatchNavPath$1 as navigationMatchNavPath, openapiBuildCustomSampleMap$1 as openapiBuildCustomSampleMap, openapiBuildInstanceId$1 as openapiBuildInstanceId, openapiDecodePlaceholders$1 as openapiDecodePlaceholders, openapiExtractEndpoints$1 as openapiExtractEndpoints, openapiGenerateFiles$1 as openapiGenerateFiles, openapiGetMediaTypeExample$1 as openapiGetMediaTypeExample, openapiGetSnippetClient$1 as openapiGetSnippetClient, openapiHarFromOperation$1 as openapiHarFromOperation, openapiMergeSpecs$1 as openapiMergeSpecs, openapiNavigationBuild$1 as openapiNavigationBuild, openapiParseAsyncApiSpec$1 as openapiParseAsyncApiSpec, openapiParseOpenapiSpec$1 as openapiParseOpenapiSpec, openapiRenderApiPage$1 as openapiRenderApiPage, openapiRenderApiPlayground$1 as openapiRenderApiPlayground, openapiRenderApiReference$1 as openapiRenderApiReference, openapiRenderApiReferenceShell$1 as openapiRenderApiReferenceShell, openapiRenderAsyncChannel$1 as openapiRenderAsyncChannel, openapiRenderAsyncMessage$1 as openapiRenderAsyncMessage, openapiRenderCodeSamples$1 as openapiRenderCodeSamples, openapiRenderCollapsibleSection$1 as openapiRenderCollapsibleSection, openapiRenderMethodBadge$1 as openapiRenderMethodBadge, openapiRenderParamField$1 as openapiRenderParamField, openapiRenderRequestExample$1 as openapiRenderRequestExample, openapiRenderResponseExample$1 as openapiRenderResponseExample, openapiRenderResponseField$1 as openapiRenderResponseField, openapiRenderSchemaRow$1 as openapiRenderSchemaRow, openapiRenderSchemaView$1 as openapiRenderSchemaView, openapiResolveBaseUrl$1 as openapiResolveBaseUrl, openapiResolveRefs$1 as openapiResolveRefs, openapiSourceBuild$1 as openapiSourceBuild, pluginHook$1 as pluginHook, primitivesColorSwatchScript$1 as primitivesColorSwatchScript, primitivesColorSwatchStyle$1 as primitivesColorSwatchStyle, primitivesCopyButtonScript$1 as primitivesCopyButtonScript, primitivesCopyButtonStyle$1 as primitivesCopyButtonStyle, primitivesRenderAccordion$1 as primitivesRenderAccordion, primitivesRenderAccordionItem$1 as primitivesRenderAccordionItem, primitivesRenderColorSwatch$1 as primitivesRenderColorSwatch, primitivesRenderCopyButton$1 as primitivesRenderCopyButton, primitivesRenderImageZoom$1 as primitivesRenderImageZoom, primitivesRenderTabPanel$1 as primitivesRenderTabPanel, primitivesRenderTabs$1 as primitivesRenderTabs, primitivesRenderTooltip$1 as primitivesRenderTooltip, primitivesRenderViewAnimation$1 as primitivesRenderViewAnimation, primitivesTabsScript$1 as primitivesTabsScript, primitivesViewAnimationScript$1 as primitivesViewAnimationScript, primitivesViewAnimationStyle$1 as primitivesViewAnimationStyle, remarkCollectSections$1 as remarkCollectSections, remarkResolveSnippet$1 as remarkResolveSnippet, remarkTransformAsides$1 as remarkTransformAsides, remarkVarsSubstitute$1 as remarkVarsSubstitute, rssGenerateFeed$1 as rssGenerateFeed, searchEntryToPage$1 as searchEntryToPage, searchExtractStructuredData$1 as searchExtractStructuredData, searchReadMetaYaml$1 as searchReadMetaYaml, shellAnnouncementBannerScript$1 as shellAnnouncementBannerScript, shellBuildBannerInitScript$1 as shellBuildBannerInitScript, shellBuildGlobPattern$1 as shellBuildGlobPattern, shellBuildHeaders$1 as shellBuildHeaders, shellBuildLicenseErrorMessage$1 as shellBuildLicenseErrorMessage, shellBuildThemeInitScript$1 as shellBuildThemeInitScript, shellCacheControl$1 as shellCacheControl, shellCollectTailwindClassTokens$1 as shellCollectTailwindClassTokens, shellComposeTailwindEntry$1 as shellComposeTailwindEntry, shellGenerateId$1 as shellGenerateId, shellInjectBodyScripts$1 as shellInjectBodyScripts, shellInjectHeadScripts$1 as shellInjectHeadScripts, shellLazyUpgradeScript$1 as shellLazyUpgradeScript, shellListThemes$1 as shellListThemes, shellNavActiveUpdateScript$1 as shellNavActiveUpdateScript, shellOpenInAiScript$1 as shellOpenInAiScript, shellPlanDefaultRoutes$1 as shellPlanDefaultRoutes, shellPlanDocsSlug$1 as shellPlanDocsSlug, shellPlanRehypePlugins$1 as shellPlanRehypePlugins, shellPlanRemarkPlugins$1 as shellPlanRemarkPlugins, shellRenderAnnouncementBanner$1 as shellRenderAnnouncementBanner, shellRenderAside$1 as shellRenderAside, shellRenderBadge$1 as shellRenderBadge, shellRenderBaseLayout$1 as shellRenderBaseLayout, shellRenderBlogIndex$1 as shellRenderBlogIndex, shellRenderBlogSlug$1 as shellRenderBlogSlug, shellRenderBreadcrumbs$1 as shellRenderBreadcrumbs, shellRenderCard$1 as shellRenderCard, shellRenderCardGrid$1 as shellRenderCardGrid, shellRenderChangelogEntry$1 as shellRenderChangelogEntry, shellRenderChangelogFooter$1 as shellRenderChangelogFooter, shellRenderChangelogHeader$1 as shellRenderChangelogHeader, shellRenderCodeGroup$1 as shellRenderCodeGroup, shellRenderColumns$1 as shellRenderColumns, shellRenderDocsLayout$1 as shellRenderDocsLayout, shellRenderDocsSlug$1 as shellRenderDocsSlug, shellRenderFileTree$1 as shellRenderFileTree, shellRenderFileTreeNode$1 as shellRenderFileTreeNode, shellRenderIcon$1 as shellRenderIcon, shellRenderLastModified$1 as shellRenderLastModified, shellRenderLinkButton$1 as shellRenderLinkButton, shellRenderLinkCard$1 as shellRenderLinkCard, shellRenderNotFound$1 as shellRenderNotFound, shellRenderOpenInAi$1 as shellRenderOpenInAi, shellRenderPackageInstall$1 as shellRenderPackageInstall, shellRenderPanels$1 as shellRenderPanels, 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 };
|
|
272
272
|
}
|
|
273
273
|
declare const __napiBindingTarget: 'native' | 'wasm32-wasi' | 'wasm32-wasip1';
|
|
274
274
|
declare function analyticsGenerateBodyScripts$1(analyticsJson: string): string;
|
|
@@ -416,6 +416,7 @@ declare function shellRenderNotFound$1(): string;
|
|
|
416
416
|
declare function shellRenderOpenInAi$1(pageUrl: string, pageTitle: string): string;
|
|
417
417
|
declare function shellRenderPackageInstall$1(inputJson: string): string;
|
|
418
418
|
declare function shellRenderPanels$1(inputJson: string): string;
|
|
419
|
+
declare function shellRenderProductDirectory$1(inputJson: string): string;
|
|
419
420
|
declare function shellRenderSearchButton$1(inputJson: string): string;
|
|
420
421
|
declare function shellRenderSidebar$1(inputJson: string): string;
|
|
421
422
|
declare function shellRenderSkipLink$1(inputJson: string): string;
|
|
@@ -567,6 +568,7 @@ export declare const shellRenderNotFound: typeof shellRenderNotFound$1;
|
|
|
567
568
|
export declare const shellRenderOpenInAi: typeof shellRenderOpenInAi$1;
|
|
568
569
|
export declare const shellRenderPackageInstall: typeof shellRenderPackageInstall$1;
|
|
569
570
|
export declare const shellRenderPanels: typeof shellRenderPanels$1;
|
|
571
|
+
export declare const shellRenderProductDirectory: typeof shellRenderProductDirectory$1;
|
|
570
572
|
export declare const shellRenderSearchButton: typeof shellRenderSearchButton$1;
|
|
571
573
|
export declare const shellRenderSidebar: typeof shellRenderSidebar$1;
|
|
572
574
|
export declare const shellRenderSkipLink: typeof shellRenderSkipLink$1;
|
package/dist/index.mjs
CHANGED
|
@@ -2,4 +2,4 @@ import{createRequire as e}from"node:module";const t=e(import.meta.url)(`../index
|
|
|
2
2
|
/* @vite-ignore */
|
|
3
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
4
|
/* @vite-ignore */
|
|
5
|
-
`@resvg/resvg-js`)).Resvg}catch{throw Error(`@publier/native (og-image) requires "@resvg/resvg-js" as a peer dependency. Install it: pnpm add @resvg/resvg-js`)}let o=JSON.parse(t.contentGenerateOgImageMarkup(JSON.stringify(e))),s=await i(o,{width:n,height:r,fonts:e.fonts??[]});return new a(s,{fitTo:{mode:`width`,value:n}}).render().asPng()}const p=[`docs`,`blog`,`landing`,`press`,`about`,`team`,`contact`,`careers`,`changelog`,`status`,`knowledge-base`,`404`],m=[`system`,`light`,`dark`];function h(e){return JSON.parse(t.configResolvePublierConfig(JSON.stringify(e)??`null`))}function g(e,n,r){return t.configShouldRenderPage(e,JSON.stringify(n),r)}function _(e={}){return t.contentGenerateRobotsTxt(JSON.stringify(e))}function v(e){return JSON.parse(t.blogFilterPublished(JSON.stringify(e)))}function y(e,n){let r={title:n.title,description:n.description,siteUrl:n.siteUrl,feedUrl:n.feedUrl,language:n.language,buildDate:(n.buildDate??/* @__PURE__ */ new Date).toUTCString()};return t.rssGenerateFeed(JSON.stringify(e),JSON.stringify(r))}function b(e){return t.contentGenerateSkillMd(JSON.stringify(e))}function x(e,n){return t.contentGetSlug(e,n)}var S=t;const C=t.analyticsGenerateBodyScripts,w=t.analyticsGenerateScripts,T=t.asyncapiSourceBuild,E=t.blogFilterByTag,D=t.blogFilterPublished,O=t.blogReadingTime,k=t.blogSortByDate,A=t.blogTagCounts,j=t.buildHook,M=t.configResolvePublierConfig,N=t.configResolveShellConfig,P=t.configShouldRenderPage,F=t.contentGenerateLlmsTxt,I=t.contentGenerateOgImageMarkup,L=t.contentGenerateRobotsTxt,R=t.contentGenerateSkillMd,z=t.contentGenerateTwitterMeta,B=t.contentGetSlug,V=t.navigationActiveIndex,H=t.navigationBuildSidebar,U=t.navigationMatchNavPath,W=t.openapiBuildCustomSampleMap,G=t.openapiBuildInstanceId,K=t.openapiDecodePlaceholders,q=t.openapiExtractEndpoints,J=t.openapiGenerateFiles,Y=t.openapiGetMediaTypeExample,X=t.openapiGetSnippetClient,Z=t.openapiHarFromOperation,Q=t.openapiMergeSpecs,ne=t.openapiNavigationBuild,re=t.openapiParseAsyncApiSpec,ie=t.openapiParseOpenapiSpec,ae=t.openapiRenderApiPage,oe=t.openapiRenderApiPlayground,se=t.openapiRenderApiReference,ce=t.openapiRenderApiReferenceShell,le=t.openapiRenderAsyncChannel,ue=t.openapiRenderAsyncMessage,de=t.openapiRenderCodeSamples,fe=t.openapiRenderCollapsibleSection,pe=t.openapiRenderMethodBadge,me=t.openapiRenderParamField,he=t.openapiRenderRequestExample,ge=t.openapiRenderResponseExample,_e=t.openapiRenderResponseField,ve=t.openapiRenderSchemaRow,ye=t.openapiRenderSchemaView,be=t.openapiResolveBaseUrl,xe=t.openapiResolveRefs,Se=t.openapiSourceBuild,Ce=t.pluginHook,we=t.primitivesColorSwatchScript,Te=t.primitivesColorSwatchStyle,Ee=t.primitivesCopyButtonScript,De=t.primitivesCopyButtonStyle,Oe=t.primitivesRenderAccordion,ke=t.primitivesRenderAccordionItem,Ae=t.primitivesRenderColorSwatch,je=t.primitivesRenderCopyButton,Me=t.primitivesRenderImageZoom,Ne=t.primitivesRenderTabPanel,Pe=t.primitivesRenderTabs,Fe=t.primitivesRenderTooltip,Ie=t.primitivesRenderViewAnimation,Le=t.primitivesTabsScript,Re=t.primitivesViewAnimationScript,$=t.primitivesViewAnimationStyle,ze=t.remarkCollectSections,Be=t.remarkResolveSnippet,Ve=t.remarkTransformAsides,He=t.remarkVarsSubstitute,Ue=t.rssGenerateFeed,We=t.searchEntryToPage,Ge=t.searchExtractStructuredData,Ke=t.searchReadMetaYaml,qe=t.shellAnnouncementBannerScript,Je=t.shellBuildBannerInitScript,Ye=t.shellBuildGlobPattern,Xe=t.shellBuildHeaders,Ze=t.shellBuildLicenseErrorMessage,Qe=t.shellBuildThemeInitScript,$e=t.shellCacheControl,et=t.shellCollectTailwindClassTokens,tt=t.shellComposeTailwindEntry,nt=t.shellGenerateId,rt=t.shellInjectBodyScripts,it=t.shellInjectHeadScripts,at=t.shellLazyUpgradeScript,ot=t.shellListThemes,st=t.shellNavActiveUpdateScript,ct=t.shellOpenInAiScript,lt=t.shellPlanDefaultRoutes,ut=t.shellPlanDocsSlug,dt=t.shellPlanRehypePlugins,ft=t.shellPlanRemarkPlugins,pt=t.shellRenderAnnouncementBanner,mt=t.shellRenderAside,ht=t.shellRenderBadge,gt=t.shellRenderBaseLayout,_t=t.shellRenderBlogIndex,vt=t.shellRenderBlogSlug,yt=t.shellRenderBreadcrumbs,bt=t.shellRenderCard,xt=t.shellRenderCardGrid,St=t.shellRenderChangelogEntry,Ct=t.shellRenderChangelogFooter,wt=t.shellRenderChangelogHeader,Tt=t.shellRenderCodeGroup,Et=t.shellRenderColumns,Dt=t.shellRenderDocsLayout,Ot=t.shellRenderDocsSlug,kt=t.shellRenderFileTree,At=t.shellRenderFileTreeNode,jt=t.shellRenderIcon,Mt=t.shellRenderLastModified,Nt=t.shellRenderLinkButton,Pt=t.shellRenderLinkCard,Ft=t.shellRenderNotFound,It=t.shellRenderOpenInAi,Lt=t.shellRenderPackageInstall,Rt=t.shellRenderPanels,zt=t.shellRenderSearchButton,Bt=t.shellRenderSidebar,Vt=t.shellRenderSkipLink,Ht=t.shellRenderSteps,Ut=t.shellRenderTableOfContents,Wt=t.shellRenderTabs,Gt=t.shellRenderThemeToggle,Kt=t.shellRenderTile,qt=t.shellRenderTileGrid,Jt=t.shellRenderTopNav,Yt=t.shellRenderTopNavMobile,Xt=t.shellRenderUpdateBadge,Zt=t.shellRenderVersionSwitcher,Qt=t.shellResolvePrefetch,$t=t.shellResolveSnippetsConfig,en=t.shellRewriteHead,tn=t.shellRewriteModulepreload,nn=t.shellSearchButtonScript,rn=t.shellSearchDialogCss,an=t.shellSearchDialogInnerHtml,on=t.shellSearchDialogScript,sn=t.shellSidebarHeightInitScript,cn=t.shellSidebarScrollInitScript,ln=t.shellTableOfContentsScript,un=t.tailwindComposeThemeCss,dn=t.tailwindReadPresetCss,fn=t.tailwindResolveTheme,pn=t.verifyLicense;export{m as APPEARANCE_DEFAULTS,l as MAX_DESCRIPTION_LEN,u as MAX_SITENAME_LEN,c as MAX_TITLE_LEN,p as TOGGLEABLE_PAGES,C as analyticsGenerateBodyScripts,w as analyticsGenerateScripts,T as asyncapiSourceBuild,E as blogFilterByTag,D as blogFilterPublished,O as blogReadingTime,k as blogSortByDate,A as blogTagCounts,j as buildHook,d as clamp,M as configResolvePublierConfig,N as configResolveShellConfig,P as configShouldRenderPage,F as contentGenerateLlmsTxt,I as contentGenerateOgImageMarkup,L as contentGenerateRobotsTxt,R as contentGenerateSkillMd,z as contentGenerateTwitterMeta,B as contentGetSlug,S as default,o as filterByTag,v as filterPublishedPages,r as generateAnalyticsBodyScripts,n as generateAnalyticsScripts,ee as generateLlmsTxt,f as generateOgImage,_ as generateRobotsTxt,y as generateRssFeed,b as generateSkillMd,te as generateTwitterMeta,s as getReadingTime,x as getSlug,a as getTagCounts,V as navigationActiveIndex,H as navigationBuildSidebar,U as navigationMatchNavPath,W as openapiBuildCustomSampleMap,G as openapiBuildInstanceId,K as openapiDecodePlaceholders,q as openapiExtractEndpoints,J as openapiGenerateFiles,Y as openapiGetMediaTypeExample,X as openapiGetSnippetClient,Z as openapiHarFromOperation,Q as openapiMergeSpecs,ne as openapiNavigationBuild,re as openapiParseAsyncApiSpec,ie as openapiParseOpenapiSpec,ae as openapiRenderApiPage,oe as openapiRenderApiPlayground,se as openapiRenderApiReference,ce as openapiRenderApiReferenceShell,le as openapiRenderAsyncChannel,ue as openapiRenderAsyncMessage,de as openapiRenderCodeSamples,fe as openapiRenderCollapsibleSection,pe as openapiRenderMethodBadge,me as openapiRenderParamField,he as openapiRenderRequestExample,ge as openapiRenderResponseExample,_e as openapiRenderResponseField,ve as openapiRenderSchemaRow,ye as openapiRenderSchemaView,be as openapiResolveBaseUrl,xe as openapiResolveRefs,Se as openapiSourceBuild,Ce as pluginHook,we as primitivesColorSwatchScript,Te as primitivesColorSwatchStyle,Ee as primitivesCopyButtonScript,De as primitivesCopyButtonStyle,Oe as primitivesRenderAccordion,ke as primitivesRenderAccordionItem,Ae as primitivesRenderColorSwatch,je as primitivesRenderCopyButton,Me as primitivesRenderImageZoom,Ne as primitivesRenderTabPanel,Pe as primitivesRenderTabs,Fe as primitivesRenderTooltip,Ie as primitivesRenderViewAnimation,Le as primitivesTabsScript,Re as primitivesViewAnimationScript,$ as primitivesViewAnimationStyle,ze as remarkCollectSections,Be as remarkResolveSnippet,Ve as remarkTransformAsides,He as remarkVarsSubstitute,h as resolvePublierConfig,Ue as rssGenerateFeed,We as searchEntryToPage,Ge as searchExtractStructuredData,Ke as searchReadMetaYaml,qe as shellAnnouncementBannerScript,Je as shellBuildBannerInitScript,Ye as shellBuildGlobPattern,Xe as shellBuildHeaders,Ze as shellBuildLicenseErrorMessage,Qe as shellBuildThemeInitScript,$e as shellCacheControl,et as shellCollectTailwindClassTokens,tt as shellComposeTailwindEntry,nt as shellGenerateId,rt as shellInjectBodyScripts,it as shellInjectHeadScripts,at as shellLazyUpgradeScript,ot as shellListThemes,st as shellNavActiveUpdateScript,ct as shellOpenInAiScript,lt as shellPlanDefaultRoutes,ut as shellPlanDocsSlug,dt as shellPlanRehypePlugins,ft as shellPlanRemarkPlugins,pt as shellRenderAnnouncementBanner,mt as shellRenderAside,ht as shellRenderBadge,gt as shellRenderBaseLayout,_t as shellRenderBlogIndex,vt as shellRenderBlogSlug,yt as shellRenderBreadcrumbs,bt as shellRenderCard,xt as shellRenderCardGrid,St as shellRenderChangelogEntry,Ct as shellRenderChangelogFooter,wt as shellRenderChangelogHeader,Tt as shellRenderCodeGroup,Et as shellRenderColumns,Dt as shellRenderDocsLayout,Ot as shellRenderDocsSlug,kt as shellRenderFileTree,At as shellRenderFileTreeNode,jt as shellRenderIcon,Mt as shellRenderLastModified,Nt as shellRenderLinkButton,Pt as shellRenderLinkCard,Ft as shellRenderNotFound,It as shellRenderOpenInAi,Lt as shellRenderPackageInstall,Rt as shellRenderPanels,zt as shellRenderSearchButton,Bt as shellRenderSidebar,Vt as shellRenderSkipLink,Ht as shellRenderSteps,Ut as shellRenderTableOfContents,Wt as shellRenderTabs,Gt as shellRenderThemeToggle,Kt as shellRenderTile,qt as shellRenderTileGrid,Jt as shellRenderTopNav,Yt as shellRenderTopNavMobile,Xt as shellRenderUpdateBadge,Zt as shellRenderVersionSwitcher,Qt as shellResolvePrefetch,$t as shellResolveSnippetsConfig,en as shellRewriteHead,tn as shellRewriteModulepreload,nn as shellSearchButtonScript,rn as shellSearchDialogCss,an as shellSearchDialogInnerHtml,on as shellSearchDialogScript,sn as shellSidebarHeightInitScript,cn as shellSidebarScrollInitScript,ln as shellTableOfContentsScript,g as shouldRenderPage,i as sortByDate,un as tailwindComposeThemeCss,dn as tailwindReadPresetCss,fn as tailwindResolveTheme,pn as verifyLicense};
|
|
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.shellCollectTailwindClassTokens,tt=t.shellComposeTailwindEntry,nt=t.shellGenerateId,rt=t.shellInjectBodyScripts,it=t.shellInjectHeadScripts,at=t.shellLazyUpgradeScript,ot=t.shellListThemes,st=t.shellNavActiveUpdateScript,ct=t.shellOpenInAiScript,lt=t.shellPlanDefaultRoutes,ut=t.shellPlanDocsSlug,dt=t.shellPlanRehypePlugins,ft=t.shellPlanRemarkPlugins,pt=t.shellRenderAnnouncementBanner,mt=t.shellRenderAside,ht=t.shellRenderBadge,gt=t.shellRenderBaseLayout,_t=t.shellRenderBlogIndex,vt=t.shellRenderBlogSlug,yt=t.shellRenderBreadcrumbs,bt=t.shellRenderCard,xt=t.shellRenderCardGrid,St=t.shellRenderChangelogEntry,Ct=t.shellRenderChangelogFooter,wt=t.shellRenderChangelogHeader,Tt=t.shellRenderCodeGroup,Et=t.shellRenderColumns,Dt=t.shellRenderDocsLayout,Ot=t.shellRenderDocsSlug,kt=t.shellRenderFileTree,At=t.shellRenderFileTreeNode,jt=t.shellRenderIcon,Mt=t.shellRenderLastModified,Nt=t.shellRenderLinkButton,Pt=t.shellRenderLinkCard,Ft=t.shellRenderNotFound,It=t.shellRenderOpenInAi,Lt=t.shellRenderPackageInstall,Rt=t.shellRenderPanels,zt=t.shellRenderProductDirectory,Bt=t.shellRenderSearchButton,Vt=t.shellRenderSidebar,Ht=t.shellRenderSkipLink,Ut=t.shellRenderSteps,Wt=t.shellRenderTableOfContents,Gt=t.shellRenderTabs,Kt=t.shellRenderThemeToggle,qt=t.shellRenderTile,Jt=t.shellRenderTileGrid,Yt=t.shellRenderTopNav,Xt=t.shellRenderTopNavMobile,Zt=t.shellRenderUpdateBadge,Qt=t.shellRenderVersionSwitcher,$t=t.shellResolvePrefetch,en=t.shellResolveSnippetsConfig,tn=t.shellRewriteHead,nn=t.shellRewriteModulepreload,rn=t.shellSearchButtonScript,an=t.shellSearchDialogCss,on=t.shellSearchDialogInnerHtml,sn=t.shellSearchDialogScript,cn=t.shellSidebarHeightInitScript,ln=t.shellSidebarScrollInitScript,un=t.shellTableOfContentsScript,dn=t.tailwindComposeThemeCss,fn=t.tailwindReadPresetCss,pn=t.tailwindResolveTheme,mn=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 shellCollectTailwindClassTokens,tt as shellComposeTailwindEntry,nt as shellGenerateId,rt as shellInjectBodyScripts,it as shellInjectHeadScripts,at as shellLazyUpgradeScript,ot as shellListThemes,st as shellNavActiveUpdateScript,ct as shellOpenInAiScript,lt as shellPlanDefaultRoutes,ut as shellPlanDocsSlug,dt as shellPlanRehypePlugins,ft as shellPlanRemarkPlugins,pt as shellRenderAnnouncementBanner,mt as shellRenderAside,ht as shellRenderBadge,gt as shellRenderBaseLayout,_t as shellRenderBlogIndex,vt as shellRenderBlogSlug,yt as shellRenderBreadcrumbs,bt as shellRenderCard,xt as shellRenderCardGrid,St as shellRenderChangelogEntry,Ct as shellRenderChangelogFooter,wt as shellRenderChangelogHeader,Tt as shellRenderCodeGroup,Et as shellRenderColumns,Dt as shellRenderDocsLayout,Ot as shellRenderDocsSlug,kt as shellRenderFileTree,At as shellRenderFileTreeNode,jt as shellRenderIcon,Mt as shellRenderLastModified,Nt as shellRenderLinkButton,Pt as shellRenderLinkCard,Ft as shellRenderNotFound,It as shellRenderOpenInAi,Lt as shellRenderPackageInstall,Rt as shellRenderPanels,zt as shellRenderProductDirectory,Bt as shellRenderSearchButton,Vt as shellRenderSidebar,Ht as shellRenderSkipLink,Ut as shellRenderSteps,Wt as shellRenderTableOfContents,Gt as shellRenderTabs,Kt as shellRenderThemeToggle,qt as shellRenderTile,Jt as shellRenderTileGrid,Yt as shellRenderTopNav,Xt as shellRenderTopNavMobile,Zt as shellRenderUpdateBadge,Qt as shellRenderVersionSwitcher,$t as shellResolvePrefetch,en as shellResolveSnippetsConfig,tn as shellRewriteHead,nn as shellRewriteModulepreload,rn as shellSearchButtonScript,an as shellSearchDialogCss,on as shellSearchDialogInnerHtml,sn as shellSearchDialogScript,cn as shellSidebarHeightInitScript,ln as shellSidebarScrollInitScript,un as shellTableOfContentsScript,g as shouldRenderPage,i as sortByDate,dn as tailwindComposeThemeCss,fn as tailwindReadPresetCss,pn as tailwindResolveTheme,mn as verifyLicense};
|
package/index.d.ts
CHANGED
|
@@ -144,6 +144,7 @@ export declare function shellRenderNotFound(): string
|
|
|
144
144
|
export declare function shellRenderOpenInAi(pageUrl: string, pageTitle: string): string
|
|
145
145
|
export declare function shellRenderPackageInstall(inputJson: string): string
|
|
146
146
|
export declare function shellRenderPanels(inputJson: string): string
|
|
147
|
+
export declare function shellRenderProductDirectory(inputJson: string): string
|
|
147
148
|
export declare function shellRenderSearchButton(inputJson: string): string
|
|
148
149
|
export declare function shellRenderSidebar(inputJson: string): string
|
|
149
150
|
export declare function shellRenderSkipLink(inputJson: string): 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.
|
|
97
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
96
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
113
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
112
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
134
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
133
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
150
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
149
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
167
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
166
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
183
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
182
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
202
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
201
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
218
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
217
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
234
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
233
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
254
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
253
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
270
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
269
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
286
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
285
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
307
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
306
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
323
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
322
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
341
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
340
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
357
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
356
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
375
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
374
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
391
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
390
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
409
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
408
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
425
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
424
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
443
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
442
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
459
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
458
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
476
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
475
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
492
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
491
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
512
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
511
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
528
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
527
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
544
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
543
|
+
if (bindingPackageVersion !== '0.16.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.16.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.
|
|
686
|
-
throw new Error(`WASI binding package version mismatch, expected 0.
|
|
685
|
+
if (bindingPackageVersion !== '0.16.0') {
|
|
686
|
+
throw new Error(`WASI binding package version mismatch, expected 0.16.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
689
|
wasiBinding = require('@publier/native-wasm32-wasi')
|
|
@@ -956,6 +956,7 @@ module.exports.shellRenderNotFound = nativeBinding.shellRenderNotFound
|
|
|
956
956
|
module.exports.shellRenderOpenInAi = nativeBinding.shellRenderOpenInAi
|
|
957
957
|
module.exports.shellRenderPackageInstall = nativeBinding.shellRenderPackageInstall
|
|
958
958
|
module.exports.shellRenderPanels = nativeBinding.shellRenderPanels
|
|
959
|
+
module.exports.shellRenderProductDirectory = nativeBinding.shellRenderProductDirectory
|
|
959
960
|
module.exports.shellRenderSearchButton = nativeBinding.shellRenderSearchButton
|
|
960
961
|
module.exports.shellRenderSidebar = nativeBinding.shellRenderSidebar
|
|
961
962
|
module.exports.shellRenderSkipLink = nativeBinding.shellRenderSkipLink
|
package/package.json
CHANGED
|
Binary file
|