@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.
- package/dist/component.esm.js +2 -0
- package/dist/component.esm.js.map +1 -0
- package/dist/component.js +1 -1
- package/dist/component.js.map +1 -1
- package/dist/legacy.d.ts +10 -2
- package/dist/legacy.js +1 -1
- package/dist/legacy.js.map +1 -1
- package/dist/pageview.cjs.js +1 -1
- package/dist/pageview.esm.js +1 -1
- package/dist/pageview.js +1 -1
- package/dist/pageview.js.map +1 -1
- package/dist/shim.d.ts +14 -9
- package/dist/shim.esm.d.ts +14 -9
- package/dist/shim.esm.js +1 -1
- package/dist/shim.esm.js.map +1 -1
- package/dist/shim.js +1 -1
- package/dist/shim.js.map +1 -1
- package/dist/waline.cjs.d.ts +14 -9
- package/dist/waline.cjs.js +1 -1
- package/dist/waline.cjs.js.map +1 -1
- package/dist/waline.d.ts +14 -9
- package/dist/waline.esm.d.ts +14 -9
- package/dist/waline.esm.js +1 -1
- package/dist/waline.esm.js.map +1 -1
- package/dist/waline.js +1 -1
- package/dist/waline.js.map +1 -1
- package/package.json +9 -5
- package/src/components/CommentCard.vue +3 -1
- package/src/components/Waline.vue +2 -2
- package/src/config/i18n/index.ts +1 -1
- package/src/entrys/full.ts +1 -1
- package/src/entrys/init.ts +1 -1
- package/src/init.ts +2 -2
- package/src/typings/comment.ts +2 -0
- package/src/typings/locale.ts +10 -1
- package/src/utils/config.ts +2 -2
package/dist/waline.cjs.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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 {
|
|
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 };
|