From 20517053c128b9a8e396d628553f466500361214 Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Sun, 23 Jun 2024 15:39:08 +0800 Subject: [PATCH] fix(enhanced-readabilities): missing exports for SpotlightStyle enums Signed-off-by: Neko Ayaka --- .../vitepress-plugin-enhanced-readabilities/index.md | 5 ++--- .../vitepress-plugin-enhanced-readabilities/index.md | 5 ++--- .../src/client/index.ts | 2 ++ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/pages/en/integrations/vitepress-plugin-enhanced-readabilities/index.md b/docs/pages/en/integrations/vitepress-plugin-enhanced-readabilities/index.md index aa0a240c..7e44675f 100644 --- a/docs/pages/en/integrations/vitepress-plugin-enhanced-readabilities/index.md +++ b/docs/pages/en/integrations/vitepress-plugin-enhanced-readabilities/index.md @@ -373,13 +373,12 @@ For more information on internationalization configuration, see [Internationaliz ```typescript twoslash import { - SpotlightStyles as NolebaseEnhancedReadabilitiesSpotlightStyles, + SpotlightStyle, + LayoutMode, } from '@nolebase/vitepress-plugin-enhanced-readabilities/client' import type { Locale, - LayoutMode, } from '@nolebase/vitepress-plugin-enhanced-readabilities/client' -type SpotlightStyles = typeof NolebaseEnhancedReadabilitiesSpotlightStyles // ---cut--- /** * Options diff --git a/docs/pages/zh-CN/integrations/vitepress-plugin-enhanced-readabilities/index.md b/docs/pages/zh-CN/integrations/vitepress-plugin-enhanced-readabilities/index.md index ffa81330..46f96fc5 100644 --- a/docs/pages/zh-CN/integrations/vitepress-plugin-enhanced-readabilities/index.md +++ b/docs/pages/zh-CN/integrations/vitepress-plugin-enhanced-readabilities/index.md @@ -374,13 +374,12 @@ export const Theme: ThemeConfig = { ```typescript twoslash import { - SpotlightStyles as NolebaseEnhancedReadabilitiesSpotlightStyles, + SpotlightStyle, + LayoutMode, } from '@nolebase/vitepress-plugin-enhanced-readabilities/client' import type { Locale, - LayoutMode, } from '@nolebase/vitepress-plugin-enhanced-readabilities/client' -type SpotlightStyles = typeof NolebaseEnhancedReadabilitiesSpotlightStyles // ---cut--- /** * Options diff --git a/packages/vitepress-plugin-enhanced-readabilities/src/client/index.ts b/packages/vitepress-plugin-enhanced-readabilities/src/client/index.ts index 524e1e37..8010290a 100644 --- a/packages/vitepress-plugin-enhanced-readabilities/src/client/index.ts +++ b/packages/vitepress-plugin-enhanced-readabilities/src/client/index.ts @@ -9,6 +9,7 @@ import { InjectionKey, LayoutMode, LayoutSwitchModeStorageKey, + SpotlightStyle, SpotlightToggledStorageKey, } from './constants' @@ -42,6 +43,7 @@ export { ScreenSpotlight, SpotlightToggledStorageKey, InjectionKey, + SpotlightStyle, LayoutMode, }