slate 0.80.0-20224713209 → 0.80.0

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/dist/index.es.js CHANGED
@@ -1805,10 +1805,7 @@ var Editor = {
1805
1805
  // yield their first point. If the `voids` option is set to true,
1806
1806
  // then we will iterate over their content.
1807
1807
  if (!voids && editor.isVoid(node)) {
1808
- yield Editor.start(editor, path); // It's possible the start of the range we're iterating over is in a void, in which case
1809
- // we want to make sure we don't incorrectly yield the start of a subsequent text node for unit !== 'offset'
1810
-
1811
- isNewBlock = false;
1808
+ yield Editor.start(editor, path);
1812
1809
  continue;
1813
1810
  } // Inline element nodes are ignored as they don't themselves
1814
1811
  // contribute to `blockText` or `leafText` - their parent and
@@ -2222,8 +2219,8 @@ var Node = {
2222
2219
  /**
2223
2220
  * Return a generator of all the ancestor nodes above a specific path.
2224
2221
  *
2225
- * By default the order is bottom-up, from lowest to highest ancestor in
2226
- * the tree, but you can pass the `reverse: true` option to go top-down.
2222
+ * By default the order is top-down, from highest to lowest ancestor in
2223
+ * the tree, but you can pass the `reverse: true` option to go bottom-up.
2227
2224
  */
2228
2225
  *ancestors(root, path) {
2229
2226
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
@@ -2507,7 +2504,7 @@ var Node = {
2507
2504
  /**
2508
2505
  * Return a generator of the in a branch of the tree, from a specific path.
2509
2506
  *
2510
- * By default the order is top-down, from lowest to highest node in the tree,
2507
+ * By default the order is top-down, from highest to lowest node in the tree,
2511
2508
  * but you can pass the `reverse: true` option to go bottom-up.
2512
2509
  */
2513
2510
  *levels(root, path) {
@@ -2846,7 +2843,7 @@ var Path = {
2846
2843
  /**
2847
2844
  * Get a list of ancestor paths for a given path.
2848
2845
  *
2849
- * The paths are sorted from deepest to shallowest ancestor. However, if the
2846
+ * The paths are sorted from shallowest to deepest ancestor. However, if the
2850
2847
  * `reverse: true` option is passed, they are reversed.
2851
2848
  */
2852
2849
  ancestors(path) {