@danxbot/ui 14.1.0 → 14.2.0
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,5 +1,19 @@
|
|
|
1
1
|
export interface DevToolsPopoverProps {
|
|
2
2
|
/** Deep link to the dev-only Use Case Ledger. Omit and the row does not render. */
|
|
3
3
|
onOpenUseCaseLedger?: () => void;
|
|
4
|
+
/**
|
|
5
|
+
* Shows the Data source / Network speed / Regenerate demo data section —
|
|
6
|
+
* all three read and write THIS LIBRARY's OWN `src/lib/sim/` layer
|
|
7
|
+
* (`createSimStore`), which exists for the pitch-deck demo and has nothing
|
|
8
|
+
* to do with role-based access control. Defaults `true` so this package's
|
|
9
|
+
* own demo pages need no change. A consuming app with a real backend and no
|
|
10
|
+
* `createSimStore` usage of its own sets this `false` — otherwise the panel
|
|
11
|
+
* shows a "Simulated ↔ Live" toggle and a "Regenerate demo data" button
|
|
12
|
+
* that do nothing observable in that app, which reads as broken rather than
|
|
13
|
+
* inert. "View as" role impersonation (the RBAC feature this component
|
|
14
|
+
* exists to gate) and "Reset to actual" are unaffected either way — they
|
|
15
|
+
* have nothing to do with the sim layer.
|
|
16
|
+
*/
|
|
17
|
+
showSimControls?: boolean;
|
|
4
18
|
}
|
|
5
|
-
export declare function DevToolsPopover({ onOpenUseCaseLedger }?: DevToolsPopoverProps): import("react").JSX.Element | null;
|
|
19
|
+
export declare function DevToolsPopover({ onOpenUseCaseLedger, showSimControls }?: DevToolsPopoverProps): import("react").JSX.Element | null;
|