karin-plugin-kkk 2.30.3 → 2.31.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/CHANGELOG.md +50 -0
- package/lib/build-metadata.json +5 -5
- package/lib/core_chunk/main.js +708 -227
- package/lib/core_chunk/template.d.mts +23 -6
- package/lib/core_chunk/vendor.js +1078 -750
- package/lib/karin-plugin-kkk.css +199 -181
- package/package.json +4 -4
|
@@ -333,7 +333,8 @@ interface DouyinUserListProps extends BaseComponentProps {
|
|
|
333
333
|
/** 是否使用深色主题 */useDarkTheme?: boolean; /** 群组信息 */
|
|
334
334
|
groupInfo: {
|
|
335
335
|
/** 群号 */groupId: string; /** 群名称 */
|
|
336
|
-
groupName: string;
|
|
336
|
+
groupName: string; /** 群头像 */
|
|
337
|
+
groupAvatar: string;
|
|
337
338
|
}; /** 用户列表数据 */
|
|
338
339
|
renderOpt: {
|
|
339
340
|
/** 用户头像图片URL */avatar_img: string; /** 用户名 */
|
|
@@ -1297,7 +1298,8 @@ interface BilibiliUserListProps extends BaseComponentProps {
|
|
|
1297
1298
|
/** 是否使用深色主题 */useDarkTheme?: boolean; /** 群组信息 */
|
|
1298
1299
|
groupInfo: {
|
|
1299
1300
|
/** 群号 */groupId: string; /** 群名称 */
|
|
1300
|
-
groupName: string;
|
|
1301
|
+
groupName: string; /** 群头像 */
|
|
1302
|
+
groupAvatar: string;
|
|
1301
1303
|
}; /** 用户列表数据 */
|
|
1302
1304
|
renderOpt: {
|
|
1303
1305
|
/** 用户头像图片URL */avatar_img: string; /** 用户名 */
|
|
@@ -2132,6 +2134,16 @@ interface QrLoginProps {
|
|
|
2132
2134
|
useDarkTheme?: boolean;
|
|
2133
2135
|
}
|
|
2134
2136
|
//#endregion
|
|
2137
|
+
//#region ../template/src/types/platforms/other/livePhotoTip.d.ts
|
|
2138
|
+
interface LivePhotoTipProps extends BaseComponentProps {
|
|
2139
|
+
data: {
|
|
2140
|
+
/** 提示标题 */title?: string; /** 附加说明 */
|
|
2141
|
+
description?: string;
|
|
2142
|
+
} & {
|
|
2143
|
+
/** 是否使用深色主题 */useDarkTheme?: boolean;
|
|
2144
|
+
};
|
|
2145
|
+
}
|
|
2146
|
+
//#endregion
|
|
2135
2147
|
//#region ../template/src/types/platforms/other/statistics.d.ts
|
|
2136
2148
|
/**
|
|
2137
2149
|
* 群组解析统计数据接口
|
|
@@ -2217,6 +2229,8 @@ interface RenderRequest<T = Record<string, unknown>> {
|
|
|
2217
2229
|
frameworkVersion: string; /** 是否有可用更新 */
|
|
2218
2230
|
hasUpdate?: boolean;
|
|
2219
2231
|
};
|
|
2232
|
+
/** 水印比特大小 */
|
|
2233
|
+
watermarkTextBitSize: number;
|
|
2220
2234
|
/** 渲染数据 */
|
|
2221
2235
|
data: T & {
|
|
2222
2236
|
/** 是否使用深色主题 */useDarkTheme?: boolean; /** 二维码分享链接 */
|
|
@@ -2239,10 +2253,12 @@ interface RenderResponse {
|
|
|
2239
2253
|
* @template T 子组件的数据类型
|
|
2240
2254
|
*/
|
|
2241
2255
|
interface BaseComponentProps<T = Record<string, any>> extends Pick<RenderRequest, 'version' | 'scale'> {
|
|
2256
|
+
/** 水印比特大小 */
|
|
2257
|
+
watermarkTextBitSize?: RenderRequest['watermarkTextBitSize'];
|
|
2242
2258
|
/** 渲染数据 - 子组件的具体参数 */
|
|
2243
|
-
data: {
|
|
2259
|
+
data: T & {
|
|
2244
2260
|
/** 是否使用深色主题 */useDarkTheme?: boolean;
|
|
2245
|
-
}
|
|
2261
|
+
};
|
|
2246
2262
|
}
|
|
2247
2263
|
/**
|
|
2248
2264
|
* 抖音平台组件ID
|
|
@@ -2263,7 +2279,7 @@ type XiaohongshuComponentIds = 'noteInfo' | 'comment';
|
|
|
2263
2279
|
/**
|
|
2264
2280
|
* 其他平台组件ID
|
|
2265
2281
|
*/
|
|
2266
|
-
type OtherComponentIds = 'help' | 'handlerError' | 'changelog' | 'version_warning' | 'qrlogin';
|
|
2282
|
+
type OtherComponentIds = 'help' | 'handlerError' | 'changelog' | 'version_warning' | 'qrlogin' | 'live-photo-tip';
|
|
2267
2283
|
/**
|
|
2268
2284
|
* 统计平台组件ID
|
|
2269
2285
|
*/
|
|
@@ -2308,6 +2324,7 @@ interface PathToDataTypeMap {
|
|
|
2308
2324
|
'other/changelog': ChangelogProps['data'];
|
|
2309
2325
|
'other/version_warning': VersionWarningProps['data'];
|
|
2310
2326
|
'other/qrlogin': QrLoginProps['data'];
|
|
2327
|
+
'other/live-photo-tip': LivePhotoTipProps['data'];
|
|
2311
2328
|
'statistics/group': GroupStatisticsProps['data'];
|
|
2312
2329
|
'statistics/global': GlobalStatisticsProps['data'];
|
|
2313
2330
|
}
|
|
@@ -2327,7 +2344,7 @@ interface DataTypeMap {
|
|
|
2327
2344
|
/** 快手平台数据类型 */
|
|
2328
2345
|
kuaishou: KuaishouCommentProps['data'];
|
|
2329
2346
|
/** 其他类型数据 */
|
|
2330
|
-
other: HelpProps['data'];
|
|
2347
|
+
other: HelpProps['data'] | LivePhotoTipProps['data'];
|
|
2331
2348
|
}
|
|
2332
2349
|
/**
|
|
2333
2350
|
* 渲染请求接口
|