feat(editor): remove embed iframe feature flag (#11432)

Close [BS-3019](https://linear.app/affine-design/issue/BS-3019/remove-embed-iframe-feature-flag)
This commit is contained in:
donteatfriedrice
2025-04-03 04:59:52 +00:00
parent f2646796fc
commit 9206145a48
9 changed files with 24 additions and 97 deletions
@@ -48,10 +48,7 @@ import {
getTextSelectionCommand,
} from '@blocksuite/affine-shared/commands';
import { REFERENCE_NODE } from '@blocksuite/affine-shared/consts';
import {
FeatureFlagService,
FileSizeLimitService,
} from '@blocksuite/affine-shared/services';
import { FileSizeLimitService } from '@blocksuite/affine-shared/services';
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
import {
createDefaultDoc,
@@ -477,11 +474,7 @@ const embedToolGroup: KeyboardToolPanelGroup = {
name: 'Embed',
icon: EmbedIcon({ style: `color: black` }),
showWhen: ({ std }) => {
const featureFlagService = std.get(FeatureFlagService);
return (
featureFlagService.getFlag('enable_embed_iframe_block') &&
std.store.schema.flavourSchemaMap.has('affine:embed-iframe')
);
return std.store.schema.flavourSchemaMap.has('affine:embed-iframe');
},
action: async ({ std }) => {
std.command