book-index-ui 0.48.2 → 0.48.4
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/dist/index.cjs +27 -27
- package/dist/index.d.ts +5 -18
- package/dist/index.js +1571 -1571
- package/dist/{storage-entry-BFVAZmvt.cjs → storage-entry-BNx9e7zn.cjs} +2 -2
- package/dist/{storage-entry-DQ9kOLVb.js → storage-entry-BdyLwZMZ.js} +172 -161
- package/dist/storage.cjs +1 -1
- package/dist/storage.d.ts +5 -2
- package/dist/storage.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -930,22 +930,6 @@ export declare interface ClassificRow {
|
|
|
930
930
|
cata_l4?: string;
|
|
931
931
|
}
|
|
932
932
|
|
|
933
|
-
/**
|
|
934
|
-
* 文件名清洗:保留 ASCII 字母数字 + CJK 全范围。
|
|
935
|
-
*
|
|
936
|
-
* **必须与 Python 端 storage.py 的 _clean_name 保持一致**,否则同一个
|
|
937
|
-
* Work/Book 在两侧算路径会差字符 → find_file_by_id 静默 miss。
|
|
938
|
-
*
|
|
939
|
-
* 范围(与 Python 一致):
|
|
940
|
-
* - U+3400-U+4DBF CJK 扩展 A
|
|
941
|
-
* - U+4E00-U+9FFF CJK 基本(注意:旧版只到 U+9FA5)
|
|
942
|
-
* - U+F900-U+FAFF CJK 兼容汉字(U+F98C 歷 等历史字形)
|
|
943
|
-
* - U+20000-U+3134F SMP CJK 扩展 B-G
|
|
944
|
-
*
|
|
945
|
-
* 历史扫描 book-index-draft 发现 557 个文件名含 CJK 兼容字(U+F900+),
|
|
946
|
-
* 旧版正则只覆盖到 U+9FA5,会漏掉这些字 — 造成 TS 端算路径与 Python
|
|
947
|
-
* 写出的路径不一致。
|
|
948
|
-
*/
|
|
949
933
|
export declare function cleanName(name: string): string;
|
|
950
934
|
|
|
951
935
|
export declare function clearAllRecentIds(): void;
|
|
@@ -1092,7 +1076,10 @@ export declare interface CollectionDetailData extends BaseDetailData {
|
|
|
1092
1076
|
*/
|
|
1093
1077
|
subtype?: 'book_collection' | 'work_collection' | string;
|
|
1094
1078
|
work_id?: string;
|
|
1095
|
-
|
|
1079
|
+
/** 上级丛编。终版为 `{id}` 对象;旧数据为裸 id 字符串,读者两形都认 */
|
|
1080
|
+
contained_in?: Array<string | {
|
|
1081
|
+
id: string;
|
|
1082
|
+
}>;
|
|
1096
1083
|
history?: string[];
|
|
1097
1084
|
books?: string[];
|
|
1098
1085
|
contained_works?: {
|
|
@@ -3177,7 +3164,7 @@ export declare interface IndexFileEntry {
|
|
|
3177
3164
|
path: string;
|
|
3178
3165
|
author: string;
|
|
3179
3166
|
holder: string;
|
|
3180
|
-
/** 撰人朝代(authors[
|
|
3167
|
+
/** 撰人朝代(authors[] 中第一个有朝代者,顶层 dynasty 兜底)——不是刊刻朝代 */
|
|
3181
3168
|
dynasty?: string;
|
|
3182
3169
|
/**
|
|
3183
3170
|
* 刊刻朝代,= Book.dating.era。与 dynasty 是两回事:史記·武英殿本
|