@flemo/devtools 0.4.0 → 0.6.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.
@@ -0,0 +1,31 @@
1
+ import { DevtoolsHudOptions } from './hud';
2
+ import { DevtoolsPanelOptions } from './panel';
3
+ import { FlightRecorderHandle } from './types';
4
+ export interface FlemoDevtoolsProps {
5
+ /**
6
+ * Recorder to read. Defaults to this package's `window.flemo` when one is
7
+ * installed, otherwise the surfaces attach one and take it down with them.
8
+ */
9
+ recorder?: FlightRecorderHandle;
10
+ /** Mount the on-device readout. Default true — it is the half a phone needs. */
11
+ hud?: boolean;
12
+ /** Mount the drawer. Default true. */
13
+ panel?: boolean;
14
+ /** Where the readout sits. Default "top". */
15
+ hudPosition?: DevtoolsHudOptions["position"];
16
+ /** Which corner the drawer's toggle sits in. Default "bottom-left". */
17
+ panelPosition?: DevtoolsPanelOptions["position"];
18
+ /** Start the drawer open. Default false. */
19
+ initialOpen?: boolean;
20
+ /** Labels the A/B control cycles through. Default ["A", "B"]. */
21
+ buckets?: string[];
22
+ }
23
+ /**
24
+ * Mount the devtools for as long as this component is rendered.
25
+ *
26
+ * Inert in a production build: the package's `production` export condition
27
+ * resolves this module to one that renders null, so a consumer can leave the
28
+ * element in their tree and ship it.
29
+ */
30
+ export declare function FlemoDevtools({ recorder, hud, panel, hudPosition, panelPosition, initialOpen, buckets }?: FlemoDevtoolsProps): null;
31
+ export default FlemoDevtools;