@nivaro/react 0.1.156 → 0.1.158
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/full.css +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.js +9438 -9321
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -948,6 +948,20 @@ export declare interface DrilldownTarget {
|
|
|
948
948
|
title?: string;
|
|
949
949
|
}
|
|
950
950
|
|
|
951
|
+
/** Per-collection replacement bodies for the drill-down sheet. A host app
|
|
952
|
+
* registers a richer experience for a collection (e.g. a vendor 360 view)
|
|
953
|
+
* and every RecordDrilldownSheet — queues, collection views, nested drills —
|
|
954
|
+
* renders it instead of the default detail layout for that collection. */
|
|
955
|
+
export declare interface DrilldownViewOverride {
|
|
956
|
+
render: (args: {
|
|
957
|
+
itemId: string;
|
|
958
|
+
}) => ReactNode;
|
|
959
|
+
/** Sheet width while this view is on top (e.g. '85%'). */
|
|
960
|
+
width?: string | number;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
export declare const DrilldownViewsContext: React_2.Context<Record<string, DrilldownViewOverride>>;
|
|
964
|
+
|
|
951
965
|
/**
|
|
952
966
|
* The ids a filter surface should PRE-SELECT for a dimension. Restrictions are
|
|
953
967
|
* server-enforced regardless, so the seeded selection must reflect them:
|
|
@@ -3901,6 +3915,8 @@ export declare function useDeleteMessage(room: string): UseMutationResult<unknow
|
|
|
3901
3915
|
|
|
3902
3916
|
export declare function useDrilldown(): DrilldownContextValue | null;
|
|
3903
3917
|
|
|
3918
|
+
export declare function useDrilldownViews(): Record<string, DrilldownViewOverride>;
|
|
3919
|
+
|
|
3904
3920
|
export declare function useEditMessage(room: string): UseMutationResult<unknown, Error, {
|
|
3905
3921
|
messageId: number;
|
|
3906
3922
|
text: string;
|