karin-plugin-kkk 2.31.0 → 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 +34 -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 +860 -1295
- package/lib/core_chunk/richtext.d.mts +2 -2
- package/lib/core_chunk/richtext.js +2 -2
- package/lib/core_chunk/template.d.mts +64 -97
- package/lib/core_chunk/vendor.js +200 -142
- package/lib/karin-plugin-kkk.css +19 -17
- package/lib/root.js +1 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { RichTextAtNode, RichTextBlockNode, RichTextBlockquoteNode, RichTextCodeBlockNode, RichTextDocument, RichTextEmojiDefinition, RichTextEmojiNode, RichTextHeadingNode, RichTextImageNode, RichTextInlineNode, RichTextInlineStyle, RichTextLineBreakNode, RichTextLinkCardNode, RichTextListItemNode, RichTextListNode, RichTextLotteryNode, RichTextMentionNode, RichTextNode, RichTextNodeStyleConfig, RichTextParagraphNode, RichTextRenderOptions, RichTextSearchKeywordNode, RichTextSearchKeywordStyleConfig, RichTextTextNode, RichTextTopicNode, RichTextViewPictureNode, RichTextVoteNode, RichTextWebLinkNode, createAtNode, createBlockquoteNode, createCodeBlockNode, createEmojiNode, createHeadingNode, createImageNode, createLineBreakNode, createLinkCardNode, createListItemNode, createListNode, createLotteryNode, createMentionNode, createParagraphNode, createRichTextDocument, createSearchKeywordNode, createTextNode, createTopicNode, createViewPictureNode, createVoteNode, createWebLinkNode, extractRichTextPlainText, normalizeRichTextNodes, renderRichTextToReact };
|
|
1
|
+
import { $ as RichTextWebLinkNode, A as RichTextEmojiDefinition, B as RichTextListNode, C as extractRichTextPlainText, D as RichTextBlockquoteNode, E as RichTextBlockNode, F as RichTextInlineNode, G as RichTextParagraphNode, H as RichTextMentionNode, I as RichTextInlineStyle, J as RichTextSearchKeywordStyleConfig, K as RichTextRenderOptions, L as RichTextLineBreakNode, M as RichTextHeadingNode, N as RichTextHorizontalRuleNode, O as RichTextCodeBlockNode, P as RichTextImageNode, Q as RichTextVoteNode, R as RichTextLinkCardNode, S as createWebLinkNode, T as RichTextAtNode, U as RichTextNode, V as RichTextLotteryNode, W as RichTextNodeStyleConfig, X as RichTextTopicNode, Y as RichTextTextNode, Z as RichTextViewPictureNode, _ as createSearchKeywordNode, a as createEmojiNode, b as createViewPictureNode, c as createImageNode, d as createListItemNode, f as createListNode, g as createRichTextDocument, h as createParagraphNode, i as createCodeBlockNode, j as RichTextEmojiNode, k as RichTextDocument, l as createLineBreakNode, m as createMentionNode, n as createAtNode, o as createHeadingNode, p as createLotteryNode, q as RichTextSearchKeywordNode, r as createBlockquoteNode, s as createHorizontalRuleNode, t as renderRichTextToReact, u as createLinkCardNode, v as createTextNode, w as normalizeRichTextNodes, x as createVoteNode, y as createTopicNode, z as RichTextListItemNode } from "./index-DNlQJ2Zs.mjs";
|
|
2
|
+
export { RichTextAtNode, RichTextBlockNode, RichTextBlockquoteNode, RichTextCodeBlockNode, RichTextDocument, RichTextEmojiDefinition, RichTextEmojiNode, RichTextHeadingNode, RichTextHorizontalRuleNode, RichTextImageNode, RichTextInlineNode, RichTextInlineStyle, RichTextLineBreakNode, RichTextLinkCardNode, RichTextListItemNode, RichTextListNode, RichTextLotteryNode, RichTextMentionNode, RichTextNode, RichTextNodeStyleConfig, RichTextParagraphNode, RichTextRenderOptions, RichTextSearchKeywordNode, RichTextSearchKeywordStyleConfig, RichTextTextNode, RichTextTopicNode, RichTextViewPictureNode, RichTextVoteNode, RichTextWebLinkNode, createAtNode, createBlockquoteNode, createCodeBlockNode, createEmojiNode, createHeadingNode, createHorizontalRuleNode, createImageNode, createLineBreakNode, createLinkCardNode, createListItemNode, createListNode, createLotteryNode, createMentionNode, createParagraphNode, createRichTextDocument, createSearchKeywordNode, createTextNode, createTopicNode, createViewPictureNode, createVoteNode, createWebLinkNode, extractRichTextPlainText, normalizeRichTextNodes, renderRichTextToReact };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { createAtNode, createBlockquoteNode, createCodeBlockNode, createEmojiNode, createHeadingNode, createImageNode, createLineBreakNode, createLinkCardNode, createListItemNode, createListNode, createLotteryNode, createMentionNode, createParagraphNode, createRichTextDocument, createSearchKeywordNode, createTextNode, createTopicNode, createViewPictureNode, createVoteNode, createWebLinkNode, extractRichTextPlainText, normalizeRichTextNodes, renderRichTextToReact };
|
|
1
|
+
import { $ as createLinkCardNode, G as createAtNode, J as createEmojiNode, K as createBlockquoteNode, Q as createLineBreakNode, W as renderRichTextToReact, X as createHorizontalRuleNode, Y as createHeadingNode, Z as createImageNode, at as createRichTextDocument, ct as createTopicNode, dt as createWebLinkNode, et as createListItemNode, ft as extractRichTextPlainText, it as createParagraphNode, lt as createViewPictureNode, nt as createLotteryNode, ot as createSearchKeywordNode, pt as normalizeRichTextNodes, q as createCodeBlockNode, rt as createMentionNode, st as createTextNode, tt as createListNode, ut as createVoteNode } from "./main.js";
|
|
2
|
+
export { createAtNode, createBlockquoteNode, createCodeBlockNode, createEmojiNode, createHeadingNode, createHorizontalRuleNode, createImageNode, createLineBreakNode, createLinkCardNode, createListItemNode, createListNode, createLotteryNode, createMentionNode, createParagraphNode, createRichTextDocument, createSearchKeywordNode, createTextNode, createTopicNode, createViewPictureNode, createVoteNode, createWebLinkNode, extractRichTextPlainText, normalizeRichTextNodes, renderRichTextToReact };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import {
|
|
2
|
+
import { k as RichTextDocument } from "./index-DNlQJ2Zs.mjs";
|
|
3
3
|
import { EventEmitter } from "node:events";
|
|
4
4
|
import { AxiosRequestConfig, AxiosResponse } from "axios";
|
|
5
5
|
import React$1 from "react";
|
|
@@ -883,7 +883,7 @@ interface DecorationCardData {
|
|
|
883
883
|
/**
|
|
884
884
|
* 用户名元数据,用于传递 VIP 状态和颜色信息
|
|
885
885
|
*/
|
|
886
|
-
interface UsernameMetadata
|
|
886
|
+
interface UsernameMetadata {
|
|
887
887
|
/** 用户名 */
|
|
888
888
|
name: string;
|
|
889
889
|
/** VIP状态,1为年度大会员 */
|
|
@@ -891,33 +891,56 @@ interface UsernameMetadata$1 {
|
|
|
891
891
|
/** 昵称颜色,VIP用户特有 */
|
|
892
892
|
nicknameColor: string | null;
|
|
893
893
|
}
|
|
894
|
+
/**
|
|
895
|
+
* B站动态基础数据接口(所有动态类型共有的字段)
|
|
896
|
+
*/
|
|
897
|
+
interface BilibiliDynamicBaseData {
|
|
898
|
+
/** 是否使用深色主题 */
|
|
899
|
+
useDarkTheme?: boolean;
|
|
900
|
+
/** 用户头像URL */
|
|
901
|
+
avatar_url: string;
|
|
902
|
+
/** 头像框 */
|
|
903
|
+
frame?: string;
|
|
904
|
+
/** 用户名元数据 */
|
|
905
|
+
usernameMeta: UsernameMetadata;
|
|
906
|
+
/** 动态创建时间 */
|
|
907
|
+
create_time: string;
|
|
908
|
+
/** 装饰卡片 */
|
|
909
|
+
decoration_card?: DecorationCardData;
|
|
910
|
+
/** 点赞数 */
|
|
911
|
+
dianzan: string | number;
|
|
912
|
+
/** 评论数 */
|
|
913
|
+
pinglun: string | number;
|
|
914
|
+
/** 分享数 */
|
|
915
|
+
share: string | number;
|
|
916
|
+
/** 渲染时间 */
|
|
917
|
+
render_time: string;
|
|
918
|
+
/** 用户短ID */
|
|
919
|
+
user_shortid: string | number;
|
|
920
|
+
/** 获赞总数 */
|
|
921
|
+
total_favorited: string | number;
|
|
922
|
+
/** 关注数 */
|
|
923
|
+
following_count: string | number;
|
|
924
|
+
/** 粉丝数 */
|
|
925
|
+
fans: string | number;
|
|
926
|
+
/** 动态类型 */
|
|
927
|
+
dynamicTYPE: string;
|
|
928
|
+
/** 动态ID */
|
|
929
|
+
dynamic_id: string;
|
|
930
|
+
/** 分享链接 */
|
|
931
|
+
share_url: string;
|
|
932
|
+
}
|
|
894
933
|
/**
|
|
895
934
|
* B站普通动态组件属性接口
|
|
896
935
|
*/
|
|
897
936
|
interface BilibiliDynamicProps extends BaseComponentProps {
|
|
898
937
|
/** 渲染请求数据 */
|
|
899
|
-
data: {
|
|
900
|
-
/**
|
|
901
|
-
avatar_url: string; /** 头像框 */
|
|
902
|
-
frame?: string; /** 用户名元数据 */
|
|
903
|
-
usernameMeta: UsernameMetadata$1; /** 动态创建时间 */
|
|
904
|
-
create_time: string; /** 装饰卡片 */
|
|
905
|
-
decoration_card?: DecorationCardData; /** 图文动态标题 */
|
|
906
|
-
title?: string; /** 动态文本内容(富文本文档) */
|
|
938
|
+
data: BilibiliDynamicBaseData & {
|
|
939
|
+
/** 图文动态标题 */title?: string; /** 动态文本内容(富文本文档) */
|
|
907
940
|
text: RichTextDocument | null; /** 图片URL数组 */
|
|
908
941
|
image_url: Array<{
|
|
909
942
|
image_src: string;
|
|
910
|
-
}>; /**
|
|
911
|
-
dianzan: string | number; /** 评论数 */
|
|
912
|
-
pinglun: string | number; /** 分享数 */
|
|
913
|
-
share: string | number; /** 渲染时间 */
|
|
914
|
-
render_time: string; /** 用户短ID */
|
|
915
|
-
user_shortid: string | number; /** 获赞总数 */
|
|
916
|
-
total_favorited: string | number; /** 关注数 */
|
|
917
|
-
following_count: string | number; /** 粉丝数 */
|
|
918
|
-
fans: string | number; /** 动态类型 */
|
|
919
|
-
dynamicTYPE: string; /** 分享链接 */
|
|
920
|
-
share_url: string; /** 图片布局方式 */
|
|
943
|
+
}>; /** 图片布局方式 */
|
|
921
944
|
imageLayout: string; /** 相关内容卡片 */
|
|
922
945
|
additional?: BilibiliAdditionalData;
|
|
923
946
|
};
|
|
@@ -1004,24 +1027,8 @@ interface BilibiliAdditionalData {
|
|
|
1004
1027
|
*/
|
|
1005
1028
|
interface BilibiliWordDynamicProps extends BaseComponentProps {
|
|
1006
1029
|
/** 渲染请求数据 */
|
|
1007
|
-
data: {
|
|
1008
|
-
/**
|
|
1009
|
-
avatar_url: string; /** 头像框 */
|
|
1010
|
-
frame?: string; /** 用户名元数据 */
|
|
1011
|
-
usernameMeta: UsernameMetadata$1; /** 动态创建时间 */
|
|
1012
|
-
create_time: string; /** 装饰卡片 */
|
|
1013
|
-
decoration_card?: DecorationCardData; /** 动态文本内容(富文本文档) */
|
|
1014
|
-
text: RichTextDocument | null; /** 点赞数 */
|
|
1015
|
-
dianzan: string | number; /** 评论数 */
|
|
1016
|
-
pinglun: string | number; /** 分享数 */
|
|
1017
|
-
share: string | number; /** 渲染时间 */
|
|
1018
|
-
render_time: string; /** 用户短ID */
|
|
1019
|
-
user_shortid: string | number; /** 获赞总数 */
|
|
1020
|
-
total_favorited: string | number; /** 关注数 */
|
|
1021
|
-
following_count: string | number; /** 粉丝数 */
|
|
1022
|
-
fans: string | number; /** 动态类型 */
|
|
1023
|
-
dynamicTYPE: string; /** 分享链接 */
|
|
1024
|
-
share_url: string; /** 相关内容卡片 */
|
|
1030
|
+
data: BilibiliDynamicBaseData & {
|
|
1031
|
+
/** 动态文本内容(富文本文档) */text: RichTextDocument | null; /** 相关内容卡片 */
|
|
1025
1032
|
additional?: BilibiliAdditionalData;
|
|
1026
1033
|
};
|
|
1027
1034
|
/** 预生成的二维码数据URL */
|
|
@@ -1038,7 +1045,7 @@ interface BilibiliArticleDynamicProps extends BaseComponentProps {
|
|
|
1038
1045
|
/** 是否使用深色主题 */useDarkTheme?: boolean; /** 用户头像URL */
|
|
1039
1046
|
avatar_url: string; /** 头像框 */
|
|
1040
1047
|
frame?: string; /** 用户名元数据 */
|
|
1041
|
-
usernameMeta: UsernameMetadata
|
|
1048
|
+
usernameMeta: UsernameMetadata; /** 动态创建时间 */
|
|
1042
1049
|
create_time: string; /** 装饰卡片 */
|
|
1043
1050
|
decoration_card?: DecorationCardData; /** 专栏标题 */
|
|
1044
1051
|
title: string; /** 专栏摘要 */
|
|
@@ -1082,7 +1089,7 @@ interface OriginalContentAV {
|
|
|
1082
1089
|
/** 头像框 */
|
|
1083
1090
|
frame?: string;
|
|
1084
1091
|
/** 用户名元数据 */
|
|
1085
|
-
usernameMeta: UsernameMetadata
|
|
1092
|
+
usernameMeta: UsernameMetadata;
|
|
1086
1093
|
/** 创建时间 */
|
|
1087
1094
|
create_time: string;
|
|
1088
1095
|
/** 装饰卡片 */
|
|
@@ -1109,7 +1116,7 @@ interface OriginalContentDraw {
|
|
|
1109
1116
|
/** 头像框 */
|
|
1110
1117
|
frame?: string;
|
|
1111
1118
|
/** 用户名元数据 */
|
|
1112
|
-
usernameMeta: UsernameMetadata
|
|
1119
|
+
usernameMeta: UsernameMetadata;
|
|
1113
1120
|
/** 创建时间 */
|
|
1114
1121
|
create_time: string;
|
|
1115
1122
|
/** 装饰卡片 */
|
|
@@ -1130,13 +1137,15 @@ interface OriginalContentWord {
|
|
|
1130
1137
|
/** 头像框 */
|
|
1131
1138
|
frame?: string;
|
|
1132
1139
|
/** 用户名元数据 */
|
|
1133
|
-
usernameMeta: UsernameMetadata
|
|
1140
|
+
usernameMeta: UsernameMetadata;
|
|
1134
1141
|
/** 创建时间 */
|
|
1135
1142
|
create_time: string;
|
|
1136
1143
|
/** 装饰卡片 */
|
|
1137
1144
|
decoration_card?: DecorationCardData;
|
|
1138
1145
|
/** 动态文本内容(富文本文档) */
|
|
1139
1146
|
text: RichTextDocument;
|
|
1147
|
+
/** 相关内容卡片 */
|
|
1148
|
+
additional?: BilibiliAdditionalData;
|
|
1140
1149
|
}
|
|
1141
1150
|
/**
|
|
1142
1151
|
* 原始内容直播推荐类型接口
|
|
@@ -1147,7 +1156,7 @@ interface OriginalContentLiveRcmd {
|
|
|
1147
1156
|
/** 头像框 */
|
|
1148
1157
|
frame?: string;
|
|
1149
1158
|
/** 用户名元数据 */
|
|
1150
|
-
usernameMeta: UsernameMetadata
|
|
1159
|
+
usernameMeta: UsernameMetadata;
|
|
1151
1160
|
/** 创建时间 */
|
|
1152
1161
|
create_time: string;
|
|
1153
1162
|
/** 装饰卡片 */
|
|
@@ -1180,25 +1189,9 @@ interface BilibiliForwardOriginalContentProps {
|
|
|
1180
1189
|
*/
|
|
1181
1190
|
interface BilibiliForwardDynamicProps extends BaseComponentProps {
|
|
1182
1191
|
/** 渲染请求数据 */
|
|
1183
|
-
data: {
|
|
1184
|
-
/**
|
|
1185
|
-
|
|
1186
|
-
frame?: string; /** 用户名元数据 */
|
|
1187
|
-
usernameMeta: UsernameMetadata$1; /** 动态创建时间 */
|
|
1188
|
-
create_time: string; /** 装饰卡片 */
|
|
1189
|
-
decoration_card?: DecorationCardData; /** 动态文本内容(富文本文档) */
|
|
1190
|
-
text: RichTextDocument; /** 原始内容 */
|
|
1191
|
-
original_content: BilibiliForwardOriginalContentProps['original_content']; /** 点赞数 */
|
|
1192
|
-
dianzan: string | number; /** 评论数 */
|
|
1193
|
-
pinglun: string | number; /** 分享数 */
|
|
1194
|
-
share: string | number; /** 渲染时间 */
|
|
1195
|
-
render_time: string; /** 用户短ID */
|
|
1196
|
-
user_shortid: string | number; /** 获赞总数 */
|
|
1197
|
-
total_favorited: string | number; /** 关注数 */
|
|
1198
|
-
following_count: string | number; /** 粉丝数 */
|
|
1199
|
-
fans: string | number; /** 动态类型 */
|
|
1200
|
-
dynamicTYPE: string; /** 分享链接 */
|
|
1201
|
-
share_url: string; /** 图片URL */
|
|
1192
|
+
data: BilibiliDynamicBaseData & {
|
|
1193
|
+
/** 动态文本内容(富文本文档) */text: RichTextDocument; /** 原始内容 */
|
|
1194
|
+
original_content: BilibiliForwardOriginalContentProps['original_content']; /** 图片URL */
|
|
1202
1195
|
imgList: string[] | null;
|
|
1203
1196
|
};
|
|
1204
1197
|
/** 预生成的二维码数据URL */
|
|
@@ -1229,7 +1222,7 @@ interface BilibiliLiveDynamicProps extends BaseComponentProps {
|
|
|
1229
1222
|
image_url: string; /** 直播标题 */
|
|
1230
1223
|
text: RichTextDocument; /** 直播房间信息(分区 | 房间号) */
|
|
1231
1224
|
liveinf: string; /** 用户名元数据 */
|
|
1232
|
-
usernameMeta: UsernameMetadata
|
|
1225
|
+
usernameMeta: UsernameMetadata; /** 用户头像URL */
|
|
1233
1226
|
avatar_url: string; /** 头像框 */
|
|
1234
1227
|
frame?: string; /** 粉丝数 */
|
|
1235
1228
|
fans: string; /** 时间信息 */
|
|
@@ -1252,30 +1245,15 @@ interface BilibiliLiveDynamicProps extends BaseComponentProps {
|
|
|
1252
1245
|
*/
|
|
1253
1246
|
interface BilibiliVideoDynamicProps extends BaseComponentProps {
|
|
1254
1247
|
/** 渲染请求数据 */
|
|
1255
|
-
data: {
|
|
1256
|
-
/**
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
create_time: string; /** 装饰卡片 */
|
|
1261
|
-
decoration_card?: DecorationCardData; /** 视频标题 */
|
|
1262
|
-
text: RichTextDocument; /** 视频描述 */
|
|
1263
|
-
desc: RichTextDocument; /** 视频封面图片URL */
|
|
1264
|
-
image_url: string; /** 点赞数 */
|
|
1265
|
-
dianzan: string | number; /** 评论数 */
|
|
1266
|
-
pinglun: string | number; /** 分享数 */
|
|
1267
|
-
share: string | number; /** 硬币数 */
|
|
1248
|
+
data: BilibiliDynamicBaseData & {
|
|
1249
|
+
/** 视频标题 */text: RichTextDocument; /** 视频描述 */
|
|
1250
|
+
desc: RichTextDocument; /** 动态正文(富文本文档) */
|
|
1251
|
+
dynamic_text: RichTextDocument | null; /** 视频封面图片URL */
|
|
1252
|
+
image_url: string; /** 硬币数 */
|
|
1268
1253
|
coin: string | number; /** 浏览量 */
|
|
1269
1254
|
view: string | number; /** 视频时长 */
|
|
1270
|
-
duration_text: string; /**
|
|
1271
|
-
|
|
1272
|
-
user_shortid: string | number; /** 获赞总数 */
|
|
1273
|
-
total_favorited: string | number; /** 关注数 */
|
|
1274
|
-
following_count: string | number; /** 粉丝数 */
|
|
1275
|
-
fans: string | number; /** 动态类型 */
|
|
1276
|
-
dynamicTYPE: string; /** 分享链接 */
|
|
1277
|
-
share_url: string; /** 动态ID */
|
|
1278
|
-
dynamic_id: string; /** 共创者列表 (可选) */
|
|
1255
|
+
duration_text: string; /** 视频分P数量 */
|
|
1256
|
+
page_length: number; /** 共创者列表 (可选) */
|
|
1279
1257
|
staff?: Array<{
|
|
1280
1258
|
/** 用户ID */mid: number; /** 职位标题 (UP主/参演) */
|
|
1281
1259
|
title: string; /** 用户名 */
|
|
@@ -1346,17 +1324,6 @@ interface BilibiliVideoStat {
|
|
|
1346
1324
|
/** VT标识 */
|
|
1347
1325
|
vt: number;
|
|
1348
1326
|
}
|
|
1349
|
-
/**
|
|
1350
|
-
* 用户名元数据接口
|
|
1351
|
-
*/
|
|
1352
|
-
interface UsernameMetadata {
|
|
1353
|
-
/** 用户名 */
|
|
1354
|
-
name: string;
|
|
1355
|
-
/** VIP状态 */
|
|
1356
|
-
vipStatus: number;
|
|
1357
|
-
/** 昵称颜色 */
|
|
1358
|
-
nicknameColor: string | null;
|
|
1359
|
-
}
|
|
1360
1327
|
/**
|
|
1361
1328
|
* B站视频UP主信息接口
|
|
1362
1329
|
*/
|