feat: add element inspector with chat integration
- Implement element inspector tool for preview iframe with hover/click detection - Add inspector panel UI to display element details and styles - Integrate selected elements into chat messages for reference - Style improvements for chat messages and scroll behavior - Add inspector script injection to preview iframe - Support element selection and context in chat prompts -Redesign Messgaes, Workbench and Header for a more refined look allowing more workspace in view
This commit is contained in:
@@ -56,6 +56,7 @@ export const allowedHTMLElements = [
|
||||
'ul',
|
||||
'var',
|
||||
'think',
|
||||
'header',
|
||||
];
|
||||
|
||||
// Add custom rehype plugin
|
||||
@@ -85,7 +86,7 @@ const rehypeSanitizeOptions: RehypeSanitizeOptions = {
|
||||
div: [
|
||||
...(defaultSchema.attributes?.div ?? []),
|
||||
'data*',
|
||||
['className', '__boltArtifact__', '__boltThought__', '__boltQuickAction'],
|
||||
['className', '__boltArtifact__', '__boltThought__', '__boltQuickAction', '__boltSelectedElement__'],
|
||||
|
||||
// ['className', '__boltThought__']
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user