@waline/client 1.3.5 → 1.3.6

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 (50) hide show
  1. package/dist/Waline.min.d.ts +67 -60
  2. package/dist/Waline.min.js +1 -1
  3. package/dist/Waline.min.js.map +1 -1
  4. package/dist/Waline.noStyle.d.ts +67 -60
  5. package/dist/Waline.noStyle.js +1 -1
  6. package/dist/Waline.noStyle.js.map +1 -1
  7. package/package.json +1 -1
  8. package/dist/Waline.commonjs.min.js +0 -13676
  9. package/dist/Waline.commonjs.min.js.LICENSE.txt +0 -5
  10. package/dist/Waline.commonjs.min.js.map +0 -1
  11. package/dist/Waline.min.js.LICENSE.txt +0 -5
  12. package/dist/Waline.noStyle.js.LICENSE.txt +0 -5
  13. package/dist/markdown.commonjs.min.js +0 -2870
  14. package/dist/markdown.commonjs.min.js.map +0 -1
  15. package/dist/markdown.min.js +0 -2870
  16. package/dist/markdown.min.js.map +0 -1
  17. package/dist/markdown.noStyle.js +0 -2870
  18. package/dist/markdown.noStyle.js.map +0 -1
  19. package/test/dist/main.js +0 -0
  20. package/test/dist/main.js.LICENSE.txt +0 -355
  21. package/test/node_modules/.package-lock.json +0 -36
  22. package/test/node_modules/comment-regex/index.js +0 -13
  23. package/test/node_modules/comment-regex/license +0 -21
  24. package/test/node_modules/comment-regex/package.json +0 -41
  25. package/test/node_modules/comment-regex/readme.md +0 -52
  26. package/test/node_modules/hanabi/LICENSE +0 -21
  27. package/test/node_modules/hanabi/README.md +0 -43
  28. package/test/node_modules/hanabi/dist/hanabi.js +0 -68
  29. package/test/node_modules/hanabi/dist/hanabi.min.js +0 -2
  30. package/test/node_modules/hanabi/dist/hanabi.min.js.map +0 -1
  31. package/test/node_modules/hanabi/package.json +0 -57
  32. package/test/node_modules/marked/LICENSE.md +0 -44
  33. package/test/node_modules/marked/README.md +0 -74
  34. package/test/node_modules/marked/bin/marked +0 -215
  35. package/test/node_modules/marked/lib/marked.esm.js +0 -2637
  36. package/test/node_modules/marked/lib/marked.js +0 -2787
  37. package/test/node_modules/marked/man/marked.1 +0 -111
  38. package/test/node_modules/marked/man/marked.1.txt +0 -96
  39. package/test/node_modules/marked/marked.min.js +0 -6
  40. package/test/node_modules/marked/package.json +0 -88
  41. package/test/node_modules/marked/src/Lexer.js +0 -491
  42. package/test/node_modules/marked/src/Parser.js +0 -263
  43. package/test/node_modules/marked/src/Renderer.js +0 -166
  44. package/test/node_modules/marked/src/Slugger.js +0 -49
  45. package/test/node_modules/marked/src/TextRenderer.js +0 -42
  46. package/test/node_modules/marked/src/Tokenizer.js +0 -730
  47. package/test/node_modules/marked/src/defaults.js +0 -32
  48. package/test/node_modules/marked/src/helpers.js +0 -260
  49. package/test/node_modules/marked/src/marked.js +0 -270
  50. package/test/node_modules/marked/src/rules.js +0 -310
@@ -10,6 +10,7 @@ interface CommentData {
10
10
  url: string;
11
11
  }
