book-index-ui 0.7.2 → 0.7.3
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 +6 -6
- package/dist/index.d.ts +13 -5
- package/dist/index.js +1739 -1723
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -378,11 +378,7 @@ export declare interface BookPageProps {
|
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
export declare function Breadcrumb({ items }: {
|
|
381
|
-
items:
|
|
382
|
-
label: string;
|
|
383
|
-
onClick?: () => void;
|
|
384
|
-
href?: string;
|
|
385
|
-
}[];
|
|
381
|
+
items: CrumbItem[];
|
|
386
382
|
}): JSX.Element;
|
|
387
383
|
|
|
388
384
|
export declare interface BucketedResources {
|
|
@@ -864,6 +860,18 @@ export declare interface CreateEntityParams {
|
|
|
864
860
|
inheritData?: Record<string, unknown>;
|
|
865
861
|
}
|
|
866
862
|
|
|
863
|
+
export declare interface CrumbItem {
|
|
864
|
+
label: string;
|
|
865
|
+
onClick?: () => void;
|
|
866
|
+
href?: string;
|
|
867
|
+
/**
|
|
868
|
+
* 内部条目 ID。给了就用 useBidUrl 生成真实 href,
|
|
869
|
+
* 于是 Ctrl+点击开新标签、右键复制链接都能用——
|
|
870
|
+
* 只挂 onClick 而 href="#" 的话这些浏览器原生操作全废。
|
|
871
|
+
*/
|
|
872
|
+
id?: string;
|
|
873
|
+
}
|
|
874
|
+
|
|
867
875
|
/** 空值占位「—」 */
|
|
868
876
|
export declare function Dash(): JSX.Element;
|
|
869
877
|
|