@waline/client 2.1.2-test.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.
@@ -65,6 +65,8 @@ interface WalineComment extends Exclude<WalineCommentData, 'ua'> {
65
65
  browser?: string;
66
66
  os?: string;
67
67
  level?: number;
68
+ addr?: string;
69
+ label?: string;
68
70
  }
69
71
 
70
72
  interface WalineDateLocale {
@@ -74,7 +76,15 @@ interface WalineDateLocale {
74
76
  days: string;
75
77
  now: string;
76
78
  }
77
- 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 {
78
88
  nick: string;
79
89
  nickError: string;
80
90
  mail: string;
@@ -324,13 +334,8 @@ interface WalineInitOptions extends Omit<WalineProps, 'path'> {
324
334
  }
325
335
  declare type WalineAbort = (reason?: any) => void;
326
336
 
327
- declare const getMeta: (meta: WalineMeta[]) => WalineMeta[];
328
- declare const defaultLang = "zh-CN";
329
- declare const defaultUploadImage: (file: File) => Promise<string>;
330
- declare const defaultTexRenderer: (blockMode: boolean) => string;
331
-
332
337
  declare type Locales = Record<string, WalineLocale>;
333
- declare const locales: Locales;
338
+ declare const defaultLocales: Locales;
334
339
 
335
340
  interface WalineCommentCountOptions {
336
341
  /**
@@ -386,7 +391,7 @@ interface WalineInstance {
386
391
  *
387
392
  * @description when not setting `path` option, it will be reset to `window.location.pathname`
388
393
  */
389
- update: (newOptions: Partial<Omit<WalineInitOptions, 'el'>>) => void;
394
+ update: (newOptions?: Partial<Omit<WalineInitOptions, 'el'>>) => void;
390
395
  /**
391
396
  * 取消挂载并摧毁 Waline 实例
392
397
  *
@@ -484,4 +489,4 @@ interface WalineRecentCommentsResult {
484
489
  }
485
490
  declare const RecentComments: ({ el, serverURL, count, lang, }: WalineRecentCommentsOptions) => Promise<WalineRecentCommentsResult>;
486
491
 
487
- 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 };