12
12
  interface Comment extends Exclude<CommentData, 'ua'> {
13
+ avatar?: string;
13
14
  browser: string;
14
15
  createAt: string;
15
16
  insertAt: string;
@@ -114,6 +115,72 @@ interface DeprecatedValineOptions {
114
115
  * @deprecated Use `requiredMeta` instead, will be dropped in V2
115
116
  */
116
117
  requiredFields?: Meta[];
118
+ /**
119
+ * @deprecated Please use `AVATAR_PROXY` in server, will be dropped in V2
120
+ *
121
+ * [Gravatar](http://cn.gravatar.com/) 头像展示方式
122
+ *
123
+ * 可选值:
124
+ *
125
+ * - `''`
126
+ * - `'mp'`
127
+ * - `'identicon'`
128
+ * - `'monsterid'`
129
+ * - `'wavatar'`
130
+ * - `'retro'`
131
+ * - `'robohash'`
132
+ * - `'hide'`
133
+ *
134
+ * @see https://waline.js.org/client/avatar.html
135
+ *
136
+ * [Gravatar](http://gravatar.com/) type
137
+ *
138
+ * Optional value:
139
+ *
140
+ * - `''`
141
+ * - `'mp'`
142
+ * - `'identicon'`
143
+ * - `'monsterid'`
144
+ * - `'wavatar'`
145
+ * - `'retro'`
146
+ * - `'robohash'`
147
+ * - `'hide'`
148
+ *
149
+ * @see https://waline.js.org/en/client/avatar.html
150
+ *
151
+ * @default 'mp'
152
+ */
153
+ avatar?: Avatar;
154
+ /**
155
+ * @deprecated Please use `AVATAR_PROXY` in server, will be dropped in V2
156
+ *
157
+ * 设置 Gravatar 头像 CDN 地址
158
+ *
159
+ * Gravatar CDN baseURL
160
+ *
161
+ * @default 'https://seccdn.libavatar.org/avatar/'
162
+ */
163
+ avatarCDN?: string;
164
+ /**
165
+ * @deprecated This option is no longer needed with latest server, will be dropped in V2
166
+ *
167
+ * 每次访问是否**强制**拉取最新的*评论列表头像*
168
+ *
169
+ * Whether **force** pulling the latest avatar each time
170
+ *
171
+ * @default false
172
+ */
173
+ avatarForce?: boolean;
174
+ /**
175
+ * @deprecated Please use mathjax in server, will be dropped in V2
176
+ *
177
+ * 是否注入额外的样式添加对 `<math>` 块的兼容
178
+ *
179
+ * Whether injecting additional styles to support math block
180
+ *
181
+ * @default false
182
+ */
183
+ mathTagSupport?: boolean;
117
184
  /**
118
185
  * @deprecated Use `emojis` instead, will be dropped in V2
119
186
  *
@@ -210,40 +277,6 @@ interface WalineOptions extends DeprecatedValineOptions {
210
277
  * @default window.location.pathname
211
278
  */
212
279
  path?: string;
213
- /**
214
- * [Gravatar](http://cn.gravatar.com/) 头像展示方式
215
- *
216
- * 可选值:
217
- *
218
- * - `''`
219
- * - `'mp'`
220
- * - `'identicon'`
221
- * - `'monsterid'`
222
- * - `'wavatar'`
223
- * - `'retro'`
224
- * - `'robohash'`
225
- * - `'hide'`
226
- *
227
- * @see https://waline.js.org/client/avatar.html
228
- *
229
- * [Gravatar](http://gravatar.com/) type
230
- *
231
- * Optional value:
232
- *
233
- * - `''`
234
- * - `'mp'`
235
- * - `'identicon'`
236
- * - `'monsterid'`
237
- * - `'wavatar'`
238
- * - `'retro'`
239
- * - `'robohash'`
240
- * - `'hide'`
241
- *
242
- * @see https://waline.js.org/en/client/avatar.html
243
- *
244
- * @default 'mp'
245
- */
246
- avatar?: Avatar;
247
280
  /**
248
281
  * 评论者相关属性
249
282
  *
@@ -336,22 +369,6 @@ interface WalineOptions extends DeprecatedValineOptions {
336
369
  * @default true
337
370
  */
338
371
  highlight?: boolean;
339
- /**
340
- * 设置 Gravatar 头像 CDN 地址
341
- *
342
- * Gravatar CDN baseURL
343
- *
344
- * @default 'https://seccdn.libavatar.org/avatar/'
345
- */
346
- avatarCDN?: string;
347
- /**
348
- * 每次访问是否**强制**拉取最新的*评论列表头像*
349
- *
350
- * Whether **force** pulling the latest avatar each time
351
- *
352
- * @default false
353
- */
354
- avatarForce?: boolean;
355
372
  /**
356
373
  * 设置表情包
357
374
  *
@@ -387,16 +404,6 @@ interface WalineOptions extends DeprecatedValineOptions {
387
404
  * @default 'enable'
388
405
  */
389
406
  login?: 'enable' | 'disable' | 'force';
390
- /**
391
- * @deprecated Please use mathjax in server, will be dropped in V2
392
- *
393
- * 是否注入额外的样式添加对 `<math>` 块的兼容
394
- *
395
- * Whether injecting additional styles to support math block
396
- *
397
- * @default false
398
- */
399
- mathTagSupport?: boolean;
400
407
  /**
401
408
  * 是否在页脚展示版权信息
402
409
  *