@@ -12,27 +12,19 @@ import {
1212} from 'bippy' ;
1313import type * as React from 'react' ;
1414import type { Fiber } from 'react-reconciler' ;
15- import { ICONS } from '@web-assets/svgs/svgs' ;
16- import {
17- createInspectElementStateMachine ,
18- type States ,
19- } from '@web-inspect-element/inspect-state-machine' ;
20- import { playGeigerClickSound } from '@web-utils/geiger' ;
21- import { readLocalStorage , saveLocalStorage } from '@web-utils/helpers' ;
22- import { log , logIntro } from '@web-utils/log' ;
23- import { flushOutlines , type Outline } from '@web-utils/outline' ;
24- import {
25- aggregateChanges ,
26- aggregateRender ,
27- updateFiberRenderData ,
28- type RenderData ,
29- } from 'src/core/utils' ;
30- import { createInstrumentation , type Render } from './instrumentation' ;
31- import type { InternalInteraction } from './monitor/types' ;
15+ import styles from '~web/assets/css/styles.css' ;
16+ import { log , logIntro } from '~web/utils/log' ;
17+ import { ICONS } from '~web/assets/svgs/svgs' ;
18+ import { type States } from '~web/components/inspector/utils' ;
19+ import { initReactScanOverlay } from '~web/overlay' ;
20+ import { createToolbar } from '~web/toolbar' ;
21+ import { playGeigerClickSound } from '~web/utils/geiger' ;
22+ import { saveLocalStorage , readLocalStorage } from '~web/utils/helpers' ;
23+ import { type Outline , flushOutlines } from '~web/utils/outline' ;
24+ import { type RenderData , aggregateRender , aggregateChanges , updateFiberRenderData } from '~core/utils' ;
3225import { type getSession } from './monitor/utils' ;
33- import styles from './web/assets/css/styles.css' ;
34- import { initReactScanOverlay } from './web/overlay' ;
35- import { createToolbar } from './web/toolbar' ;
26+ import type { InternalInteraction } from './monitor/types' ;
27+ import { createInstrumentation , type Render } from './instrumentation' ;
3628
3729let toolbarContainer : HTMLElement | null = null ;
3830let shadowRoot : ShadowRoot | null = null ;
@@ -589,8 +581,6 @@ export const start = () => {
589581 if ( ! ctx ) return ;
590582 startFlushOutlineInterval ( ) ;
591583
592- createInspectElementStateMachine ( shadowRoot ) ;
593-
594584 globalThis . __REACT_SCAN__ = {
595585 ReactScanInternals,
596586 } ;
@@ -599,10 +589,6 @@ export const start = () => {
599589 toolbarContainer = createToolbar ( shadowRoot ) ;
600590 }
601591
602- const overlayElement = document . createElement ( 'react-scan-overlay' ) ;
603-
604- document . documentElement . appendChild ( overlayElement ) ;
605-
606592 logIntro ( ) ;
607593 } ,
608594 onCommitStart ( ) {
0 commit comments