slate 0.86.0 → 0.87.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.js CHANGED
@@ -199,6 +199,7 @@ function _createForOfIteratorHelper$7(o, allowArrayLike) { var it = typeof Symbo
199
199
  function _unsupportedIterableToArray$7(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$7(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$7(o, minLen); }
200
200
 
201
201
  function _arrayLikeToArray$7(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
202
+ var nextEditorId = 0;
202
203
  /**
203
204
  * Create a new Slate `Editor` object.
204
205
  */
@@ -209,6 +210,7 @@ var createEditor = function createEditor() {
209
210
  operations: [],
210
211
  selection: null,
211
212
  marks: null,
213
+ id: nextEditorId++,
212
214
  isInline: function isInline() {
213
215
  return false;
214
216
  },