🚩(frontend) add feature flag on "Copy as HTML"

As a blue print, we add a feature flag on
"Copy as HTML" button in the doc toolbox.
This feature flag is controlled by the `CopyAsHtml`
feature flag.

Be aware:
- if the feature flag is disabled, the button
will be shown
- if the feature flag is enabled and send true,
the button will be shown
- if the feature flag is enabled and send false,
the button will be hidden
This commit is contained in:
Anthony LC
2025-03-14 16:13:45 +01:00
committed by Anthony LC
parent 0f07fdcb65
commit 70f1b6a8e8
4 changed files with 84 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ const jestConfig = async () => {
'\\.svg$': '<rootDir>/jest/mocks/svg.js',
'^.+\\.svg\\?url$': `<rootDir>/jest/mocks/fileMock.js`,
BlockNoteEditor: `<rootDir>/jest/mocks/ComponentMock.js`,
'custom-blocks': `<rootDir>/jest/mocks/ComponentMock.js`,
...nextJestConfig.moduleNameMapper,
},
};