If a nonce has been passed to the component, it is not forwarded to the MantineProvider (as getStyleNonce). This results in the mantine styles not being applied - and the slash menu does not look right.
To Reproduce
The difficult part to reproducing this issue is setting up a strict content security policy - default-src 'none'; script-src 'self'; style-src 'self';
Once that is in place, a simple editor will trigger the issue (open the slash menu to see strange styles) -
Describe the bug
If a nonce has been passed to the component, it is not forwarded to the MantineProvider (as getStyleNonce). This results in the mantine styles not being applied - and the slash menu does not look right.
To Reproduce
The difficult part to reproducing this issue is setting up a strict content security policy - default-src 'none'; script-src 'self'; style-src 'self';
Once that is in place, a simple editor will trigger the issue (open the slash menu to see strange styles) -
<BlockNoteView nonce={context.nonce} editor={editor} filePanel={false} slashMenu={false} editable={editable} theme={lightDefaultTheme} />
Misc