MCPcopy Create free account
hub / github.com/altic-dev/Pilot / sendToParent

Method sendToParent

public/picker/react-component-picker.js:420–431  ·  view source on GitHub ↗

* Send component info to parent window

(data)

Source from the content-addressed store, hash-verified

418 * Send component info to parent window
419 */
420 sendToParent(data) {
421 try {
422 window.parent.postMessage({
423 type: 'component-selected',
424 data: data
425 }, '*'); // Will be validated by parent
426
427 console.log('[Pilot Picker] Component sent to parent:', data);
428 } catch (error) {
429 console.error('[Pilot Picker] Error sending to parent:', error);
430 }
431 }
432
433 /**
434 * Send error to parent window

Callers 2

handleClickMethod · 0.95
handleKeyDownMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected