@lexical/table
Advanced tools
Comparing version 0.16.2-nightly.20240711.0 to 0.16.2-nightly.20240712.0
@@ -49,3 +49,3 @@ /** | ||
function xa(a,b){a=b.elem;b=v.$getNearestNodeFromDOMNode(a);A(b)||I(131);null===b.getBackgroundColor()&&a.style.removeProperty("background-color");a.style.removeProperty("background-image");a.style.removeProperty("caret-color")}function Da(a){a=h.$findMatchingParent(a,A);return A(a)?a:null}function T(a){a=h.$findMatchingParent(a,N);return N(a)?a:null} | ||
function V(a,b,c,d,e){if(("up"===c||"down"===c)&&Ea(a))return!1;var f=v.$getSelection();if(!U(f,d)){if(v.$isRangeSelection(f)){if(f.isCollapsed()&&"backward"===c){e=f.anchor.type;d=f.anchor.offset;if("element"!==e&&("text"!==e||0!==d))return!1;e=f.anchor.getNode();if(!e)return!1;e=h.$findMatchingParent(e,p=>v.$isElementNode(p)&&!p.isInline());if(!e)return!1;e=e.getPreviousSibling();if(!e||!N(e))return!1;Z(b);e.selectEnd();return!0}if(b.shiftKey&&("up"===c||"down"===c))if(b=f.anchor.getNode(),v.$isRootOrShadowRoot(b)){if((c= | ||
function V(a,b,c,d,e){if(("up"===c||"down"===c)&&Ea(a))return!1;var f=v.$getSelection();if(!U(f,d)){if(v.$isRangeSelection(f)){if(f.isCollapsed()&&"backward"===c){e=f.anchor.type;d=f.anchor.offset;if("element"!==e&&("text"!==e||0!==d))return!1;e=f.anchor.getNode();if(!e)return!1;e=h.$findMatchingParent(e,p=>v.$isElementNode(p)&&!p.isInline());if(!e)return!1;e=e.getPreviousSibling();if(!e||!N(e))return!1;Z(b);e.selectEnd();return!0}if(b.shiftKey&&("up"===c||"down"===c))if(b=f.focus.getNode(),v.$isRootOrShadowRoot(b)){if((c= | ||
f.getNodes()[0])&&(c=h.$findMatchingParent(c,A))&&d.isParentOf(c)){b=d.getFirstDescendant();c=d.getLastDescendant();if(!b||!c)return!1;[b]=Q(b);[c]=Q(c);b=d.getCordsFromCellNode(b,e.table);c=d.getCordsFromCellNode(c,e.table);b=d.getDOMCellFromCordsOrThrow(b.x,b.y,e.table);d=d.getDOMCellFromCordsOrThrow(c.x,c.y,e.table);e.setAnchorCellForSelection(b);e.setFocusCellForSelection(d,!0);return!0}}else{d=h.$findMatchingParent(b,p=>v.$isElementNode(p)&&!p.isInline());if(!d)return!1;d="down"===c?d.getNextSibling(): | ||
@@ -52,0 +52,0 @@ d.getPreviousSibling();if(N(d)&&e.tableNodeKey===d.getKey()){e=d.getFirstDescendant();d=d.getLastDescendant();if(!e||!d)return!1;[e]=Q(e);[d]=Q(d);b=f.clone();b.focus.set(("up"===c?e:d).getKey(),"up"===c?0:d.getChildrenSize(),"element");v.$setSelection(b);return!0}}}return!1}if(v.$isRangeSelection(f)&&f.isCollapsed()){let {anchor:p,focus:t}=f;var g=h.$findMatchingParent(p.getNode(),A),m=h.$findMatchingParent(t.getNode(),A);if(!A(g)||!g.is(m))return!1;m=T(g);if(m!==d&&null!=m){var r=a.getElementByKey(m.getKey()); |
@@ -11,8 +11,8 @@ { | ||
"license": "MIT", | ||
"version": "0.16.2-nightly.20240711.0", | ||
"version": "0.16.2-nightly.20240712.0", | ||
"main": "LexicalTable.js", | ||
"types": "index.d.ts", | ||
"dependencies": { | ||
"@lexical/utils": "0.16.2-nightly.20240711.0", | ||
"lexical": "0.16.2-nightly.20240711.0" | ||
"@lexical/utils": "0.16.2-nightly.20240712.0", | ||
"lexical": "0.16.2-nightly.20240712.0" | ||
}, | ||
@@ -19,0 +19,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
317394
+ Added@lexical/list@0.16.2-nightly.20240712.0(transitive)
+ Added@lexical/selection@0.16.2-nightly.20240712.0(transitive)
+ Added@lexical/utils@0.16.2-nightly.20240712.0(transitive)
+ Addedlexical@0.16.2-nightly.20240712.0(transitive)
- Removed@lexical/list@0.16.2-nightly.20240711.0(transitive)
- Removed@lexical/selection@0.16.2-nightly.20240711.0(transitive)
- Removed@lexical/utils@0.16.2-nightly.20240711.0(transitive)
- Removedlexical@0.16.2-nightly.20240711.0(transitive)