@portabletext/editor 4.1.3 → 4.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2016 - 2025 Sanity.io
3
+ Copyright (c) 2016 - 2026 Sanity.io
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/lib/index.js CHANGED
@@ -8304,7 +8304,7 @@ function insertBlock(options) {
8304
8304
  })).at(0) ?? [void 0, void 0];
8305
8305
  if (!startBlock || !startBlockPath || !endBlock || !endBlockPath)
8306
8306
  throw new Error("Unable to insert block without a start and end block");
8307
- if (!editor.selection && select !== "none" && DOMEditor.focus(editor), !at) {
8307
+ if (!at) {
8308
8308
  if (placement === "before")
8309
8309
  Transforms.insertNodes(editor, [block], {
8310
8310
  at: [0]