book-index-ui 0.2.19 → 0.2.21

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/storage.d.ts CHANGED
@@ -934,6 +934,9 @@ declare interface LineageGraphNode {
934
934
  /** 分组 id(来自 work.version_graph.node_groups 或 hypothetical.group) */
935
935
  group?: string;
936
936
  note?: string;
937
+ /** 桥接节点:本身不在核心集,但为了保持核心节点间派生链不断而引入。
938
+ * 视觉上应淡化(半透明、虚边框)。仅在 collection==='core' 模式下出现。 */
939
+ bridge?: boolean;
937
940
  }
938
941
 
939
942
  /** ref_type:派生来源是其他 Book 还是假想节点 */
@@ -1243,6 +1246,17 @@ declare interface VersionGraph {
1243
1246
  /** Work.books 里但不进图的条目(如待 dedupe 的占位) */
1244
1247
  excluded_books?: string[];
1245
1248
  excluded_reason?: string;
1249
+ /** 集合化展示(核心 vs 完整):版本繁多的复杂作品(如水浒)适用 */
1250
+ default_collection?: 'core' | 'all';
1251
+ /** 各集合的标签和说明 */
1252
+ collections?: Record<string, {
1253
+ label: string;
1254
+ description?: string;
1255
+ }>;
1256
+ /** 核心集合包含的 book id 列表(缺省时即等同 all) */
1257
+ core_books?: string[];
1258
+ /** 核心集合包含的假想节点 id 列表(缺省时全部假想节点都在核心集) */
1259
+ core_hypotheticals?: string[];
1246
1260
  }
1247
1261
 
1248
1262
  /** Work.version_graph.groups[i] —— 分组/泳道 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "book-index-ui",
3
- "version": "0.2.19",
3
+ "version": "0.2.21",
4
4
  "description": "React components for browsing and editing ancient book index metadata",
5
5
  "author": "Li Shaodong",
6
6
  "repository": {