@waline/client 2.2.0 → 2.3.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.
@@ -66,6 +66,7 @@ interface WalineComment extends Exclude<WalineCommentData, 'ua'> {
66
66
  os?: string;
67
67
  level?: number;
68
68
  addr?: string;
69
+ label?: string;
69
70
  }
70
71
 
71
72
  interface WalineDateLocale {
@@ -75,7 +76,15 @@ interface WalineDateLocale {
75
76
  days: string;
76
77
  now: string;
77
78
  }
78
- interface WalineLocale extends WalineDateLocale {
79
+ interface WalineLevelLocale {
80
+ level0: string;
81
+ level1: string;
82
+ level2: string;
83
+ level3: string;
84
+ level4: string;
85
+ level5: string;
86
+ }
87
+ interface WalineLocale extends WalineDateLocale, WalineLevelLocale {
79
88
  nick: string;
80
89
  nickError: string;
81
90
  mail: string;
@@ -325,13 +334,8 @@ interface WalineInitOptions extends Omit<WalineProps, 'path'> {
325
334
  }
326
335
  declare type WalineAbort = (reason?: any) => void;
327
336
 
328
- declare const getMeta: (meta: WalineMeta[]) => WalineMeta[];
329
- declare const defaultLang = "zh-CN";
330
- declare const defaultUploadImage: (file: File) => Promise<string>;
331
- declare const defaultTexRenderer: (blockMode: boolean) => string;
332
-
333
337
  declare type Locales = Record<string, WalineLocale>;
334
- declare const locales: Locales;
338
+ declare const defaultLocales: Locales;
335
339
 
336
340
  interface WalineCommentCountOptions {
337
341
  /**
@@ -485,4 +489,4 @@ interface WalineRecentCommentsResult {
485
489
  }
486
490
  declare const RecentComments: ({ el, serverURL, count, lang, }: WalineRecentCommentsOptions) => Promise<WalineRecentCommentsResult>;
487
491
 
488
- 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 };
492
+ export { RecentComments, WalineAbort, WalineComment, WalineCommentCountOptions, WalineCommentData, WalineDateLocale, WalineEmojiInfo, WalineEmojiMaps, WalineHighlighter, WalineImageUploader, WalineInitOptions, WalineInstance, WalineLevelLocale, WalineLocale, WalineMeta, WalinePageviewCountOptions, WalineProps, WalineRecentCommentsOptions, WalineRecentCommentsResult, WalineTexRenderer, commentCount, defaultLocales, init, pageviewCount, version };