@flemo/devtools 0.5.0 → 0.7.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.
- package/README.md +16 -2
- package/dist/__tests__/swipeProbe.test.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +367 -310
- package/dist/noop.d.ts +4 -0
- package/dist/noop.mjs +2 -2
- package/dist/react.d.ts +31 -0
- package/dist/react.mjs +1635 -0
- package/dist/reactNoop.d.ts +4 -0
- package/dist/reactNoop.mjs +6 -0
- package/dist/swipeProbe.d.ts +52 -0
- package/package.json +28 -10
package/dist/noop.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DevtoolsHudHandle, DevtoolsHudOptions } from './hud';
|
|
2
2
|
import { DevtoolsPanelHandle, DevtoolsPanelOptions } from './panel';
|
|
3
|
+
import { SwipeProbeHandle, SwipeProbeOptions } from './swipeProbe';
|
|
3
4
|
import { FlightRecorderHandle, FlightRecorderOptions } from './types';
|
|
4
5
|
export * from './anomalies';
|
|
5
6
|
export * from './blindSpots';
|
|
@@ -15,8 +16,11 @@ export declare const REPORT_SCHEMA_VERSION = "3";
|
|
|
15
16
|
export declare const attachFlightRecorder: (_options?: FlightRecorderOptions) => FlightRecorderHandle;
|
|
16
17
|
export declare const attachDevtoolsPanel: (_options?: DevtoolsPanelOptions) => DevtoolsPanelHandle;
|
|
17
18
|
export declare const attachDevtoolsHud: (_options?: DevtoolsHudOptions) => DevtoolsHudHandle;
|
|
19
|
+
export declare const SWIPE_PROBE_MS = 1200;
|
|
20
|
+
export declare const attachSwipeProbe: (_options?: SwipeProbeOptions) => SwipeProbeHandle;
|
|
18
21
|
export type { FlemoGlobal } from './recorder';
|
|
19
22
|
export type { DevtoolsHudHandle, DevtoolsHudOptions } from './hud';
|
|
20
23
|
export type { DevtoolsPanelHandle, DevtoolsPanelOptions } from './panel';
|
|
24
|
+
export type { SwipeProbeHandle, SwipeProbeOptions, SwipeReleaseAudit, SwipeSample } from './swipeProbe';
|
|
21
25
|
export type { DriverEvidence } from './frameProbe';
|
|
22
26
|
export type { BucketSummary, EnvironmentFingerprint, FlemoReport, FlightDriver, FlightHolds, FlightKind, FlightParticipants, FlightRecord, FlightRecorderHandle, FlightRecorderOptions, FlightTimestamp, FramePhaseStats, FrameSampleStats, ImageActivity, InputEvidence, LandingAudit, LongTaskSpan, MorphActivity, MotionProgress, ObservationCapabilities, OverridesSection, Precondition, PreconditionStatus, PreviousSession, TripwireHit, UaBrand } from './types';
|
package/dist/noop.mjs
CHANGED
|
@@ -637,6 +637,6 @@ var e = 30, t = 1e4, n = 50, r = 120, i = 100, a = 48, o = (e) => {
|
|
|
637
637
|
detach: Q,
|
|
638
638
|
report: ce,
|
|
639
639
|
mark: () => null
|
|
640
|
-
}), $ = (e) => ({ detach: Q }), ue = (e) => ({ detach: Q });
|
|
640
|
+
}), $ = (e) => ({ detach: Q }), ue = (e) => ({ detach: Q }), de = 1200, fe = (e) => ({ detach: Q });
|
|
641
641
|
//#endregion
|
|
642
|
-
export { c as BLIND_SPOTS, S as CORE_FLAGS, x as DEVTOOLS_OWNED_FLAGS, C as FLAG_REGISTRY, y as JUDGING_PROTOCOL, e as LONG_GAP_MS, j as MAX_PERSISTED_BYTES, A as MAX_PERSISTED_FLIGHTS, i as MID_FLIGHT_TASK_MS, n as OPENING_WINDOW_LEAD_MS, r as OPENING_WINDOW_TAIL_MS, b as PANEL_HEIGHT_KEY, se as REPORT_SCHEMA_VERSION, w as RETIRED_FLAGS, T as RETIRED_MARKER, a as STALL_MS, t as STUCK_STATUS_MS, k as TRACE_KEY, ue as attachDevtoolsHud, $ as attachDevtoolsPanel, le as attachFlightRecorder, v as captureEnvironment, Y as classifyDriver, P as clearTrace, J as computeFrameStats, q as computePhaseStats, o as deriveFlightAnomalies, O as deriveOverrideWarnings, G as derivePreconditions, s as deriveReportAnomalies, oe as deriveVerdict, f as detectEngine, g as developmentHints, p as isEmulationSuspected, X as kindFromStatus, F as loadTrace, ie as parseTranslateX, m as sampleRafCadence, N as saveTrace, ne as snapshotOverrides, u as summariseBuckets };
|
|
642
|
+
export { c as BLIND_SPOTS, S as CORE_FLAGS, x as DEVTOOLS_OWNED_FLAGS, C as FLAG_REGISTRY, y as JUDGING_PROTOCOL, e as LONG_GAP_MS, j as MAX_PERSISTED_BYTES, A as MAX_PERSISTED_FLIGHTS, i as MID_FLIGHT_TASK_MS, n as OPENING_WINDOW_LEAD_MS, r as OPENING_WINDOW_TAIL_MS, b as PANEL_HEIGHT_KEY, se as REPORT_SCHEMA_VERSION, w as RETIRED_FLAGS, T as RETIRED_MARKER, a as STALL_MS, t as STUCK_STATUS_MS, de as SWIPE_PROBE_MS, k as TRACE_KEY, ue as attachDevtoolsHud, $ as attachDevtoolsPanel, le as attachFlightRecorder, fe as attachSwipeProbe, v as captureEnvironment, Y as classifyDriver, P as clearTrace, J as computeFrameStats, q as computePhaseStats, o as deriveFlightAnomalies, O as deriveOverrideWarnings, G as derivePreconditions, s as deriveReportAnomalies, oe as deriveVerdict, f as detectEngine, g as developmentHints, p as isEmulationSuspected, X as kindFromStatus, F as loadTrace, ie as parseTranslateX, m as sampleRafCadence, N as saveTrace, ne as snapshotOverrides, u as summariseBuckets };
|
package/dist/react.d.ts
ADDED
|
@@ -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;
|