refactor(editor): remove stable feature flags (#10547)

This commit is contained in:
Saul-Mirone
2025-03-02 08:41:12 +00:00
parent 6353e72078
commit f23f29610c
8 changed files with 7 additions and 72 deletions
@@ -1,6 +1,5 @@
import type { ReferenceInfo } from '@blocksuite/affine-model';
import {
FeatureFlagService,
GenerateDocUrlProvider,
type LinkEventType,
OpenDocExtensionIdentifier,
@@ -320,10 +319,6 @@ export class ReferencePopup extends WithDisposable(LitElement) {
}
private _viewSelector() {
// synced doc entry controlled by flag
const isSyncedDocEnabled = this.doc
.get(FeatureFlagService)
.getFlag('enable_synced_doc_block');
const buttons = [];
buttons.push({
@@ -338,17 +333,13 @@ export class ReferencePopup extends WithDisposable(LitElement) {
disabled: this.doc.readonly,
});
if (isSyncedDocEnabled) {
buttons.push({
type: 'embed',
label: 'Embed view',
action: () => this._convertToEmbedView(),
disabled:
this.doc.readonly ||
this.isLinkedNode ||
this._embedViewButtonDisabled,
});
}
buttons.push({
type: 'embed',
label: 'Embed view',
action: () => this._convertToEmbedView(),
disabled:
this.doc.readonly || this.isLinkedNode || this._embedViewButtonDisabled,
});
return html`
<editor-menu-button