@brainfish-ai/components 0.31.0 → 0.31.1
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/esm/chunks/{ChatSearch.CcpQJlxZ.js → ChatSearch.EEO6qq9U.js} +2 -2
- package/dist/esm/chunks/{ChatSearch.CcpQJlxZ.js.map → ChatSearch.EEO6qq9U.js.map} +1 -1
- package/dist/esm/chunks/{font-picker.YAE99idL.js → font-picker.B9GPXyK4.js} +6 -6
- package/dist/esm/chunks/{font-picker.YAE99idL.js.map → font-picker.B9GPXyK4.js.map} +1 -1
- package/dist/esm/chunks/{two-level-combobox.DJYP--W9.js → two-level-combobox.BVZfsNSN.js} +3 -3
- package/dist/esm/chunks/{two-level-combobox.DJYP--W9.js.map → two-level-combobox.BVZfsNSN.js.map} +1 -1
- package/dist/esm/components/chart-radial-stacked.js +2 -2
- package/dist/esm/components/chat-search.js +1 -1
- package/dist/esm/components/font-picker.js +1 -1
- package/dist/esm/components/metric-card.js +2 -2
- package/dist/esm/components/two-level-combobox.js +1 -1
- package/dist/esm/global.css +1 -1
- package/dist/esm/index.js +5 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/scenes/knowledge-review.js +8 -8
- package/dist/index.d.ts +25 -0
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2444,6 +2444,31 @@ declare type UrlString = string & {
|
|
|
2444
2444
|
__url: never;
|
|
2445
2445
|
};
|
|
2446
2446
|
|
|
2447
|
+
/**
|
|
2448
|
+
* Gives an indication of query usage in the platform.
|
|
2449
|
+
*
|
|
2450
|
+
* A pill button for the top navigation bar that shows the team's monthly usage
|
|
2451
|
+
* usage percentage. At ≥80% it renders in warning (yellow) state; at 100% in
|
|
2452
|
+
* reached (red) state. Clicking it opens a dropdown with links to the plan and
|
|
2453
|
+
* billing settings pages.
|
|
2454
|
+
*/
|
|
2455
|
+
export declare function UsageIndicatorPill({ percentage, label, status, onViewPlan, onViewBilling, }: UsageIndicatorPillProps): React_2.JSX.Element;
|
|
2456
|
+
|
|
2457
|
+
export declare interface UsageIndicatorPillProps {
|
|
2458
|
+
/** Current usage as a percentage 0–100 */
|
|
2459
|
+
percentage: number;
|
|
2460
|
+
/** Name of the usage metric being displayed */
|
|
2461
|
+
label?: string;
|
|
2462
|
+
/** Visual state of the pill */
|
|
2463
|
+
status: UsageIndicatorStatus;
|
|
2464
|
+
/** Called when the user selects "View plan" */
|
|
2465
|
+
onViewPlan?: () => void;
|
|
2466
|
+
/** Called when the user selects "View billing settings" */
|
|
2467
|
+
onViewBilling?: () => void;
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2470
|
+
export declare type UsageIndicatorStatus = 'warning' | 'reached';
|
|
2471
|
+
|
|
2447
2472
|
export declare const useChatSearch: () => ChatSearchContextProps;
|
|
2448
2473
|
|
|
2449
2474
|
export declare function useConversation(): ConversationContextValue;
|