book-index-ui 0.2.13 → 0.2.15

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.d.ts CHANGED
@@ -1766,11 +1766,21 @@ export declare interface RecommendedData {
1766
1766
  groups: RecommendedGroup[];
1767
1767
  }
1768
1768
 
1769
- /** 推荐条目 */
1769
+ /** 推荐条目(bundle-data 时已用 index 元数据 hydrate,便于免 chunk 渲染) */
1770
1770
  export declare interface RecommendedEntry {
1771
1771
  id: string;
1772
1772
  title: string;
1773
1773
  description?: string;
1774
+ type?: IndexType;
1775
+ author?: string;
1776
+ dynasty?: string;
1777
+ role?: string;
1778
+ edition?: string;
1779
+ has_text?: boolean;
1780
+ has_image?: boolean;
1781
+ has_collated?: boolean;
1782
+ subtype?: string;
1783
+ primary_name?: string;
1774
1784
  }
1775
1785
 
1776
1786
  /** 推荐分组 */
@@ -1784,6 +1794,17 @@ export declare interface RecommendedItem {
1784
1794
  title: string;
1785
1795
  description?: string;
1786
1796
  group?: string;
1797
+ /** 以下为 bundle-data 注入的 hydrated 字段,存在时可免 transport.getEntry / chunk fetch */
1798
+ type?: IndexType;
1799
+ author?: string;
1800
+ dynasty?: string;
1801
+ role?: string;
1802
+ edition?: string;
1803
+ has_text?: boolean;
1804
+ has_image?: boolean;
1805
+ has_collated?: boolean;
1806
+ subtype?: string;
1807
+ primary_name?: string;
1787
1808
  }
1788
1809
 
1789
1810
  /** 关联实体 */