@lexical/offset 0.26.0 → 0.27.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.
@@ -18,6 +18,12 @@ var lexical = require('lexical');
18
18
  *
19
19
  */
20
20
 
21
+ // Do not require this module directly! Use normal `invariant` calls.
22
+
23
+ function formatDevErrorMessage(message) {
24
+ throw new Error(message);
25
+ }
26
+
21
27
  class OffsetView {
22
28
  constructor(offsetMap, firstNode, blockOffsetSize = 1) {
23
29
  this._offsetMap = offsetMap;
@@ -242,7 +248,7 @@ function $createOffsetNode(state, key, parent, nodeMap, offsetMap, blockOffsetSi
242
248
  const node = nodeMap.get(key);
243
249
  if (node === undefined) {
244
250
  {
245
- throw Error(`createOffsetModel: could not find node by key`);
251
+ formatDevErrorMessage(`createOffsetModel: could not find node by key`);
246
252
  }
247
253
  }
248
254
  const start = state.offset;
@@ -298,7 +304,7 @@ function $createChildrenArray(element, nodeMap) {
298
304
  const node = nodeMap === null ? lexical.$getNodeByKey(nodeKey) : nodeMap.get(nodeKey);
299
305
  if (node === null || node === undefined) {
300
306
  {
301
- throw Error(`$createChildrenArray: node does not exist in nodeMap`);
307
+ formatDevErrorMessage(`$createChildrenArray: node does not exist in nodeMap`);
302
308
  }
303
309
  }
304
310
  children.push(nodeKey);
@@ -16,6 +16,12 @@ import { $getNodeByKey, $isTextNode, $createRangeSelection, $isElementNode } fro
16
16
  *
17
17
  */
18
18
 
19
+ // Do not require this module directly! Use normal `invariant` calls.
20
+
21
+ function formatDevErrorMessage(message) {
22
+ throw new Error(message);
23
+ }
24
+
19
25
  class OffsetView {
20
26
  constructor(offsetMap, firstNode, blockOffsetSize = 1) {
21
27
  this._offsetMap = offsetMap;
@@ -240,7 +246,7 @@ function $createOffsetNode(state, key, parent, nodeMap, offsetMap, blockOffsetSi
240
246
  const node = nodeMap.get(key);
241
247
  if (node === undefined) {
242
248
  {
243
- throw Error(`createOffsetModel: could not find node by key`);
249
+ formatDevErrorMessage(`createOffsetModel: could not find node by key`);
244
250
  }
245
251
  }
246
252
  const start = state.offset;
@@ -296,7 +302,7 @@ function $createChildrenArray(element, nodeMap) {
296
302
  const node = nodeMap === null ? $getNodeByKey(nodeKey) : nodeMap.get(nodeKey);
297
303
  if (node === null || node === undefined) {
298
304
  {
299
- throw Error(`$createChildrenArray: node does not exist in nodeMap`);
305
+ formatDevErrorMessage(`$createChildrenArray: node does not exist in nodeMap`);
300
306
  }
301
307
  }
302
308
  children.push(nodeKey);
@@ -6,4 +6,4 @@
6
6
  *
7
7
  */
8
8
 
9
- "use strict";var e=require("lexical");function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=t((function(e){const t=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;n.append("code",e);for(let e=1;e<arguments.length;e++)n.append("v",arguments[e]);throw t.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}));class l{constructor(e,t,n=1){this._offsetMap=e,this._firstNode=t,this._blockOffsetSize=n}createSelectionFromOffsets(t,n,l){const s=this._firstNode;if(null===s)return null;let i=t,f=n,c=r(s,i,this._blockOffsetSize),u=r(s,f,this._blockOffsetSize);if(void 0!==l&&(i=o(i,c,l,this,this._blockOffsetSize),c=r(s,i,this._blockOffsetSize),f=o(f,u,l,this,this._blockOffsetSize),u=r(s,f,this._blockOffsetSize)),null===c||null===u)return null;let a=c.key,d=u.key;const p=e.$getNodeByKey(a),g=e.$getNodeByKey(d);if(null===p||null===g)return null;let h=0,y=0,x="element",_="element";if("text"===c.type){h=i-c.start,x="text";const t=p.getNextSibling();i!==f&&h===p.getTextContentSize()&&e.$isTextNode(t)&&(h=0,a=t.__key)}else"inline"===c.type&&(a=p.getParentOrThrow().getKey(),h=f>c.start?c.end:c.start);"text"===u.type?(y=f-u.start,_="text"):"inline"===u.type&&(d=g.getParentOrThrow().getKey(),y=f>u.start?u.end:u.start);const v=e.$createRangeSelection();return null===v?null:(v.anchor.set(a,h,x),v.focus.set(d,y,_),v)}getOffsetsFromSelection(e){const t=e.anchor,n=e.focus,l=this._offsetMap,o=t.offset,r=n.offset;let s=-1,i=-1;if("text"===t.type){const e=l.get(t.key);void 0!==e&&(s=e.start+o)}else{const e=t.getNode().getDescendantByIndex(o);if(null!==e){const t=l.get(e.getKey());if(void 0!==t){s=e.getIndexWithinParent()!==o?t.end:t.start}}}if("text"===n.type){const e=l.get(n.key);void 0!==e&&(i=e.start+n.offset)}else{const e=n.getNode().getDescendantByIndex(r);if(null!==e){const t=l.get(e.getKey());if(void 0!==t){i=e.getIndexWithinParent()!==r?t.end:t.start}}}return[s,i]}}function o(e,t,n,l,o){const s=n._offsetMap,i=l._offsetMap,f=new Set;let c=e,u=t;for(;null!==u;){const e=u.key,t=s.get(e),n=u.end-u.start;if(f.add(e),void 0===t)c+=n;else{const e=t.end-t.start;e!==n&&(c+=n-e)}const l=u.prev;if(null!==l){u=l;continue}let o=u.parent;for(;null!==o;){let e=o.prev;if(null!==e){const t=e.key,n=s.get(t),l=e.end-e.start;if(f.add(t),void 0===n)c+=l;else{const e=n.end-n.start;e!==l&&(c+=l-e)}e=e.prev}o=o.parent}break}const a=n._firstNode;if(null!==a){u=r(a,e,o);let t=!1;for(;null!==u;){if(!f.has(u.key)){t=!0;break}u=u.parent}if(!t)for(;null!==u;){const e=u.key;if(!f.has(e)){const t=i.get(e),n=u.end-u.start;if(void 0===t)c-=n;else{const e=t.end-t.start;n!==e&&(c+=e-n)}}u=u.prev}}return c}function r(e,t,n){let l=e;for(;null!==l;){if(t<l.end+("element"!==l.type||0===n?1:0)){const e=l.child;if(null!==e){l=e;continue}return l}const e=l.next;if(null===e)break;l=e}return null}function s(e,t,n,l,o,r){return{child:e,end:l,key:o,next:null,parent:r,prev:null,start:n,type:t}}function i(t,l,o,r,i,u){const a=r.get(l);void 0===a&&n(3);const d=t.offset;if(e.$isElementNode(a)){const e=c(a,r),n=0===e.length,p=n?null:f(t,e,null,r,i,u);t.prevIsBlock&&!n||(t.prevIsBlock=!0,t.offset+=u);const g=s(p,"element",d,d,l,o);null!==p&&(p.parent=g);const h=t.offset;return g.end=h,i.set(l,g),g}t.prevIsBlock=!1;const p=e.$isTextNode(a),g=p?a.__text.length:1,h=s(null,p?"text":"inline",d,t.offset+=g,l,o);return i.set(l,h),h}function f(e,t,n,l,o,r){let s=null,f=null;const c=t.length;for(let u=0;u<c;u++){const c=i(e,t[u],n,l,o,r);null===f?s=c:(c.prev=f,f.next=c),f=c}return s}function c(t,l){const o=[];let r=t.__first;for(;null!==r;){const t=null===l?e.$getNodeByKey(r):l.get(r);null==t&&n(174),o.push(r),r=t.__next}return o}const u=c;exports.$createChildrenArray=c,exports.$createOffsetView=function(e,t=1,n){const o=(n||e._pendingEditorState||e._editorState)._nodeMap,r=o.get("root"),s=new Map,i=f({offset:0,prevIsBlock:!1},c(r,o),null,o,s,t);return new l(s,i,t)},exports.OffsetView=l,exports.createChildrenArray=u;
9
+ "use strict";var e=require("lexical");function t(e,...t){const n=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",e);for(const e of t)s.append("v",e);throw n.search=s.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}class n{constructor(e,t,n=1){this._offsetMap=e,this._firstNode=t,this._blockOffsetSize=n}createSelectionFromOffsets(t,n,r){const l=this._firstNode;if(null===l)return null;let i=t,f=n,c=o(l,i,this._blockOffsetSize),u=o(l,f,this._blockOffsetSize);if(void 0!==r&&(i=s(i,c,r,this,this._blockOffsetSize),c=o(l,i,this._blockOffsetSize),f=s(f,u,r,this,this._blockOffsetSize),u=o(l,f,this._blockOffsetSize)),null===c||null===u)return null;let a=c.key,d=u.key;const p=e.$getNodeByKey(a),g=e.$getNodeByKey(d);if(null===p||null===g)return null;let h=0,y=0,x="element",v="element";if("text"===c.type){h=i-c.start,x="text";const t=p.getNextSibling();i!==f&&h===p.getTextContentSize()&&e.$isTextNode(t)&&(h=0,a=t.__key)}else"inline"===c.type&&(a=p.getParentOrThrow().getKey(),h=f>c.start?c.end:c.start);"text"===u.type?(y=f-u.start,v="text"):"inline"===u.type&&(d=g.getParentOrThrow().getKey(),y=f>u.start?u.end:u.start);const _=e.$createRangeSelection();return null===_?null:(_.anchor.set(a,h,x),_.focus.set(d,y,v),_)}getOffsetsFromSelection(e){const t=e.anchor,n=e.focus,s=this._offsetMap,o=t.offset,r=n.offset;let l=-1,i=-1;if("text"===t.type){const e=s.get(t.key);void 0!==e&&(l=e.start+o)}else{const e=t.getNode().getDescendantByIndex(o);if(null!==e){const t=s.get(e.getKey());if(void 0!==t){l=e.getIndexWithinParent()!==o?t.end:t.start}}}if("text"===n.type){const e=s.get(n.key);void 0!==e&&(i=e.start+n.offset)}else{const e=n.getNode().getDescendantByIndex(r);if(null!==e){const t=s.get(e.getKey());if(void 0!==t){i=e.getIndexWithinParent()!==r?t.end:t.start}}}return[l,i]}}function s(e,t,n,s,r){const l=n._offsetMap,i=s._offsetMap,f=new Set;let c=e,u=t;for(;null!==u;){const e=u.key,t=l.get(e),n=u.end-u.start;if(f.add(e),void 0===t)c+=n;else{const e=t.end-t.start;e!==n&&(c+=n-e)}const s=u.prev;if(null!==s){u=s;continue}let o=u.parent;for(;null!==o;){let e=o.prev;if(null!==e){const t=e.key,n=l.get(t),s=e.end-e.start;if(f.add(t),void 0===n)c+=s;else{const e=n.end-n.start;e!==s&&(c+=s-e)}e=e.prev}o=o.parent}break}const a=n._firstNode;if(null!==a){u=o(a,e,r);let t=!1;for(;null!==u;){if(!f.has(u.key)){t=!0;break}u=u.parent}if(!t)for(;null!==u;){const e=u.key;if(!f.has(e)){const t=i.get(e),n=u.end-u.start;if(void 0===t)c-=n;else{const e=t.end-t.start;n!==e&&(c+=e-n)}}u=u.prev}}return c}function o(e,t,n){let s=e;for(;null!==s;){if(t<s.end+("element"!==s.type||0===n?1:0)){const e=s.child;if(null!==e){s=e;continue}return s}const e=s.next;if(null===e)break;s=e}return null}function r(e,t,n,s,o,r){return{child:e,end:s,key:o,next:null,parent:r,prev:null,start:n,type:t}}function l(n,s,o,l,c,u){const a=l.get(s);void 0===a&&t(3);const d=n.offset;if(e.$isElementNode(a)){const e=f(a,l),t=0===e.length,p=t?null:i(n,e,null,l,c,u);n.prevIsBlock&&!t||(n.prevIsBlock=!0,n.offset+=u);const g=r(p,"element",d,d,s,o);null!==p&&(p.parent=g);const h=n.offset;return g.end=h,c.set(s,g),g}n.prevIsBlock=!1;const p=e.$isTextNode(a),g=p?a.__text.length:1,h=r(null,p?"text":"inline",d,n.offset+=g,s,o);return c.set(s,h),h}function i(e,t,n,s,o,r){let i=null,f=null;const c=t.length;for(let u=0;u<c;u++){const c=l(e,t[u],n,s,o,r);null===f?i=c:(c.prev=f,f.next=c),f=c}return i}function f(n,s){const o=[];let r=n.__first;for(;null!==r;){const n=null===s?e.$getNodeByKey(r):s.get(r);null==n&&t(174),o.push(r),r=n.__next}return o}const c=f;exports.$createChildrenArray=f,exports.$createOffsetView=function(e,t=1,s){const o=(s||e._pendingEditorState||e._editorState)._nodeMap,r=o.get("root"),l=new Map,c=i({offset:0,prevIsBlock:!1},f(r,o),null,o,l,t);return new n(l,c,t)},exports.OffsetView=n,exports.createChildrenArray=c;
@@ -6,4 +6,4 @@
6
6
  *
7
7
  */
8
8
 
9
- import{$getNodeByKey as t,$isTextNode as e,$createRangeSelection as n,$isElementNode as l}from"lexical";function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var s=o((function(t){const e=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;n.append("code",t);for(let t=1;t<arguments.length;t++)n.append("v",arguments[t]);throw e.search=n.toString(),Error(`Minified Lexical error #${t}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}));class r{constructor(t,e,n=1){this._offsetMap=t,this._firstNode=e,this._blockOffsetSize=n}createSelectionFromOffsets(l,o,s){const r=this._firstNode;if(null===r)return null;let c=l,u=o,a=f(r,c,this._blockOffsetSize),d=f(r,u,this._blockOffsetSize);if(void 0!==s&&(c=i(c,a,s,this,this._blockOffsetSize),a=f(r,c,this._blockOffsetSize),u=i(u,d,s,this,this._blockOffsetSize),d=f(r,u,this._blockOffsetSize)),null===a||null===d)return null;let p=a.key,h=d.key;const g=t(p),_=t(h);if(null===g||null===_)return null;let y=0,v=0,k="element",x="element";if("text"===a.type){y=c-a.start,k="text";const t=g.getNextSibling();c!==u&&y===g.getTextContentSize()&&e(t)&&(y=0,p=t.__key)}else"inline"===a.type&&(p=g.getParentOrThrow().getKey(),y=u>a.start?a.end:a.start);"text"===d.type?(v=u-d.start,x="text"):"inline"===d.type&&(h=_.getParentOrThrow().getKey(),v=u>d.start?d.end:d.start);const S=n();return null===S?null:(S.anchor.set(p,y,k),S.focus.set(h,v,x),S)}getOffsetsFromSelection(t){const e=t.anchor,n=t.focus,l=this._offsetMap,o=e.offset,s=n.offset;let r=-1,i=-1;if("text"===e.type){const t=l.get(e.key);void 0!==t&&(r=t.start+o)}else{const t=e.getNode().getDescendantByIndex(o);if(null!==t){const e=l.get(t.getKey());if(void 0!==e){r=t.getIndexWithinParent()!==o?e.end:e.start}}}if("text"===n.type){const t=l.get(n.key);void 0!==t&&(i=t.start+n.offset)}else{const t=n.getNode().getDescendantByIndex(s);if(null!==t){const e=l.get(t.getKey());if(void 0!==e){i=t.getIndexWithinParent()!==s?e.end:e.start}}}return[r,i]}}function i(t,e,n,l,o){const s=n._offsetMap,r=l._offsetMap,i=new Set;let c=t,u=e;for(;null!==u;){const t=u.key,e=s.get(t),n=u.end-u.start;if(i.add(t),void 0===e)c+=n;else{const t=e.end-e.start;t!==n&&(c+=n-t)}const l=u.prev;if(null!==l){u=l;continue}let o=u.parent;for(;null!==o;){let t=o.prev;if(null!==t){const e=t.key,n=s.get(e),l=t.end-t.start;if(i.add(e),void 0===n)c+=l;else{const t=n.end-n.start;t!==l&&(c+=l-t)}t=t.prev}o=o.parent}break}const a=n._firstNode;if(null!==a){u=f(a,t,o);let e=!1;for(;null!==u;){if(!i.has(u.key)){e=!0;break}u=u.parent}if(!e)for(;null!==u;){const t=u.key;if(!i.has(t)){const e=r.get(t),n=u.end-u.start;if(void 0===e)c-=n;else{const t=e.end-e.start;n!==t&&(c+=t-n)}}u=u.prev}}return c}function f(t,e,n){let l=t;for(;null!==l;){if(e<l.end+("element"!==l.type||0===n?1:0)){const t=l.child;if(null!==t){l=t;continue}return l}const t=l.next;if(null===t)break;l=t}return null}function c(t,e,n,l,o,s){return{child:t,end:l,key:o,next:null,parent:s,prev:null,start:n,type:e}}function u(t,n,o,r,i,f){const u=r.get(n);void 0===u&&s(3);const p=t.offset;if(l(u)){const e=d(u,r),l=0===e.length,s=l?null:a(t,e,null,r,i,f);t.prevIsBlock&&!l||(t.prevIsBlock=!0,t.offset+=f);const h=c(s,"element",p,p,n,o);null!==s&&(s.parent=h);const g=t.offset;return h.end=g,i.set(n,h),h}t.prevIsBlock=!1;const h=e(u),g=h?u.__text.length:1,_=c(null,h?"text":"inline",p,t.offset+=g,n,o);return i.set(n,_),_}function a(t,e,n,l,o,s){let r=null,i=null;const f=e.length;for(let c=0;c<f;c++){const f=u(t,e[c],n,l,o,s);null===i?r=f:(f.prev=i,i.next=f),i=f}return r}function d(e,n){const l=[];let o=e.__first;for(;null!==o;){const e=null===n?t(o):n.get(o);null==e&&s(174),l.push(o),o=e.__next}return l}const p=d;function h(t,e=1,n){const l=(n||t._pendingEditorState||t._editorState)._nodeMap,o=l.get("root"),s=new Map,i=a({offset:0,prevIsBlock:!1},d(o,l),null,l,s,e);return new r(s,i,e)}export{d as $createChildrenArray,h as $createOffsetView,r as OffsetView,p as createChildrenArray};
9
+ import{$getNodeByKey as t,$isTextNode as e,$createRangeSelection as n,$isElementNode as l}from"lexical";function o(t,...e){const n=new URL("https://lexical.dev/docs/error"),l=new URLSearchParams;l.append("code",t);for(const t of e)l.append("v",t);throw n.search=l.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}class s{constructor(t,e,n=1){this._offsetMap=t,this._firstNode=e,this._blockOffsetSize=n}createSelectionFromOffsets(l,o,s){const f=this._firstNode;if(null===f)return null;let c=l,u=o,a=i(f,c,this._blockOffsetSize),d=i(f,u,this._blockOffsetSize);if(void 0!==s&&(c=r(c,a,s,this,this._blockOffsetSize),a=i(f,c,this._blockOffsetSize),u=r(u,d,s,this,this._blockOffsetSize),d=i(f,u,this._blockOffsetSize)),null===a||null===d)return null;let p=a.key,g=d.key;const h=t(p),_=t(g);if(null===h||null===_)return null;let k=0,v=0,y="element",x="element";if("text"===a.type){k=c-a.start,y="text";const t=h.getNextSibling();c!==u&&k===h.getTextContentSize()&&e(t)&&(k=0,p=t.__key)}else"inline"===a.type&&(p=h.getParentOrThrow().getKey(),k=u>a.start?a.end:a.start);"text"===d.type?(v=u-d.start,x="text"):"inline"===d.type&&(g=_.getParentOrThrow().getKey(),v=u>d.start?d.end:d.start);const S=n();return null===S?null:(S.anchor.set(p,k,y),S.focus.set(g,v,x),S)}getOffsetsFromSelection(t){const e=t.anchor,n=t.focus,l=this._offsetMap,o=e.offset,s=n.offset;let r=-1,i=-1;if("text"===e.type){const t=l.get(e.key);void 0!==t&&(r=t.start+o)}else{const t=e.getNode().getDescendantByIndex(o);if(null!==t){const e=l.get(t.getKey());if(void 0!==e){r=t.getIndexWithinParent()!==o?e.end:e.start}}}if("text"===n.type){const t=l.get(n.key);void 0!==t&&(i=t.start+n.offset)}else{const t=n.getNode().getDescendantByIndex(s);if(null!==t){const e=l.get(t.getKey());if(void 0!==e){i=t.getIndexWithinParent()!==s?e.end:e.start}}}return[r,i]}}function r(t,e,n,l,o){const s=n._offsetMap,r=l._offsetMap,f=new Set;let c=t,u=e;for(;null!==u;){const t=u.key,e=s.get(t),n=u.end-u.start;if(f.add(t),void 0===e)c+=n;else{const t=e.end-e.start;t!==n&&(c+=n-t)}const l=u.prev;if(null!==l){u=l;continue}let o=u.parent;for(;null!==o;){let t=o.prev;if(null!==t){const e=t.key,n=s.get(e),l=t.end-t.start;if(f.add(e),void 0===n)c+=l;else{const t=n.end-n.start;t!==l&&(c+=l-t)}t=t.prev}o=o.parent}break}const a=n._firstNode;if(null!==a){u=i(a,t,o);let e=!1;for(;null!==u;){if(!f.has(u.key)){e=!0;break}u=u.parent}if(!e)for(;null!==u;){const t=u.key;if(!f.has(t)){const e=r.get(t),n=u.end-u.start;if(void 0===e)c-=n;else{const t=e.end-e.start;n!==t&&(c+=t-n)}}u=u.prev}}return c}function i(t,e,n){let l=t;for(;null!==l;){if(e<l.end+("element"!==l.type||0===n?1:0)){const t=l.child;if(null!==t){l=t;continue}return l}const t=l.next;if(null===t)break;l=t}return null}function f(t,e,n,l,o,s){return{child:t,end:l,key:o,next:null,parent:s,prev:null,start:n,type:e}}function c(t,n,s,r,i,c){const d=r.get(n);void 0===d&&o(3);const p=t.offset;if(l(d)){const e=a(d,r),l=0===e.length,o=l?null:u(t,e,null,r,i,c);t.prevIsBlock&&!l||(t.prevIsBlock=!0,t.offset+=c);const g=f(o,"element",p,p,n,s);null!==o&&(o.parent=g);const h=t.offset;return g.end=h,i.set(n,g),g}t.prevIsBlock=!1;const g=e(d),h=g?d.__text.length:1,_=f(null,g?"text":"inline",p,t.offset+=h,n,s);return i.set(n,_),_}function u(t,e,n,l,o,s){let r=null,i=null;const f=e.length;for(let u=0;u<f;u++){const f=c(t,e[u],n,l,o,s);null===i?r=f:(f.prev=i,i.next=f),i=f}return r}function a(e,n){const l=[];let s=e.__first;for(;null!==s;){const e=null===n?t(s):n.get(s);null==e&&o(174),l.push(s),s=e.__next}return l}const d=a;function p(t,e=1,n){const l=(n||t._pendingEditorState||t._editorState)._nodeMap,o=l.get("root"),r=new Map,i=u({offset:0,prevIsBlock:!1},a(o,l),null,l,r,e);return new s(r,i,e)}export{a as $createChildrenArray,p as $createOffsetView,s as OffsetView,d as createChildrenArray};
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "offset"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.26.0",
11
+ "version": "0.27.0",
12
12
  "main": "LexicalOffset.js",
13
13
  "types": "index.d.ts",
14
14
  "repository": {
@@ -36,6 +36,6 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "lexical": "0.26.0"
39
+ "lexical": "0.27.0"
40
40
  }
41
41
  }