book-index-ui 0.2.12 → 0.2.13

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
@@ -293,6 +293,10 @@ export declare class BundleStorage implements IndexStorage {
293
293
  search(query: string, type: IndexType, options: LoadOptions): Promise<PageResult<IndexEntry>>;
294
294
  searchAll(query: string, limit?: number): Promise<GroupedSearchResult>;
295
295
  getItem(id: string): Promise<Record<string, unknown> | null>;
296
+ /**
297
+ * 优先用 chunk 构造 IndexEntry,避免触发 ensureLoaded() 拉全量 index.json。
298
+ * 旧 bundle 没有把 has_collated 等字段注入 chunk 时回退到 ensureLoaded。
299
+ */
296
300
  getEntry(id: string): Promise<IndexEntry | null>;
297
301
  getAllEntries(): Promise<IndexEntry[]>;
298
302
  saveItem(): Promise<{