refactor(editor): simplify renderer state (#10441)

The redundant `monitoring` state has been removed. The new `ready` state is used for querying if DOM elements can be safely optimized away.
This commit is contained in:
doodlewind
2025-02-26 08:39:58 +00:00
parent c058f94e15
commit 0f8c837fbe
4 changed files with 75 additions and 18 deletions

View File

@@ -20,10 +20,8 @@ import { choose } from 'lit/directives/choose.js';
import { repeat } from 'lit/directives/repeat.js';
import { styleMap } from 'lit/directives/style-map.js';
import {
type PageRootBlockComponent,
RootBlockConfigExtension,
} from '../../index.js';
import type { PageRootBlockComponent } from '../../page/page-root-block.js';
import { RootBlockConfigExtension } from '../../root-config.js';
import {
type AFFINE_LINKED_DOC_WIDGET,
getMenus,