{"version":3,"file":"dist-js-BwKI7bXt.js","names":[],"sources":["../../node_modules/.pnpm/@choochmeque+tauri-plugin-sharekit-api@0.4.0-rc.5/node_modules/@choochmeque/tauri-plugin-sharekit-api/dist-js/index.js"],"sourcesContent":["import { invoke } from '@tauri-apps/api/core';\n\n/**\n * Opens the native sharing interface to share the specified text.\n *\n * ```javascript\n * import { shareText } from \"@choochmeque/tauri-plugin-sharekit-api\";\n * await shareText('I am a shared message');\n * ```\n * @param text\n * @param options\n * @returns\n */\nasync function shareText(text, options) {\n    await invoke(\"plugin:sharekit|share_text\", {\n        text,\n        ...options,\n    });\n}\n/**\n * Opens the native sharing interface to share a file.\n *\n * ```javascript\n * import { shareFile } from \"@choochmeque/tauri-plugin-sharekit-api\";\n * await shareFile('file:///path/to/file.pdf', {\n *   mimeType: 'application/pdf',\n *   title: 'Document.pdf'\n * });\n * ```\n * @param url - The file URL to share (must be a file:// URL)\n * @param options - Optional settings including MIME type and title\n * @returns\n */\nasync function shareFile(url, options) {\n    await invoke(\"plugin:sharekit|share_file\", {\n        url,\n        ...options,\n    });\n}\n\nexport { shareFile, shareText };\n"],"x_google_ignoreList":[0],"mappings":"uCAaA,eAAe,EAAU,EAAM,EAAS,CACpC,MAAM,EAAO,6BAA8B,CACvC,OACA,GAAG,CACP,CAAC,CACL"}