chore(editor): remove page block feature flag (#10251)

This commit is contained in:
L-Sun
2025-02-18 09:25:05 +00:00
parent cedee0a1b2
commit e639f08b71
13 changed files with 30 additions and 81 deletions
@@ -36,7 +36,6 @@ import { property } from 'lit/decorators.js';
import { styleMap } from 'lit/directives/style-map.js';
import { NoteConfigExtension } from '../config';
import { isPageBlock } from '../utils';
import * as styles from './edgeless-note-background.css';
@requiredProperties({
@@ -162,7 +161,7 @@ export class EdgelessNoteBackground extends SignalWatcher(
@pointerdown=${stopPropagation}
@click=${this._handleClickAtBackground}
>
${isPageBlock(this.std, this.note) ? this._renderHeader() : nothing}
${this.note.isPageBlock() ? this._renderHeader() : nothing}
</div>`;
}
@@ -12,7 +12,6 @@ import { html } from 'lit';
import { property } from 'lit/decorators.js';
import { NoteConfigExtension } from '../config';
import { isPageBlock } from '../utils';
import * as styles from './edgeless-page-block-title.css';
@requiredProperties({
@@ -22,7 +21,7 @@ export class EdgelessPageBlockTitle extends SignalWatcher(
WithDisposable(ShadowlessElement)
) {
override render() {
if (!isPageBlock(this.std, this.note)) return;
if (!this.note.isPageBlock()) return;
const title = this.std
.getOptional(NoteConfigExtension.identifier)