@nbt-dev/devtools 0.0.4 → 0.0.5

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.
@@ -1,24 +0,0 @@
1
- import React from "react";
2
- import { BulkDataStore } from "../components/devtools/data-browser/data-store";
3
- import { type ColumnDef } from "../generated/bulk-protocol";
4
- import type { BulkRegistry } from "./use-cartridge-info";
5
- export type BulkSubscription = {
6
- store: BulkDataStore;
7
- connected: boolean;
8
- streaming: boolean;
9
- error: string | null;
10
- columns: ColumnDef[];
11
- totalRows: number;
12
- loadedRows: number;
13
- search: (q: string) => void;
14
- clearSearch: () => void;
15
- setOnRender: (fn: (() => void) | null) => void;
16
- };
17
- type Props = {
18
- registry: BulkRegistry;
19
- children: React.ReactNode;
20
- };
21
- export declare function BulkStreamProvider({ registry, children }: Props): React.ReactElement;
22
- export declare function useBulkRowCounts(registry: BulkRegistry): Record<string, number>;
23
- export declare function useBulkSubscription(cart: string, entity: string): BulkSubscription;
24
- export {};
@@ -1,13 +0,0 @@
1
- export type BulkEntity = {
2
- name: string;
3
- route: string;
4
- searchFields: readonly string[];
5
- };
6
- export type BulkRegistry = Record<string, BulkEntity[]>;
7
- export type LiveRegistryState = {
8
- registry: BulkRegistry;
9
- carts: string[];
10
- loading: boolean;
11
- error: string | null;
12
- };
13
- export declare function useLiveBulkRegistry(): LiveRegistryState;