@waline/client 2.0.7 → 2.1.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/waline.d.ts CHANGED
@@ -64,9 +64,17 @@ interface WalineComment extends Exclude<WalineCommentData, 'ua'> {
64
64
  sticky?: boolean;
65
65
  browser?: string;
66
66
  os?: string;
67
+ level?: number;
67
68
  }
68
69
 
69
- interface WalineLocale {
70
+ interface WalineDateLocale {
71
+ seconds: string;
72
+ minutes: string;
73
+ hours: string;
74
+ days: string;
75
+ now: string;
76
+ }
77
+ interface WalineLocale extends WalineDateLocale {
70
78
  nick: string;
71
79
  nickError: string;
72
80
  mail: string;
@@ -84,11 +92,6 @@ interface WalineLocale {
84
92
  preview: string;
85
93
  emoji: string;
86
94
  uploadImage: string;
87
- seconds: string;
88
- minutes: string;
89
- hours: string;
90
- days: string;
91
- now: string;
92
95
  uploading: string;
93
96
  login: string;
94
97
  logout: string;
@@ -229,7 +232,7 @@ interface WalineProps {
229
232
  *
230
233
  * @default ['https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo']
231
234
  */
232
- emoji?: (string | WalineEmojiInfo)[];
235
+ emoji?: (string | WalineEmojiInfo)[] | false;
233
236
  /**
234
237
  * 代码高亮
235
238
  *
@@ -457,4 +460,4 @@ interface WalineRecentCommentsResult {
457
460
  }
458
461
  declare const RecentComments: ({ el, serverURL, count, }: WalineRecentCommentsOptions) => Promise<WalineRecentCommentsResult>;
459
462
 
460
- export { Locales, RecentComments, WalineAbort, WalineComment, WalineCommentCountOptions, WalineCommentData, WalineEmojiInfo, WalineEmojiMaps, WalineHighlighter, WalineImageUploader, WalineInitOptions, WalineInstance, WalineLocale, WalineMeta, WalinePageviewCountOptions, WalineProps, WalineRecentCommentsOptions, WalineRecentCommentsResult, WalineTexRenderer, commentCount, defaultLang, defaultTexRenderer, defaultUploadImage, getMeta, init, locales, pageviewCount, version };
463
+ export { Locales, RecentComments, WalineAbort, WalineComment, WalineCommentCountOptions, WalineCommentData, WalineDateLocale, WalineEmojiInfo, WalineEmojiMaps, WalineHighlighter, WalineImageUploader, WalineInitOptions, WalineInstance, WalineLocale, WalineMeta, WalinePageviewCountOptions, WalineProps, WalineRecentCommentsOptions, WalineRecentCommentsResult, WalineTexRenderer, commentCount, defaultLang, defaultTexRenderer, defaultUploadImage, getMeta, init, locales, pageviewCount, version };
@@ -64,9 +64,17 @@ interface WalineComment extends Exclude<WalineCommentData, 'ua'> {
64
64
  sticky?: boolean;
65
65
  browser?: string;
66
66
  os?: string;
67
+ level?: number;
67
68
  }
68
69
 
69
- interface WalineLocale {
70
+ interface WalineDateLocale {
71
+ seconds: string;
72
+ minutes: string;
73
+ hours: string;
74
+ days: string;
75
+ now: string;
76
+ }
77
+ interface WalineLocale extends WalineDateLocale {
70
78
  nick: string;
71
79
  nickError: string;
72
80
  mail: string;
@@ -84,11 +92,6 @@ interface WalineLocale {
84
92
  preview: string;
85
93
  emoji: string;
86
94
  uploadImage: string;
87
- seconds: string;
88
- minutes: string;
89
- hours: string;
90
- days: string;
91
- now: string;
92
95
  uploading: string;
93
96
  login: string;
94
97
  logout: string;
@@ -229,7 +232,7 @@ interface WalineProps {
229
232
  *
230
233
  * @default ['https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo']
231
234
  */
232
- emoji?: (string | WalineEmojiInfo)[];
235
+ emoji?: (string | WalineEmojiInfo)[] | false;
233
236
  /**
234
237
  * 代码高亮
235
238
  *
@@ -457,4 +460,4 @@ interface WalineRecentCommentsResult {
457
460
  }
458
461
  declare const RecentComments: ({ el, serverURL, count, }: WalineRecentCommentsOptions) => Promise<WalineRecentCommentsResult>;
459
462
 
460
- export { Locales, RecentComments, WalineAbort, WalineComment, WalineCommentCountOptions, WalineCommentData, WalineEmojiInfo, WalineEmojiMaps, WalineHighlighter, WalineImageUploader, WalineInitOptions, WalineInstance, WalineLocale, WalineMeta, WalinePageviewCountOptions, WalineProps, WalineRecentCommentsOptions, WalineRecentCommentsResult, WalineTexRenderer, commentCount, defaultLang, defaultTexRenderer, defaultUploadImage, getMeta, init, locales, pageviewCount, version };
463
+ export { Locales, RecentComments, WalineAbort, WalineComment, WalineCommentCountOptions, WalineCommentData, WalineDateLocale, WalineEmojiInfo, WalineEmojiMaps, WalineHighlighter, WalineImageUploader, WalineInitOptions, WalineInstance, WalineLocale, WalineMeta, WalinePageviewCountOptions, WalineProps, WalineRecentCommentsOptions, WalineRecentCommentsResult, WalineTexRenderer, commentCount, defaultLang, defaultTexRenderer, defaultUploadImage, getMeta, init, locales, pageviewCount, version };