vitepress-theme-teek 1.3.2 → 1.3.3

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.
Files changed (75) hide show
  1. package/es/components/common/ArticlePage/src/instance.d.ts +1 -1
  2. package/es/components/common/Avatar/src/avatar.d.ts +1 -1
  3. package/es/components/common/Breadcrumb/src/namespace.d.ts +1 -1
  4. package/es/components/common/Message/src/message.d.ts +1 -1
  5. package/es/components/common/Pagination/src/components/next.d.ts +1 -1
  6. package/es/components/common/Pagination/src/components/prev.d.ts +1 -1
  7. package/es/components/common/Pagination/src/pagination.d.ts +1 -1
  8. package/es/components/common/Segmented/src/instance.d.ts +1 -1
  9. package/es/components/common/Segmented/src/segmented.d.ts +1 -1
  10. package/es/components/theme/ArticleOverviewPage/src/index.vue2.mjs +5 -2
  11. package/es/components/theme/ArticleTitle/src/index.vue.d.ts +1 -1
  12. package/es/components/theme/ConfigProvider/index.d.ts +1 -1
  13. package/es/components/theme/LoginPage/src/login.d.ts +1 -1
  14. package/es/components/theme/RightBottomButton/src/namespace.d.ts +1 -1
  15. package/es/components/theme/ThemeEnhance/src/components/BaseTemplate.vue.d.ts +1 -1
  16. package/es/components/theme/ThemeEnhance/src/components/Title.vue.d.ts +1 -1
  17. package/es/components/theme/ThemeEnhance/src/namespace.d.ts +1 -1
  18. package/es/config/interface/appreciation.d.ts +1 -1
  19. package/es/config/interface/articleAnalyze.d.ts +1 -1
  20. package/es/config/interface/articleShare.d.ts +1 -1
  21. package/es/config/interface/blogger.d.ts +1 -1
  22. package/es/config/interface/codeBlock.d.ts +1 -1
  23. package/es/config/interface/friendLink.d.ts +1 -1
  24. package/es/config/interface/notice.d.ts +1 -1
  25. package/es/config/interface/post.d.ts +2 -2
  26. package/es/config/interface/social.d.ts +1 -1
  27. package/es/config/types.d.ts +2 -2
  28. package/es/hooks/cssModule/namespace.module.scss.d.ts +8 -0
  29. package/es/icons.d.ts +1 -1
  30. package/es/index.css +1 -2
  31. package/es/index.d.ts +7 -7
  32. package/es/version.d.ts +1 -1
  33. package/es/version.mjs +1 -1
  34. package/index.css +1 -1
  35. package/index.js +5 -3
  36. package/index.min.js +66 -66
  37. package/index.min.mjs +72 -72
  38. package/index.mjs +5 -3
  39. package/lib/components/common/ArticlePage/src/instance.d.ts +1 -1
  40. package/lib/components/common/Avatar/src/avatar.d.ts +1 -1
  41. package/lib/components/common/Breadcrumb/src/namespace.d.ts +1 -1
  42. package/lib/components/common/Message/src/message.d.ts +1 -1
  43. package/lib/components/common/Pagination/src/components/next.d.ts +1 -1
  44. package/lib/components/common/Pagination/src/components/prev.d.ts +1 -1
  45. package/lib/components/common/Pagination/src/pagination.d.ts +1 -1
  46. package/lib/components/common/Segmented/src/instance.d.ts +1 -1
  47. package/lib/components/common/Segmented/src/segmented.d.ts +1 -1
  48. package/lib/components/theme/ArticleOverviewPage/src/index.vue2.js +4 -1
  49. package/lib/components/theme/ArticleTitle/src/index.vue.d.ts +1 -1
  50. package/lib/components/theme/ConfigProvider/index.d.ts +1 -1
  51. package/lib/components/theme/LoginPage/src/login.d.ts +1 -1
  52. package/lib/components/theme/RightBottomButton/src/namespace.d.ts +1 -1
  53. package/lib/components/theme/ThemeEnhance/src/components/BaseTemplate.vue.d.ts +1 -1
  54. package/lib/components/theme/ThemeEnhance/src/components/Title.vue.d.ts +1 -1
  55. package/lib/components/theme/ThemeEnhance/src/namespace.d.ts +1 -1
  56. package/lib/config/interface/appreciation.d.ts +1 -1
  57. package/lib/config/interface/articleAnalyze.d.ts +1 -1
  58. package/lib/config/interface/articleShare.d.ts +1 -1
  59. package/lib/config/interface/blogger.d.ts +1 -1
  60. package/lib/config/interface/codeBlock.d.ts +1 -1
  61. package/lib/config/interface/friendLink.d.ts +1 -1
  62. package/lib/config/interface/notice.d.ts +1 -1
  63. package/lib/config/interface/post.d.ts +2 -2
  64. package/lib/config/interface/social.d.ts +1 -1
  65. package/lib/config/types.d.ts +2 -2
  66. package/lib/hooks/cssModule/namespace.module.scss.d.ts +8 -0
  67. package/lib/icons.d.ts +1 -1
  68. package/lib/index.css +1 -2
  69. package/lib/index.d.ts +7 -7
  70. package/lib/version.d.ts +1 -1
  71. package/lib/version.js +1 -1
  72. package/package.json +1 -1
  73. package/theme-chalk/index.css +1 -1
  74. package/theme-chalk/src/components/common/article-page.scss +1 -1
  75. package/theme-chalk/tk-base.css +1 -1
