karin-plugin-kkk 2.30.4 → 2.31.1
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/CHANGELOG.md +69 -0
- package/lib/build-metadata.json +5 -5
- package/lib/core_chunk/amagi.js +1 -1
- package/lib/core_chunk/amagiClient.js +1 -1
- package/lib/core_chunk/{index-CN7AJkHp.d.mts → index-DNlQJ2Zs.d.mts} +11 -3
- package/lib/core_chunk/main.js +1239 -1223
- package/lib/core_chunk/richtext.d.mts +2 -2
- package/lib/core_chunk/richtext.js +2 -2
- package/lib/core_chunk/template.d.mts +83 -101
- package/lib/core_chunk/vendor.js +1224 -865
- package/lib/karin-plugin-kkk.css +71 -17
- package/lib/root.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,75 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [2.31.1](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.31.0...v2.31.1) (2026-05-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🐛 错误修复
|
|
9
|
+
|
|
10
|
+
* **抖音:** 视频索引错误导致断点续传损坏视频文件 ([aa72ba8](https://github.com/ikenxuan/karin-plugin-kkk/commit/aa72ba84a6d463f52afac7ac5526ed19c0b00f22))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### 💄 UI 优化
|
|
14
|
+
|
|
15
|
+
* update icon ([ede8e9c](https://github.com/ikenxuan/karin-plugin-kkk/commit/ede8e9c3533700ad5cb484f1e86ae3162b31cab7))
|
|
16
|
+
* 修复 B站视频动态组件中共创者信息的显示位置和样式 ([d2e965c](https://github.com/ikenxuan/karin-plugin-kkk/commit/d2e965cc38aeccaf453aefc40bd9e5e6821efe14))
|
|
17
|
+
* 提取部分公共组件、视频动态添加原动态正文信息。 ([33ec0f2](https://github.com/ikenxuan/karin-plugin-kkk/commit/33ec0f2d7e186c1a74bef6157ded869c68908d3d))
|
|
18
|
+
* 添加水平分隔线节点及相关功能,支持图片下方注释 ([19e2d24](https://github.com/ikenxuan/karin-plugin-kkk/commit/19e2d244a2f6486fbc871cd2431b5d5584f3e78f))
|
|
19
|
+
* 添加额外内容卡片支持,更新相关组件和类型定义 ([c6145f5](https://github.com/ikenxuan/karin-plugin-kkk/commit/c6145f503bca76b462e0f7a0c248019d8ca48a57))
|
|
20
|
+
* 细优 ([9261164](https://github.com/ikenxuan/karin-plugin-kkk/commit/92611644f35f75dbad5090b97215e0aed65dda0c))
|
|
21
|
+
* 间距 ([92bf6ad](https://github.com/ikenxuan/karin-plugin-kkk/commit/92bf6adbf68f13ca11350429ccdc9d23f121d7bb))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### ♻️ 代码重构
|
|
25
|
+
|
|
26
|
+
* 优化 Bilibili 动态处理逻辑,简化代码结构;调整视频内容组件样式 ([15bc5db](https://github.com/ikenxuan/karin-plugin-kkk/commit/15bc5db4702a8daa114f17978fb0b838d8a366d7))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### ⚙️ 配置变更
|
|
30
|
+
|
|
31
|
+
* 移除次级评论解析深度相关配置及逻辑,更新文档说明 ([f07f91c](https://github.com/ikenxuan/karin-plugin-kkk/commit/f07f91c005fd6f97d9597ac2838fca8c30c62b4d))
|
|
32
|
+
* 移除真实评论数量相关配置及逻辑 ([af75c69](https://github.com/ikenxuan/karin-plugin-kkk/commit/af75c69ba0772739679314fc2fc2852d56827c76))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### 💯 细节优化
|
|
36
|
+
|
|
37
|
+
* 1 ([4509fb0](https://github.com/ikenxuan/karin-plugin-kkk/commit/4509fb08b658c0e085b068a4b1e05fc177834eea))
|
|
38
|
+
|
|
39
|
+
## [2.31.0](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.30.4...v2.31.0) (2026-05-19)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### ✨ 新功能
|
|
43
|
+
|
|
44
|
+
* 设置xx推送尝试开放qqbot ([da3abe8](https://github.com/ikenxuan/karin-plugin-kkk/commit/da3abe8b9542dbb5687625219c7912bb3837c4cd))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### 🐛 错误修复
|
|
48
|
+
|
|
49
|
+
* obv11 获取引用markdown消息无法解析的问题 ([90f2212](https://github.com/ikenxuan/karin-plugin-kkk/commit/90f221235ea6ff7d66febf7e25ac02a176265d0e))
|
|
50
|
+
* 细优 ([cccbf12](https://github.com/ikenxuan/karin-plugin-kkk/commit/cccbf12b17f943b380aa094a3d17ec48fff4ada4))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### 💄 UI 优化
|
|
54
|
+
|
|
55
|
+
* **B站:** 间距 ([f5932fd](https://github.com/ikenxuan/karin-plugin-kkk/commit/f5932fd1120a6d6b3f3b00fcf5ca81d0d5ee96d1))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### 🧰 其他更新
|
|
59
|
+
|
|
60
|
+
* other/live-photo-tip ([90d01b4](https://github.com/ikenxuan/karin-plugin-kkk/commit/90d01b42ee12177b6a011dc566ebdef8b097d8e5))
|
|
61
|
+
* 更新 ([7b70cae](https://github.com/ikenxuan/karin-plugin-kkk/commit/7b70cae064fe8381ad9f3037ec26b4d660b896fa))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### 📦 依赖更新
|
|
65
|
+
|
|
66
|
+
* update ([c2bfa4c](https://github.com/ikenxuan/karin-plugin-kkk/commit/c2bfa4cd54f01751a954c9b9efb5805c64baa861))
|
|
67
|
+
* 对等依赖 ([18467a2](https://github.com/ikenxuan/karin-plugin-kkk/commit/18467a21a24ca58ead06f9fd14db69f85872693e))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### 💯 细节优化
|
|
71
|
+
|
|
72
|
+
* 兼容性提高 ([2706a64](https://github.com/ikenxuan/karin-plugin-kkk/commit/2706a64b916b99c2d27d37e2864ca5805fb0f15b))
|
|
73
|
+
|
|
5
74
|
## [2.30.4](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.30.3...v2.30.4) (2026-05-13)
|
|
6
75
|
|
|
7
76
|
|
package/lib/build-metadata.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.
|
|
3
|
-
"buildTime": "2026-05-
|
|
4
|
-
"buildTimestamp":
|
|
2
|
+
"version": "2.31.1",
|
|
3
|
+
"buildTime": "2026-05-23T12:33:04.888Z",
|
|
4
|
+
"buildTimestamp": 1779539584888,
|
|
5
5
|
"name": "karin-plugin-kkk",
|
|
6
6
|
"description": "Karin 的「抖音」「B 站」视频解析/动态推送插件",
|
|
7
7
|
"homepage": "https://github.com/ikenxuan/karin-plugin-kkk",
|
|
8
|
-
"commitHash": "
|
|
9
|
-
"shortCommitHash": "
|
|
8
|
+
"commitHash": "20ae313ced38d6e09624e18662398062479ed2a3",
|
|
9
|
+
"shortCommitHash": "20ae313c"
|
|
10
10
|
}
|
package/lib/core_chunk/amagi.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $n as
|
|
1
|
+
import { $n as xiaohongshuSign, $r as emitLogDebug, $t as CommentType, An as getHeadersAndData, Ar as BilibiliBv2AvParamsSchema, At as KuaishouApiRoutes, Bn as douyinApiUrls, Br as BilibiliQrcodeParamsSchema, Bt as DouyinInternalMethods, Cn as qtparam, Cr as BilibiliApplyCaptchaParamsSchema, Ct as CreateApp, Dn as logger, Dr as BilibiliAv2BvParamsSchema, Dt as BilibiliMethodMapping, En as logMiddleware, Er as BilibiliArticleParamsSchema, Et as BilibiliApiRoutes, Fn as kuaishouFetcher, Fr as BilibiliDynamicParamsSchema, Ft as getEnglishMethodName, Gn as createSuccessResponse, Gr as BilibiliVideoDownloadParamsSchema, Gt as MethodMaps, Hn as bilibiliFetcher, Hr as BilibiliUserParamsSchema, Ht as KuaishouFetcherMethods, In as kuaishouSign, Ir as BilibiliEmojiParamsSchema, It as BilibiliFetcherMethods, Jn as validateKuaishouParams, Jr as emitApiError, Jt as XiaohongshuMethodToFetcher, Kn as validateBilibiliParams, Kr as BilibiliVideoParamsSchema, Kt as XiaohongshuFetcherMethods, Ln as kuaishouApiUrls, Lr as BilibiliLiveParamsSchema, Lt as BilibiliInternalMethods, Mn as createBoundXiaohongshuFetcher, Mr as BilibiliCommentParamsSchema, Mt as XiaohongshuApiRoutes, Nn as xiaohongshuFetcher, Nr as BilibiliCommentReplyParamsSchema, Nt as XiaohongshuMethodMapping, On as fetchData, Or as BilibiliBangumiInfoParamsSchema, Ot as DouyinApiRoutes, Pn as createBoundKuaishouFetcher, Pr as BilibiliDanmakuParamsSchema, Pt as getApiRoute, Qn as xiaohongshuApiUrls, Qr as emitLog, Qt as MajorType, Rn as douyinFetcher, Rr as BilibiliLoginParamsSchema, Rt as BilibiliMethodToFetcher, Sn as bv2av, Sr as DouyinWorkParamsSchema, Tn as initLogger, Tr as BilibiliArticleInfoParamsSchema, Tt as amagiClient, Un as createBoundBilibiliFetcher, Ur as BilibiliValidateCaptchaParamsSchema, Ut as KuaishouInternalMethods, Vn as douyinSign, Vr as BilibiliQrcodeStatusParamsSchema, Vt as DouyinMethodToFetcher, Wn as createErrorResponse, Wr as BilibiliValidationSchemas, Wt as KuaishouMethodToFetcher, Xn as XiaohongshuMethodRoutes, Xr as emitHttpRequest, Xt as DynamicType, Yn as validateXiaohongshuParams, Yr as emitApiSuccess, Yt as toFetcherMethod, Zn as XiaohongshuValidationSchemas, Zr as emitHttpResponse, Zt as AdditionalType, _n as handleError, _r as DouyinQrcodeParamsSchema, ai as emitNetworkRetry, an as kuaishouUtils, ar as KuaishouUserWorkListParamsSchema, bn as parseDmSegMobileReply, br as DouyinUserParamsSchema, ci as bilibiliApiUrls, cn as kuaishou, cr as DouyinCommentParamsSchema, di as getKuaishouData, dn as createBoundDouyinApi, dr as DouyinEmojiListParamsSchema, ei as emitLogError, en as createAmagiClient, er as KuaishouCommentParamsSchema, fn as douyin, fr as DouyinEmojiProParamsSchema, gn as ValidationError, gr as DouyinMusicParamsSchema, hn as ApiError, hr as DouyinMethodRoutes, ii as emitNetworkError, in as xiaohongshu, ir as KuaishouUserProfileParamsSchema, jn as isNetworkErrorResult, jr as BilibiliColumnInfoParamsSchema, jt as KuaishouMethodMapping, kn as fetchResponse, kr as BilibiliBangumiStreamParamsSchema, kt as DouyinMethodMapping, li as getBilibiliData, ln as douyinUtils, lr as DouyinCommentReplyParamsSchema, mn as createBilibiliRoutes, mr as DouyinLiveRoomParamsSchema, ni as emitLogMark, nn as createXiaohongshuRoutes, nr as KuaishouLiveRoomInfoParamsSchema, oi as bilibili, on as createKuaishouRoutes, or as KuaishouValidationSchemas, pn as bilibiliUtils, pr as DouyinHotWordsParamsSchema, qn as validateDouyinParams, qr as amagiEvents, qt as XiaohongshuInternalMethods, ri as emitLogWarn, rn as createBoundXiaohongshuApi, rr as KuaishouMethodRoutes, si as createBoundBilibiliApi, sn as createBoundKuaishouApi, sr as KuaishouVideoParamsSchema, ti as emitLogInfo, tn as xiaohongshuUtils, tr as KuaishouEmojiParamsSchema, ui as getDouyinData, un as createDouyinRoutes, ur as DouyinDanmakuParamsSchema, vn as bilibiliErrorCodeMap, vr as DouyinSearchParamsSchema, wn as httpLogger, wr as BilibiliArticleCardParamsSchema, wt as amagi, xn as av2bv, xr as DouyinValidationSchemas, yn as wbi_sign, yr as DouyinUserListParamsSchema, zn as createBoundDouyinFetcher, zr as BilibiliMethodRoutes, zt as DouyinFetcherMethods } from "./main.js";
|
|
2
2
|
export { AdditionalType, ApiError, BilibiliApiRoutes, BilibiliApplyCaptchaParamsSchema, BilibiliArticleCardParamsSchema, BilibiliArticleInfoParamsSchema, BilibiliArticleParamsSchema, BilibiliAv2BvParamsSchema, BilibiliBangumiInfoParamsSchema, BilibiliBangumiStreamParamsSchema, BilibiliBv2AvParamsSchema, BilibiliColumnInfoParamsSchema, BilibiliCommentParamsSchema, BilibiliCommentReplyParamsSchema, BilibiliDanmakuParamsSchema, BilibiliDynamicParamsSchema, BilibiliEmojiParamsSchema, BilibiliFetcherMethods, BilibiliInternalMethods, BilibiliLiveParamsSchema, BilibiliLoginParamsSchema, BilibiliMethodMapping, BilibiliMethodRoutes, BilibiliMethodToFetcher, BilibiliQrcodeParamsSchema, BilibiliQrcodeStatusParamsSchema, BilibiliUserParamsSchema, BilibiliValidateCaptchaParamsSchema, BilibiliValidationSchemas, BilibiliVideoDownloadParamsSchema, BilibiliVideoParamsSchema, CommentType, CreateApp, DouyinApiRoutes, DouyinCommentParamsSchema, DouyinCommentReplyParamsSchema, DouyinDanmakuParamsSchema, DouyinEmojiListParamsSchema, DouyinEmojiProParamsSchema, DouyinFetcherMethods, DouyinHotWordsParamsSchema, DouyinInternalMethods, DouyinLiveRoomParamsSchema, DouyinMethodMapping, DouyinMethodRoutes, DouyinMethodToFetcher, DouyinMusicParamsSchema, DouyinQrcodeParamsSchema, DouyinSearchParamsSchema, DouyinUserListParamsSchema, DouyinUserParamsSchema, DouyinValidationSchemas, DouyinWorkParamsSchema, DynamicType, KuaishouApiRoutes, KuaishouCommentParamsSchema, KuaishouEmojiParamsSchema, KuaishouFetcherMethods, KuaishouInternalMethods, KuaishouLiveRoomInfoParamsSchema, KuaishouMethodMapping, KuaishouMethodRoutes, KuaishouMethodToFetcher, KuaishouUserProfileParamsSchema, KuaishouUserWorkListParamsSchema, KuaishouValidationSchemas, KuaishouVideoParamsSchema, MajorType, MethodMaps, ValidationError, XiaohongshuApiRoutes, XiaohongshuFetcherMethods, XiaohongshuInternalMethods, XiaohongshuMethodMapping, XiaohongshuMethodRoutes, XiaohongshuMethodToFetcher, XiaohongshuValidationSchemas, amagi, amagiClient, amagiEvents, av2bv, bilibili, bilibiliApiUrls, bilibiliErrorCodeMap, bilibiliFetcher, bilibiliUtils, bv2av, createAmagiClient, createBilibiliRoutes, createBilibiliRoutes as registerBilibiliRoutes, createBoundBilibiliApi, createBoundBilibiliFetcher, createBoundDouyinApi, createBoundDouyinFetcher, createBoundKuaishouApi, createBoundKuaishouFetcher, createBoundXiaohongshuApi, createBoundXiaohongshuFetcher, createDouyinRoutes, createDouyinRoutes as registerDouyinRoutes, createErrorResponse, createKuaishouRoutes, createKuaishouRoutes as registerKuaishouRoutes, createSuccessResponse, createXiaohongshuRoutes, createXiaohongshuRoutes as registerXiaohongshuRoutes, douyin, douyinApiUrls, douyinFetcher, douyinSign, douyinUtils, emitApiError, emitApiSuccess, emitHttpRequest, emitHttpResponse, emitLog, emitLogDebug, emitLogError, emitLogInfo, emitLogMark, emitLogWarn, emitNetworkError, emitNetworkRetry, fetchData, fetchResponse, getApiRoute, getBilibiliData, getDouyinData, getEnglishMethodName, getHeadersAndData, getKuaishouData, handleError, httpLogger, initLogger, isNetworkErrorResult, kuaishou, kuaishouApiUrls, kuaishouFetcher, kuaishouSign, kuaishouUtils, logMiddleware, logger, parseDmSegMobileReply, qtparam, toFetcherMethod, validateBilibiliParams, validateDouyinParams, validateKuaishouParams, validateXiaohongshuParams, wbi_sign, xiaohongshu, xiaohongshuApiUrls, xiaohongshuFetcher, xiaohongshuSign, xiaohongshuUtils };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { xt as reloadAmagiConfig } from "./main.js";
|
|
2
2
|
export { reloadAmagiConfig };
|
|
@@ -10,7 +10,7 @@ type RichTextNode = RichTextInlineNode | RichTextBlockNode;
|
|
|
10
10
|
/** 行内节点。 */
|
|
11
11
|
type RichTextInlineNode = RichTextTextNode | RichTextEmojiNode | RichTextMentionNode | RichTextSearchKeywordNode | RichTextLineBreakNode | RichTextTopicNode | RichTextAtNode | RichTextLotteryNode | RichTextWebLinkNode | RichTextVoteNode | RichTextViewPictureNode;
|
|
12
12
|
/** 块级节点。 */
|
|
13
|
-
type RichTextBlockNode = RichTextHeadingNode | RichTextParagraphNode | RichTextImageNode | RichTextBlockquoteNode | RichTextListNode | RichTextListItemNode | RichTextCodeBlockNode | RichTextLinkCardNode;
|
|
13
|
+
type RichTextBlockNode = RichTextHeadingNode | RichTextParagraphNode | RichTextImageNode | RichTextBlockquoteNode | RichTextListNode | RichTextListItemNode | RichTextCodeBlockNode | RichTextLinkCardNode | RichTextHorizontalRuleNode;
|
|
14
14
|
/**
|
|
15
15
|
* 富文本文档。
|
|
16
16
|
*
|
|
@@ -140,6 +140,12 @@ interface RichTextImageNode {
|
|
|
140
140
|
src: string;
|
|
141
141
|
/** 替代文本 */
|
|
142
142
|
alt?: string;
|
|
143
|
+
/** 图片下方注释/说明文字 */
|
|
144
|
+
caption?: string;
|
|
145
|
+
}
|
|
146
|
+
/** 水平分隔线节点。 */
|
|
147
|
+
interface RichTextHorizontalRuleNode {
|
|
148
|
+
type: 'horizontalRule';
|
|
143
149
|
}
|
|
144
150
|
/** 引用块节点。 */
|
|
145
151
|
interface RichTextBlockquoteNode {
|
|
@@ -266,7 +272,9 @@ declare const createHeadingNode: (level: 1 | 2 | 3 | 4 | 5 | 6, nodes: RichTextN
|
|
|
266
272
|
/** 创建段落节点。 */
|
|
267
273
|
declare const createParagraphNode: (nodes: RichTextNode[]) => RichTextParagraphNode;
|
|
268
274
|
/** 创建图片节点。 */
|
|
269
|
-
declare const createImageNode: (src: string, alt?: string) => RichTextImageNode;
|
|
275
|
+
declare const createImageNode: (src: string, alt?: string, caption?: string) => RichTextImageNode;
|
|
276
|
+
/** 创建水平分隔线节点。 */
|
|
277
|
+
declare const createHorizontalRuleNode: () => RichTextHorizontalRuleNode;
|
|
270
278
|
/** 创建引用块节点。 */
|
|
271
279
|
declare const createBlockquoteNode: (nodes: RichTextNode[]) => RichTextBlockquoteNode;
|
|
272
280
|
/** 创建列表节点。 */
|
|
@@ -313,4 +321,4 @@ declare const createRichTextDocument: (nodes: RichTextNode[], options?: {
|
|
|
313
321
|
*/
|
|
314
322
|
declare const renderRichTextToReact: (document: RichTextDocument, options?: RichTextRenderOptions) => ReactNode;
|
|
315
323
|
//#endregion
|
|
316
|
-
export {
|
|
324
|
+
export { RichTextWebLinkNode as $, RichTextEmojiDefinition as A, RichTextListNode as B, extractRichTextPlainText as C, RichTextBlockquoteNode as D, RichTextBlockNode as E, RichTextInlineNode as F, RichTextParagraphNode as G, RichTextMentionNode as H, RichTextInlineStyle as I, RichTextSearchKeywordStyleConfig as J, RichTextRenderOptions as K, RichTextLineBreakNode as L, RichTextHeadingNode as M, RichTextHorizontalRuleNode as N, RichTextCodeBlockNode as O, RichTextImageNode as P, RichTextVoteNode as Q, RichTextLinkCardNode as R, createWebLinkNode as S, RichTextAtNode as T, RichTextNode as U, RichTextLotteryNode as V, RichTextNodeStyleConfig as W, RichTextTopicNode as X, RichTextTextNode as Y, RichTextViewPictureNode as Z, createSearchKeywordNode as _, createEmojiNode as a, createViewPictureNode as b, createImageNode as c, createListItemNode as d, createListNode as f, createRichTextDocument as g, createParagraphNode as h, createCodeBlockNode as i, RichTextEmojiNode as j, RichTextDocument as k, createLineBreakNode as l, createMentionNode as m, createAtNode as n, createHeadingNode as o, createLotteryNode as p, RichTextSearchKeywordNode as q, createBlockquoteNode as r, createHorizontalRuleNode as s, renderRichTextToReact as t, createLinkCardNode as u, createTextNode as v, normalizeRichTextNodes as w, createVoteNode as x, createTopicNode as y, RichTextListItemNode as z };
|