function pasteTldrawContent(editor, clipboard, point) {
  const p = point ?? (editor.inputs.shiftKey ? editor.inputs.currentPagePoint : void 0);
  const seletionBoundsBefore = editor.getSelectionPageBounds();
  editor.mark("paste");
  editor.putContentOntoCurrentPage(clipboard, {
    point: p,
    select: true
  });
  const selectedBoundsAfter = editor.getSelectionPageBounds();
  if (seletionBoundsBefore && selectedBoundsAfter && seletionBoundsBefore?.collides(selectedBoundsAfter)) {
    editor.updateInstanceState({ isChangingStyle: true });
    setTimeout(() => {
      editor.updateInstanceState({ isChangingStyle: false });
    }, 150);
  }
}
export {
  pasteTldrawContent
};
//# sourceMappingURL=pasteTldrawContent.mjs.map