@@ -1,4 +1,4 @@
1
1
  import { default as ArticlePage } from './index.vue';
2
- import { default as DocAsideOutlineItem } from './src/components/DocAsideOutlineItem.vue';
2
+ import { default as DocAsideOutlineItem } from './components/DocAsideOutlineItem.vue';
3
3
  export type TkArticlePageInstance = InstanceType<typeof ArticlePage>;
4
4
  export type TkDocAsideOutlineItemInstance = InstanceType<typeof DocAsideOutlineItem>;
@@ -1,4 +1,4 @@
1
- import { TkIconProps } from '@teek/components/common/Icon';
1
+ import { TkIconProps } from '../../Icon';
2
2
  export interface AvatarProps {
3
3
  /**
4
4
  * 头像大小
@@ -1,4 +1,4 @@
1
- import { ScssVariables } from 'packages/hooks/cssModule/namespace.module.scss';
1
+ import { ScssVariables } from '../../../../hooks/cssModule/namespace.module.scss';
2
2
  export declare const ns: {
3
3
  namespaceModule: ScssVariables;
4
4
  namespace: string;
@@ -1,5 +1,5 @@
1
1
  import { AppContext, VNode } from 'vue';
2
- import { TkIconProps } from '@teek/components/common/Icon';
2
+ import { TkIconProps } from '../../Icon';
3
3
  export declare const messageTypes: readonly ["primary", "success", "info", "warning", "error"];
4
4
  export type MessageType = (typeof messageTypes)[number];
5
5
  export interface MessageConfigContext {
@@ -1,5 +1,5 @@
1
1
  import { default as Next } from './next.vue';
2
- import { TkIconProps } from '@teek/components/common/Icon';
2
+ import { TkIconProps } from '../../../Icon';
3
3
  export interface PaginationNextProps {
4
4
  /**
5
5
  * 是否禁用
@@ -1,5 +1,5 @@
1
1
  import { default as Prev } from './prev.vue';
2
- import { TkIconProps } from '@teek/components/common/Icon';
2
+ import { TkIconProps } from '../../../Icon';
3
3
  export interface PaginationPrevProps {
4
4
  /**
5
5
  * 是否禁用
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef, InjectionKey, ModelRef } from 'vue';
2
- import { TkIconProps } from '@teek/components/common/Icon';
2
+ import { TkIconProps } from '../../Icon';
3
3
  export interface PaginationContext {
4
4
  currentPage?: ModelRef<number>;
5
5
  pageCount?: ComputedRef<number>;
@@ -1,4 +1,4 @@
1
- import { default as Segmented } from './index.vue';
1
+ import { default as Segmented } from './Segmented.vue';
2
2
  import { default as SegmentedItem } from './SegmentedItem.vue';
3
3
  export type TkSegmentedInstance = InstanceType<typeof Segmented>;
4
4
  export type TkSegmentedItemInstance = InstanceType<typeof SegmentedItem>;
@@ -1,4 +1,4 @@
1
- import { TkIconProps } from '@teek/components/common/Icon';
1
+ import { TkIconProps } from '../../Icon';
2
2
  export type ModelType = string | number | object | boolean;
3
3
  export interface SegmentedProps {
4
4
  options: SegmentedOption[];
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, resolveComponent, createBlock, openBlock, unref, normalizeClass, withCtx, createElementBlock, createCommentVNode, createVNode, createTextVNode, createElementVNode, toDisplayString, Fragment, renderList } from 'vue';
1
+ import { defineComponent, computed, resolveComponent, createBlock, openBlock, unref, normalizeClass, withCtx, createElementBlock, createCommentVNode, createVNode, createTextVNode, createElementVNode, toDisplayString, Fragment, renderList, resolveDynamicComponent } from 'vue';
2
2
  import { useData, withBase } from 'vitepress';
3
3
  import { formatDate } from '../../../../helper/dist/index.mjs';
4
4
  import { useLocale } from '../../../../hooks/useLocale.mjs';
@@ -6,6 +6,7 @@ import { useNamespace } from '../../../../hooks/useNamespace.mjs';
6
6
  import '../../../../hooks/useZIndex.mjs';
7
7
  import { usePosts, useTeekConfig } from '../../ConfigProvider/index.mjs';
8
8
  import _sfc_main$1 from '../../../common/ArticlePage/src/index.vue2.mjs';
9
+ import { createDynamicComponent } from '../../ArticleTitle/src/compile.mjs';
9
10
 
10
11
  const _hoisted_1 = { key: 0 };
11
12
  const _hoisted_2 = ["href", "aria-label"];
@@ -167,7 +168,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
167
168
  createElementVNode("a", {
168
169
  href: data.url && unref(withBase)(data.url),
169
170
  "aria-label": data.title
170
- }, toDisplayString(data.title), 9, _hoisted_7)
171
+ }, [
172
+ data.title ? (openBlock(), createBlock(resolveDynamicComponent(unref(createDynamicComponent)(data.title)), { key: 0 })) : createCommentVNode("v-if", true)
173
+ ], 8, _hoisted_7)
171
174
  ]),
172
175
  createElementVNode(
173
176
  "td",
@@ -1,5 +1,5 @@
1
1
  import { TkContentData } from '../../../../config';
2
- import { TkTitleTagProps } from '@teek/components/common/TitleTag';
2
+ import { TkTitleTagProps } from '../../../common/TitleTag';
3
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
4
  type __VLS_Props = {
5
5
  post: TkContentData;
@@ -1,4 +1,4 @@
1
- import { PostData } from '@teek/config/post/types';
1
+ import { PostData } from '../../../config/post/types';
2
2
  import { TeekConfig } from '../../../config';
3
3
  import { Component, Ref, InjectionKey, DefineComponent, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComputedRef } from 'vue';
4
4
  export declare const postsContext: InjectionKey<PostData>;
@@ -1,5 +1,5 @@
1
1
  import { Component, Ref } from 'vue';
2
- import { TkIconProps } from '@teek/components/common/Icon';
2
+ import { TkIconProps } from '../../../common/Icon';
3
3
  import { Private } from '../../../../config';
4
4
  /**
5
5
  * 获取登录状态的存储键
@@ -1,4 +1,4 @@
1
- import { ScssVariables } from 'packages/hooks/cssModule/namespace.module.scss';
1
+ import { ScssVariables } from '../../../../hooks/cssModule/namespace.module.scss';
2
2
  export declare const ns: {
3
3
  namespaceModule: ScssVariables;
4
4
  namespace: string;
@@ -1,4 +1,4 @@
1
- import { TkIconProps } from '@teek/components/common/Icon';
1
+ import { TkIconProps } from '../../../../common/Icon';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  interface TemplateProps {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { TkIconProps } from '@teek/components/common/Icon';
1
+ import { TkIconProps } from '../../../../common/Icon';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = {
4
4
  title?: string;
@@ -1,4 +1,4 @@
1
- import { ScssVariables } from 'packages/hooks/cssModule/namespace.module.scss';
1
+ import { ScssVariables } from '../../../../hooks/cssModule/namespace.module.scss';
2
2
  export declare const ns: {
3
3
  namespaceModule: ScssVariables;
4
4
  namespace: string;
@@ -1,4 +1,4 @@
1
- import { IconProps } from '@teek/components/common/Icon/src/icon';
1
+ import { IconProps } from '../../components/common/Icon/src/icon';
2
2
  export type Appreciation<T extends keyof AppreciationPosition = ""> = {
3
3
  /**
4
4
  * 赞赏位置
@@ -1,4 +1,4 @@
1
- import { ImageViewerProps } from '@teek/components/common/ImageViewer/src/imageViewer';
1
+ import { ImageViewerProps } from '../../components/common/ImageViewer/src/imageViewer';
2
2
  export type ArticleInfoPosition = "post" | "article";
3
3
  export interface ArticleAnalyze {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { IconProps } from '@teek/components/common/Icon/src/icon';
1
+ import { IconProps } from '../../components/common/Icon/src/icon';
2
2
  export interface ArticleShare {
3
3
  /**
4
4
  * 是否开启文章链接分享功能
@@ -1,4 +1,4 @@
1
- import { TkAvatarProps } from '@teek/components/common/Avatar';
1
+ import { TkAvatarProps } from '../../components/common/Avatar';
2
2
  export interface Blogger {
3
3
  /**
4
4
  * 博主昵称
@@ -1,4 +1,4 @@
1
- import { Message } from '@teek/components/common/Message/src/message';
1
+ import { Message } from '../../components/common/Message/src/message';
2
2
  export interface CodeBlock {
3
3
  /**
4
4
  * 是否禁用新版代码块
@@ -1,4 +1,4 @@
1
- import { ImageViewerProps } from '@teek/components/common/ImageViewer/src/imageViewer';
1
+ import { ImageViewerProps } from '../../components/common/ImageViewer/src/imageViewer';
2
2
  import { VpRouter } from '../../hooks';
3
3
  export interface FriendLink {
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { Route } from 'vitepress';
2
- import { IconProps } from '@teek/components/common/Icon/src/icon';
2
+ import { IconProps } from '../../components/common/Icon/src/icon';
3
3
  export interface Notice {
4
4
  /**
5
5
  * 是否启用公告功能
@@ -1,5 +1,5 @@
1
- import { ImageViewerProps } from '@teek/components/common/ImageViewer/src/imageViewer';
2
- import { TitleTagProps } from '@teek/components/common/TitleTag/src/titleTag';
1
+ import { ImageViewerProps } from '../../components/common/ImageViewer/src/imageViewer';
2
+ import { TitleTagProps } from '../../components/common/TitleTag/src/titleTag';
3
3
  export interface Post {
4
4
  /**
5
5
  * 文章模板风格,list 为列表风格,card 为卡片风格
@@ -1,4 +1,4 @@
1
- import { IconProps } from '@teek/components/common/Icon/src/icon';
1
+ import { IconProps } from '../../components/common/Icon/src/icon';
2
2
  export interface Social {
3
3
  /**
4
4
  * 名称,如果作用在 a 标签,则鼠标悬停显示名称,否则在页面文字显示
@@ -1,6 +1,6 @@
1
1
  import { PageData } from 'vitepress';
2
- import { VpContainerProps } from '@teek/components/common/VpContainer/src/vpContainer';
3
- import { Message } from '@teek/components/common/Message/src/message';
2
+ import { VpContainerProps } from '../components/common/VpContainer/src/vpContainer';
3
+ import { Message } from '../components/common/Message/src/message';
4
4
  import { TkPaginationProps } from '../components/common/Pagination';
5
5
  import { Appreciation, ArticleAnalyze, ArticleShare, ArticleUpdate, Author, Banner, Blogger, BodyBgImg, Breadcrumb, Category, CodeBlock, CommentConfig, DocAnalysis, FooterInfo, FooterGroup, FriendLink, ThemeEnhance, Notice, Plugins, Post, SiteAnalytics, Social, Tag, TopArticle, Wallpaper, Markdown, Private, RiskLink } from './interface';
6
6
  export type * from './interface';
@@ -0,0 +1,8 @@
1
+ export interface ScssVariables {
2
+ [x: string]: unknown;
3
+ namespace: string;
4
+ }
5
+
6
+ export let variables: ScssVariables;
7
+
8
+ export default variables;
package/es/icons.d.ts CHANGED
@@ -1 +1 @@
1
- export * from '@teek/static/icons';
1
+ export * from './static/icons';