{
  "version": 3,
  "sources": ["../../../../../src/lib/ui/hooks/clipboard/pasteUrl.ts"],
  "sourcesContent": ["import { Editor, TLExternalContentSource, VecLike } from '@tldraw/editor'\nimport { putPastedExternalContent } from './putPastedContent'\n\n/**\n * When the clipboard has plain text that is a valid URL, create a bookmark shape and insert it into\n * the scene\n *\n * @param editor - The editor instance.\n * @param url - The URL to paste.\n * @param point - The point at which to paste the file.\n * @internal\n */\nexport async function pasteUrl(\n\teditor: Editor,\n\turl: string,\n\tpoint?: VecLike,\n\tsources?: TLExternalContentSource[],\n\tclipboardPasteSource: 'native-event' | 'clipboard-read' = 'native-event'\n) {\n\teditor.markHistoryStoppingPoint('paste')\n\n\treturn await putPastedExternalContent(\n\t\teditor,\n\t\t{\n\t\t\ttype: 'url',\n\t\t\tpoint,\n\t\t\turl,\n\t\t\tsources,\n\t\t},\n\t\t{ source: clipboardPasteSource, point }\n\t)\n}\n"],
  "mappings": "AACA,SAAS,gCAAgC;AAWzC,eAAsB,SACrB,QACA,KACA,OACA,SACA,uBAA0D,gBACzD;AACD,SAAO,yBAAyB,OAAO;AAEvC,SAAO,MAAM;AAAA,IACZ;AAAA,IACA;AAAA,MACC,MAAM;AAAA,MACN;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,IACA,EAAE,QAAQ,sBAAsB,MAAM;AAAA,EACvC;AACD;",
  "names": []
}
