sonance-brand-mcp 1.3.82 → 1.3.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -155,35 +155,6 @@ export function SonanceDevTools() {
155
155
  return () => observer.disconnect();
156
156
  }, []);
157
157
 
158
- // Protect DevTools from host app event capture (e.g., modal focus traps)
159
- // This uses capture phase to intercept events BEFORE host app listeners can grab them
160
- useEffect(() => {
161
- if (!mounted || !isOpen) return;
162
-
163
- const protectDevToolsEvents = (e: Event) => {
164
- // Check if the event target is inside the DevTools panel
165
- const devToolsPanel = document.querySelector('[data-sonance-devtools="true"]');
166
- if (devToolsPanel?.contains(e.target as Node)) {
167
- // Stop the event from being captured by host app listeners
168
- e.stopImmediatePropagation();
169
- }
170
- };
171
-
172
- // Capture phase (third param = true) runs before bubble phase
173
- // stopImmediatePropagation prevents other capture listeners from running
174
- const events = ['pointerdown', 'mousedown', 'touchstart', 'click', 'focus', 'focusin'];
175
-
176
- events.forEach(eventType => {
177
- document.addEventListener(eventType, protectDevToolsEvents, true);
178
- });
179
-
180
- return () => {
181
- events.forEach(eventType => {
182
- document.removeEventListener(eventType, protectDevToolsEvents, true);
183
- });
184
- };
185
- }, [mounted, isOpen]);
186
-
187
158
  // Component-specific style overrides (for scalable, project-agnostic styling)
188
159
  // Key: component type (e.g., "card", "button-primary", "card:variant123"), Value: style overrides
189
160
  const [componentOverrides, setComponentOverrides] = useState<Record<string, ComponentStyle>>({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonance-brand-mcp",
3
- "version": "1.3.82",
3
+ "version": "1.3.83",
4
4
  "description": "MCP Server for Sonance Brand Guidelines and Component Library - gives Claude instant access to brand colors, typography, and UI components.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",