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
|
@@ -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
|
*/
|
|
@@ -2134,6 +2101,16 @@ interface QrLoginProps {
|
|
|
2134
2101
|
useDarkTheme?: boolean;
|
|
2135
2102
|
}
|
|
2136
2103
|
//#endregion
|
|
2104
|
+
//#region ../template/src/types/platforms/other/livePhotoTip.d.ts
|
|
2105
|
+
interface LivePhotoTipProps extends BaseComponentProps {
|
|
2106
|
+
data: {
|
|
2107
|
+
/** 提示标题 */title?: string; /** 附加说明 */
|
|
2108
|
+
description?: string;
|
|
2109
|
+
} & {
|
|
2110
|
+
/** 是否使用深色主题 */useDarkTheme?: boolean;
|
|
2111
|
+
};
|
|
2112
|
+
}
|
|
2113
|
+
//#endregion
|
|
2137
2114
|
//#region ../template/src/types/platforms/other/statistics.d.ts
|
|
2138
2115
|
/**
|
|
2139
2116
|
* 群组解析统计数据接口
|
|
@@ -2219,6 +2196,8 @@ interface RenderRequest<T = Record<string, unknown>> {
|
|
|
2219
2196
|
frameworkVersion: string; /** 是否有可用更新 */
|
|
2220
2197
|
hasUpdate?: boolean;
|
|
2221
2198
|
};
|
|
2199
|
+
/** 水印比特大小 */
|
|
2200
|
+
watermarkTextBitSize: number;
|
|
2222
2201
|
/** 渲染数据 */
|
|
2223
2202
|
data: T & {
|
|
2224
2203
|
/** 是否使用深色主题 */useDarkTheme?: boolean; /** 二维码分享链接 */
|
|
@@ -2241,10 +2220,12 @@ interface RenderResponse {
|
|
|
2241
2220
|
* @template T 子组件的数据类型
|
|
2242
2221
|
*/
|
|
2243
2222
|
interface BaseComponentProps<T = Record<string, any>> extends Pick<RenderRequest, 'version' | 'scale'> {
|
|
2223
|
+
/** 水印比特大小 */
|
|
2224
|
+
watermarkTextBitSize?: RenderRequest['watermarkTextBitSize'];
|
|
2244
2225
|
/** 渲染数据 - 子组件的具体参数 */
|
|
2245
|
-
data: {
|
|
2226
|
+
data: T & {
|
|
2246
2227
|
/** 是否使用深色主题 */useDarkTheme?: boolean;
|
|
2247
|
-
}
|
|
2228
|
+
};
|
|
2248
2229
|
}
|
|
2249
2230
|
/**
|
|
2250
2231
|
* 抖音平台组件ID
|
|
@@ -2265,7 +2246,7 @@ type XiaohongshuComponentIds = 'noteInfo' | 'comment';
|
|
|
2265
2246
|
/**
|
|
2266
2247
|
* 其他平台组件ID
|
|
2267
2248
|
*/
|
|
2268
|
-
type OtherComponentIds = 'help' | 'handlerError' | 'changelog' | 'version_warning' | 'qrlogin';
|
|
2249
|
+
type OtherComponentIds = 'help' | 'handlerError' | 'changelog' | 'version_warning' | 'qrlogin' | 'live-photo-tip';
|
|
2269
2250
|
/**
|
|
2270
2251
|
* 统计平台组件ID
|
|
2271
2252
|
*/
|
|
@@ -2310,6 +2291,7 @@ interface PathToDataTypeMap {
|
|
|
2310
2291
|
'other/changelog': ChangelogProps['data'];
|
|
2311
2292
|
'other/version_warning': VersionWarningProps['data'];
|
|
2312
2293
|
'other/qrlogin': QrLoginProps['data'];
|
|
2294
|
+
'other/live-photo-tip': LivePhotoTipProps['data'];
|
|
2313
2295
|
'statistics/group': GroupStatisticsProps['data'];
|
|
2314
2296
|
'statistics/global': GlobalStatisticsProps['data'];
|
|
2315
2297
|
}
|
|
@@ -2329,7 +2311,7 @@ interface DataTypeMap {
|
|
|
2329
2311
|
/** 快手平台数据类型 */
|
|
2330
2312
|
kuaishou: KuaishouCommentProps['data'];
|
|
2331
2313
|
/** 其他类型数据 */
|
|
2332
|
-
other: HelpProps['data'];
|
|
2314
|
+
other: HelpProps['data'] | LivePhotoTipProps['data'];
|
|
2333
2315
|
}
|
|
2334
2316
|
/**
|
|
2335
2317
|
* 渲染请求接口
|