{"version":3,"file":"share-menu.mjs","names":[],"sources":["../../src/renderer/share-menu/index.ts"],"sourcesContent":["/**\n * Renderer process API for shareMenu module (macOS only)\n * Usage in renderer process:\n *\n * import * as shareMenu from 'electron-main-bridge/renderer/shareMenu';\n *\n * // Pop up the share sheet\n * await shareMenu.popup({\n *   urls: ['https://example.com']\n * });\n *\n * // Or with options\n * await shareMenu.popup(\n *   { texts: ['Hello, world!'] },\n *   { x: 100, y: 100 }\n * );\n */\n\nimport type { PopupOptions, SharingItem } from \"@shared/share-menu.types.js\";\n\n/**\n * Create a ShareMenu instance and pop it up\n * @param sharingItem The item to share\n * @param options Optional popup configuration\n */\nexport async function popup(sharingItem: SharingItem, options?: PopupOptions): Promise<void> {\n  await window.rpc.call(\"shareMenu.popup\", sharingItem, options);\n}\n\n/**\n * Close the share menu popup\n * @param windowId Optional BrowserWindow id. If not provided, closes all active menus\n */\nexport async function closePopup(windowId?: number): Promise<void> {\n  await window.rpc.call(\"shareMenu.closePopup\", windowId);\n}\n"],"mappings":";;;;;;;;;;;;AAyBA,eAAsB,MAAM,aAA0B,SAAuC;AAC3F,OAAM,OAAO,IAAI,KAAK,mBAAmB,aAAa,QAAQ;;;;;;AAOhE,eAAsB,WAAW,UAAkC;AACjE,OAAM,OAAO,IAAI,KAAK,wBAAwB,SAAS"}