mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
@@ -158,10 +158,6 @@ const usePatchSpecs = (mode: DocMode) => {
|
||||
featureFlagService.flags.enable_pdf_embed_preview.$
|
||||
);
|
||||
|
||||
const enableAudioBlock = useLiveData(
|
||||
featureFlagService.flags.enable_audio_block.$
|
||||
);
|
||||
|
||||
const patchedSpecs = useMemo(() => {
|
||||
const builder = enableEditorExtension(framework, mode, enableAI);
|
||||
|
||||
@@ -177,6 +173,7 @@ const usePatchSpecs = (mode: DocMode) => {
|
||||
patchQuickSearchService(framework),
|
||||
patchSideBarService(framework),
|
||||
patchDocModeService(docService, docsService, editorService),
|
||||
patchForAudioEmbedView(reactToLit),
|
||||
isCloud
|
||||
? [
|
||||
patchUserListExtensions(memberSearchService),
|
||||
@@ -193,9 +190,7 @@ const usePatchSpecs = (mode: DocMode) => {
|
||||
if (enablePDFEmbedPreview) {
|
||||
builder.extend([patchForPDFEmbedView(reactToLit)]);
|
||||
}
|
||||
if (enableAudioBlock) {
|
||||
builder.extend([patchForAudioEmbedView(reactToLit)]);
|
||||
}
|
||||
|
||||
if (BUILD_CONFIG.isMobileEdition) {
|
||||
enableMobileExtension(builder, framework);
|
||||
}
|
||||
@@ -221,7 +216,6 @@ const usePatchSpecs = (mode: DocMode) => {
|
||||
publicUserService,
|
||||
enableTurboRenderer,
|
||||
enablePDFEmbedPreview,
|
||||
enableAudioBlock,
|
||||
]);
|
||||
|
||||
return [
|
||||
|
||||
@@ -258,15 +258,6 @@ export const AFFINE_FLAGS = {
|
||||
configurable: isCanaryBuild,
|
||||
defaultState: false,
|
||||
},
|
||||
enable_audio_block: {
|
||||
category: 'affine',
|
||||
displayName:
|
||||
'com.affine.settings.workspace.experimental-features.enable-audio-block.name',
|
||||
description:
|
||||
'com.affine.settings.workspace.experimental-features.enable-audio-block.description',
|
||||
configurable: !isMobile,
|
||||
defaultState: false,
|
||||
},
|
||||
enable_meetings: {
|
||||
category: 'affine',
|
||||
displayName:
|
||||
|
||||
Reference in New Issue
Block a user