Comparing version 0.1.0 to 0.1.1
@@ -1,3 +0,3 @@ | ||
'use strict';var d=require("@lexical/core"),e=require("@lexical/core/ParagraphNode");function f(a,...b){b.forEach(c=>{null!=c&&"string"===typeof c&&a.classList.add(...c.split(" "))})} | ||
'use strict';var d=require("lexical"),e=require("lexical/ParagraphNode");function f(a,...b){b.forEach(c=>{null!=c&&"string"===typeof c&&a.classList.add(...c.split(" "))})} | ||
class g extends d.ElementNode{static getType(){return"code"}static clone(a){return new g(a.__language,a.__key)}constructor(a,b){super(b);this.__language=a}createDOM(a){const b=document.createElement("code");f(b,a.theme.code);b.setAttribute("spellcheck","false");return b}updateDOM(){return!1}insertNewAfter(a){const b=this.getChildren(),c=b.length;return 2<=c&&"\n"===b[c-1].getTextContent()&&"\n"===b[c-2].getTextContent()&&a.isCollapsed()&&a.anchor.key===this.__key&&a.anchor.offset===c?(b[c-1].remove(), | ||
b[c-2].remove(),a=e.$createParagraphNode(),this.insertAfter(a),a):null}canInsertTab(){return!0}collapseAtStart(){const a=e.$createParagraphNode();this.getChildren().forEach(b=>a.append(b));this.replace(a);return!0}setLanguage(a){this.getWritable().__language=a}getLanguage(){return this.getLatest().__language}}exports.$createCodeNode=function(a){return new g(a)};exports.$isCodeNode=function(a){return a instanceof g};exports.CodeNode=g; |
@@ -1,3 +0,3 @@ | ||
'use strict';var c=require("@lexical/core");function d(b,...a){a.forEach(f=>{null!=f&&"string"===typeof f&&b.classList.add(...f.split(" "))})} | ||
'use strict';var c=require("lexical");function d(b,...a){a.forEach(f=>{null!=f&&"string"===typeof f&&b.classList.add(...f.split(" "))})} | ||
class e extends c.TextNode{static getType(){return"hashtag"}static clone(b){return new e(b.__text,b.__key)}constructor(b,a){super(b,a)}createDOM(b){const a=super.createDOM(b);d(a,b.theme.hashtag);return a}setTextContent(b){let a=super.setTextContent(b);return null===a.getParent()||a.isComposing()?this:(b=b.indexOf("#"),-1===b||"#"===a.getTextContent()?a=g(a):0<b&&([a]=a.splitText(b),a=g(a)),c.$isTextNode(a)&&a.isAttached()&&(b=a.getTextContent().slice(1).search(/[\s.,\\\/#!$%\^&\*;:{}=\-`~()@]/), | ||
0===b?a=g(a):0<b&&([a]=a.splitText(b+1),a=g(a))),a)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!0}}function g(b){var a=b.getTextContent();a=h(b)?c.$createTextNode(a):k(a);b.replace(a);return a}function k(b=""){return new e(b)}function h(b){return b instanceof e}exports.$createHashtagNode=k;exports.$isHashtagNode=h;exports.$toggleHashtag=g;exports.HashtagNode=e; |
@@ -1,3 +0,3 @@ | ||
'use strict';var d=require("@lexical/core"),e=require("@lexical/core/ParagraphNode");function f(a,...b){b.forEach(c=>{null!=c&&"string"===typeof c&&a.classList.add(...c.split(" "))})} | ||
'use strict';var d=require("lexical"),e=require("lexical/ParagraphNode");function f(a,...b){b.forEach(c=>{null!=c&&"string"===typeof c&&a.classList.add(...c.split(" "))})} | ||
class g extends d.ElementNode{static getType(){return"heading"}static clone(a){return new g(a.__tag,a.__key)}constructor(a,b){super(b);this.__tag=a}getTag(){return this.__tag}createDOM(a){const b=this.__tag,c=document.createElement(b);a=a.theme.heading;void 0!==a&&f(c,a[b]);return c}updateDOM(){return!1}insertNewAfter(){const a=e.$createParagraphNode(),b=this.getDirection();a.setDirection(b);this.insertAfter(a);return a}collapseAtStart(){const a=e.$createParagraphNode();this.getChildren().forEach(b=> | ||
a.append(b));this.replace(a);return!0}}exports.$createHeadingNode=function(a){return new g(a)};exports.$isHeadingNode=function(a){return a instanceof g};exports.HeadingNode=g; |
@@ -118,3 +118,3 @@ 'use strict';const aa=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,ba=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,p={bold:1,underline:8,strikethrough:4,italic:2,code:16,subscript:32,superscript:64},ca={left:1,right:3,center:2,justify:4},da={normal:0,token:1,segmented:2, | ||
exports.$createNodeFromParse=function(a,b){G();const c=C();return Nb(a,b,c,null)};exports.$createSelection=function(){const a=O("root",0,"element"),b=O("root",0,"element");return new Qa(a,b,0)};exports.$createTextNode=P;exports.$flushMutations=function(){G();const a=C();ra(a)};exports.$getCompositionKey=J;exports.$getNearestNodeFromDOMNode=oa;exports.$getNodeByKey=I;exports.$getPreviousSelection=function(){return C()._editorState._selection};exports.$getRoot=Ia;exports.$getSelection=t; | ||
exports.$isDecoratorNode=v;exports.$isElementNode=D;exports.$isLeafNode=Ca;exports.$isLineBreakNode=Da;exports.$isRootNode=R;exports.$isTextNode=y;exports.$log=na;exports.$setCompositionKey=F;exports.$setSelection=qa;exports.DecoratorNode=fb;exports.ElementNode=eb;exports.TextNode=cc;exports.VERSION="0.1.0"; | ||
exports.$isDecoratorNode=v;exports.$isElementNode=D;exports.$isLeafNode=Ca;exports.$isLineBreakNode=Da;exports.$isRootNode=R;exports.$isTextNode=y;exports.$log=na;exports.$setCompositionKey=F;exports.$setSelection=qa;exports.DecoratorNode=fb;exports.ElementNode=eb;exports.TextNode=cc;exports.VERSION="0.1.1"; | ||
exports.createEditor=function(a){var b=a||{};a=b.theme||{};const c=b.context||{},d=b.parentEditor||null,e=b.htmlTransforms||{},f=ib();b=b.initialEditorState;a=new bc(f,d,{context:c,theme:a,htmlTransforms:e});void 0!==b&&(a._pendingEditorState=b,a._dirtyType=2);return a};exports.createEditorStateRef=Ob;exports.isEditorStateRef=function(a){return a instanceof jc}; |
@@ -1,3 +0,3 @@ | ||
'use strict';var d=require("@lexical/core");function e(a,...b){b.forEach(c=>{null!=c&&"string"===typeof c&&a.classList.add(...c.split(" "))})} | ||
'use strict';var d=require("lexical");function e(a,...b){b.forEach(c=>{null!=c&&"string"===typeof c&&a.classList.add(...c.split(" "))})} | ||
class f extends d.ElementNode{static getType(){return"link"}static clone(a){return new f(a.__url,a.__key)}constructor(a,b){super(b);this.__url=a}createDOM(a){const b=document.createElement("a");b.href=this.__url;e(b,a.theme.link);return b}updateDOM(a,b){const c=this.__url;c!==a.__url&&(b.href=c);return!1}getURL(){return this.getLatest().__url}setURL(a){this.getWritable().__url=a}insertNewAfter(a){a=this.getParentOrThrow().insertNewAfter(a);if(null!==a){const b=g(this.__url);a.append(b);return b}return null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}} | ||
function g(a){return new f(a)}exports.$createLinkNode=g;exports.$isLinkNode=function(a){return a instanceof f};exports.LinkNode=f; |
@@ -1,8 +0,8 @@ | ||
'use strict';var f=require("@lexical/core"),g=require("@lexical/core/ParagraphNode"),l=require("@lexical/core/ListNode"),m=require("@lexical/core/ListItemNode");function n(a){throw Error(`Minified Lexical error #${a}; see codes.json for the full message or `+"use the non-minified dev environment for full errors and additional helpful warnings.");}function p(a,...c){c.forEach(b=>{null!=b&&"string"===typeof b&&a.classList.add(...b.split(" "))})} | ||
function q(a,...c){c.forEach(b=>{a.classList.remove(...b.split(" "))})} | ||
class r extends f.ElementNode{static getType(){return"listitem"}static clone(a){return new r(a.__key)}constructor(a){super(a)}createDOM(a){const c=document.createElement("li");c.value=t(this);u(c,a.theme,this);return c}updateDOM(a,c,b){c.value=t(this);u(c,b.theme,this);return!1}append(...a){for(let c=0;c<a.length;c++){const b=a[c];if(f.$isElementNode(b)&&this.canMergeWith(b)){const d=b.getChildren();this.append(...d);b.remove()}else super.append(b)}return this}replace(a){if(v(a))return super.replace(a);const c= | ||
this.getParentOrThrow();if(l.$isListNode(c)){var b=c.__children;const e=b.length;var d=b.indexOf(this.__key);if(0===d)c.insertBefore(a);else if(d===e-1)c.insertAfter(a);else{b=l.$createListNode(c.__tag);const h=c.getChildren();for(d+=1;d<e;d++)b.append(h[d]);c.insertAfter(a);a.insertAfter(b)}this.remove();1===e&&c.remove()}return a}insertAfter(a){var c=this.getNextSiblings();if(v(a))return c.forEach(d=>d.markDirty()),super.insertAfter(a);var b=this.getParentOrThrow();l.$isListNode(b)||n(1);if(l.$isListNode(a)&& | ||
a.getTag()===b.getTag()){c=a;a=a.getChildren();for(b=a.length-1;0<=b;b--)c=a[b],this.insertAfter(c);return c}b.insertAfter(a);if(0!==c.length){const d=l.$createListNode(b.getTag());c.forEach(e=>d.append(e));a.insertAfter(d)}return a}insertNewAfter(){var a=this.getNextSibling();const c=this.getPreviousSibling();var b=this.getParent();l.$isListNode(b)||n(2);for(var d=b;null!==d;)d=d.getParent(),l.$isListNode(d)&&(b=d);d=!0;var e=this.getFirstChild();if(l.$isListNode(e))d=!1;else for(e=this;null!==e;)m.$isListItemNode(e)&& | ||
0<e.getNextSiblings().length&&(d=!1),e=e.getParent();f.$isElementNode(b)&&""===this.getTextContent()&&(null===c||null===a)&&d?(null===a?(a=g.$createParagraphNode(),b.insertAfter(a)):(a=g.$createParagraphNode(),b.insertBefore(a)),this.remove(),b.isEmpty()&&b.remove()):(a=w(),this.insertAfter(a));return a}collapseAtStart(a){const c=g.$createParagraphNode();this.getChildren().forEach(h=>c.append(h));var b=this.getParentOrThrow(),d=b.getParentOrThrow();const e=v(d);1===b.getChildrenSize()?e?(b.remove(), | ||
d.select()):(b.replace(c),b=a.anchor,a=a.focus,d=c.getKey(),"element"===b.type&&b.getNode().is(this)&&b.set(d,b.offset,"element"),"element"===a.type&&a.getNode().is(this)&&a.set(d,a.offset,"element")):(b.insertBefore(c),this.remove());return!0}canInsertAfter(a){return v(a)}canReplaceWith(a){return v(a)}canMergeWith(a){return g.$isParagraphNode(a)||v(a)}}function t(a){let c=1;a=a.getPreviousSiblings();for(let b=0;b<a.length;b++){const d=a[b];v(d)&&!l.$isListNode(d.getFirstChild())&&c++}return c} | ||
function u(a,c,b){const d=[],e=[],h=(c=c.list)?c.listitem:void 0;if(c&&c.nested)var k=c.nested.listitem;void 0!==h&&(c=h.split(" "),d.push(...c));void 0!==k&&(k=k.split(" "),b.getChildren().some(x=>l.$isListNode(x))?d.push(...k):e.push(...k));0<d.length&&p(a,...d);0<e.length&&q(a,...e)}function w(){return new r}function v(a){return a instanceof r}exports.$createListItemNode=w;exports.$isListItemNode=v;exports.ListItemNode=r; | ||
'use strict';var f=require("lexical"),g=require("lexical/ParagraphNode"),l=require("lexical/ListNode"),m=require("lexical/ListItemNode");function n(a){throw Error(`Minified Lexical error #${a}; see codes.json for the full message or `+"use the non-minified dev environment for full errors and additional helpful warnings.");}function p(a,...c){c.forEach(b=>{null!=b&&"string"===typeof b&&a.classList.add(...b.split(" "))})}function q(a,...c){c.forEach(b=>{a.classList.remove(...b.split(" "))})} | ||
class r extends f.ElementNode{static getType(){return"listitem"}static clone(a){return new r(a.__key)}constructor(a){super(a)}createDOM(a){const c=document.createElement("li");c.value=t(this);u(c,a.theme,this);return c}updateDOM(a,c,b){c.value=t(this);u(c,b.theme,this);return!1}append(...a){for(let c=0;c<a.length;c++){const b=a[c];if(f.$isElementNode(b)&&this.canMergeWith(b)){const d=b.getChildren();this.append(...d);b.remove()}else super.append(b)}return this}replace(a){if(v(a))return super.replace(a); | ||
const c=this.getParentOrThrow();if(l.$isListNode(c)){var b=c.__children;const e=b.length;var d=b.indexOf(this.__key);if(0===d)c.insertBefore(a);else if(d===e-1)c.insertAfter(a);else{b=l.$createListNode(c.__tag);const h=c.getChildren();for(d+=1;d<e;d++)b.append(h[d]);c.insertAfter(a);a.insertAfter(b)}this.remove();1===e&&c.remove()}return a}insertAfter(a){var c=this.getNextSiblings();if(v(a))return c.forEach(d=>d.markDirty()),super.insertAfter(a);var b=this.getParentOrThrow();l.$isListNode(b)||n(1); | ||
if(l.$isListNode(a)&&a.getTag()===b.getTag()){c=a;a=a.getChildren();for(b=a.length-1;0<=b;b--)c=a[b],this.insertAfter(c);return c}b.insertAfter(a);if(0!==c.length){const d=l.$createListNode(b.getTag());c.forEach(e=>d.append(e));a.insertAfter(d)}return a}insertNewAfter(){var a=this.getNextSibling();const c=this.getPreviousSibling();var b=this.getParent();l.$isListNode(b)||n(2);for(var d=b;null!==d;)d=d.getParent(),l.$isListNode(d)&&(b=d);d=!0;var e=this.getFirstChild();if(l.$isListNode(e))d=!1;else for(e= | ||
this;null!==e;)m.$isListItemNode(e)&&0<e.getNextSiblings().length&&(d=!1),e=e.getParent();f.$isElementNode(b)&&""===this.getTextContent()&&(null===c||null===a)&&d?(null===a?(a=g.$createParagraphNode(),b.insertAfter(a)):(a=g.$createParagraphNode(),b.insertBefore(a)),this.remove(),b.isEmpty()&&b.remove()):(a=w(),this.insertAfter(a));return a}collapseAtStart(a){const c=g.$createParagraphNode();this.getChildren().forEach(h=>c.append(h));var b=this.getParentOrThrow(),d=b.getParentOrThrow();const e=v(d); | ||
1===b.getChildrenSize()?e?(b.remove(),d.select()):(b.replace(c),b=a.anchor,a=a.focus,d=c.getKey(),"element"===b.type&&b.getNode().is(this)&&b.set(d,b.offset,"element"),"element"===a.type&&a.getNode().is(this)&&a.set(d,a.offset,"element")):(b.insertBefore(c),this.remove());return!0}canInsertAfter(a){return v(a)}canReplaceWith(a){return v(a)}canMergeWith(a){return g.$isParagraphNode(a)||v(a)}} | ||
function t(a){let c=1;a=a.getPreviousSiblings();for(let b=0;b<a.length;b++){const d=a[b];v(d)&&!l.$isListNode(d.getFirstChild())&&c++}return c}function u(a,c,b){const d=[],e=[],h=(c=c.list)?c.listitem:void 0;if(c&&c.nested)var k=c.nested.listitem;void 0!==h&&(c=h.split(" "),d.push(...c));void 0!==k&&(k=k.split(" "),b.getChildren().some(x=>l.$isListNode(x))?d.push(...k):e.push(...k));0<d.length&&p(a,...d);0<e.length&&q(a,...e)}function w(){return new r}function v(a){return a instanceof r} | ||
exports.$createListItemNode=w;exports.$isListItemNode=v;exports.ListItemNode=r; |
@@ -1,2 +0,2 @@ | ||
'use strict';var f=require("@lexical/core"),h=require("@lexical/core/ListItemNode"),m=require("@lexical/core/ListNode");function n(b,...a){a.forEach(c=>{null!=c&&"string"===typeof c&&b.classList.add(...c.split(" "))})}function p(b,...a){a.forEach(c=>{b.classList.remove(...c.split(" "))})} | ||
'use strict';var f=require("lexical"),h=require("lexical/ListItemNode"),m=require("lexical/ListNode");function n(b,...a){a.forEach(c=>{null!=c&&"string"===typeof c&&b.classList.add(...c.split(" "))})}function p(b,...a){a.forEach(c=>{b.classList.remove(...c.split(" "))})} | ||
class t extends f.ElementNode{static getType(){return"list"}static clone(b){return new t(b.__tag,b.__start,b.__key)}constructor(b,a,c){super(c);this.__tag=b;this.__start=a}getTag(){return this.__tag}createDOM(b){const a=document.createElement(this.__tag);1!==this.__start&&a.setAttribute("start",String(this.__start));u(a,b.theme,this);return a}updateDOM(b,a,c){if(b.__tag!==this.__tag)return!0;u(a,c.theme,this);return!1}canBeEmpty(){return!1}append(...b){for(let c=0;c<b.length;c++){var a=b[c];if(h.$isListItemNode(a))super.append(a); | ||
@@ -3,0 +3,0 @@ else{const e=h.$createListItemNode();v(a)?e.append(a):(a=f.$createTextNode(a.getTextContent()),e.append(a));super.append(e)}}return this}} |
@@ -16,3 +16,3 @@ { | ||
"license": "MIT", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"main": "Lexical.js", | ||
@@ -19,0 +19,0 @@ "repository": { |
@@ -1,3 +0,3 @@ | ||
'use strict';var c=require("@lexical/core");function d(a,...b){b.forEach(e=>{null!=e&&"string"===typeof e&&a.classList.add(...e.split(" "))})} | ||
'use strict';var c=require("lexical");function d(a,...b){b.forEach(e=>{null!=e&&"string"===typeof e&&a.classList.add(...e.split(" "))})} | ||
class f extends c.ElementNode{static getType(){return"paragraph"}static clone(a){return new f(a.__key)}constructor(a){super(a)}createDOM(a){const b=document.createElement("p");d(b,a.theme.paragraph);return b}updateDOM(){return!1}insertNewAfter(){const a=g(),b=this.getDirection();a.setDirection(b);this.insertAfter(a);return a}collapseAtStart(){var a=this.getChildren();const b=this.getNextSibling();return c.$isElementNode(b)&&0===this.getIndexWithinParent()&&(0===a.length||c.$isTextNode(a[0])&&""=== | ||
a[0].getTextContent().trim())?(a=b.getFirstChild(),c.$isTextNode(a)?a.select(0,0):b.select(0,0),this.remove(),!0):!1}}function g(){return new f}exports.$createParagraphNode=g;exports.$isParagraphNode=function(a){return a instanceof f};exports.ParagraphNode=f; |
@@ -1,3 +0,3 @@ | ||
'use strict';var c=require("@lexical/core"),e=require("@lexical/core/ParagraphNode");function f(a,...b){b.forEach(d=>{null!=d&&"string"===typeof d&&a.classList.add(...d.split(" "))})} | ||
'use strict';var c=require("lexical"),e=require("lexical/ParagraphNode");function f(a,...b){b.forEach(d=>{null!=d&&"string"===typeof d&&a.classList.add(...d.split(" "))})} | ||
class g extends c.ElementNode{static getType(){return"quote"}static clone(a){return new g(a.__key)}constructor(a){super(a)}createDOM(a){const b=document.createElement("blockquote");f(b,a.theme.quote);return b}updateDOM(){return!1}insertNewAfter(){const a=e.$createParagraphNode(),b=this.getDirection();a.setDirection(b);this.insertAfter(a);return a}collapseAtStart(){const a=e.$createParagraphNode();this.getChildren().forEach(b=>a.append(b));this.replace(a);return!0}}exports.$createQuoteNode=function(){return new g}; | ||
exports.$isQuoteNode=function(a){return a instanceof g};exports.QuoteNode=g; |
@@ -1,5 +0,5 @@ | ||
# `@lexical/core` | ||
# `lexical` | ||
Lexical is an extensible JavaScript text-editor that provides reliable, accessible and performant typing experiences for the web. | ||
The `@lexical/core` package contains only the core Lexical engine and nodes. This package is intended to be used in conjunction with packages that wire Lexical up to applications, such as `@lexical/react`. | ||
The `lexical` package contains only the core Lexical engine and nodes. This package is intended to be used in conjunction with packages that wire Lexical up to applications, such as `@lexical/react`. |
@@ -1,3 +0,3 @@ | ||
'use strict';var c=require("@lexical/core");function e(a,...b){b.forEach(d=>{null!=d&&"string"===typeof d&&a.classList.add(...d.split(" "))})} | ||
'use strict';var c=require("lexical");function e(a,...b){b.forEach(d=>{null!=d&&"string"===typeof d&&a.classList.add(...d.split(" "))})} | ||
class f extends c.ElementNode{static getType(){return"table-cell"}static clone(a){return new f(!1,a.__key)}constructor(a=!1,b){super(b);this.__isHeader=a}getTag(){return this.__isHeader?"th":"td"}createDOM(a){const b=document.createElement(this.getTag());e(b,a.theme.tableCell,!0===this.__isHeader&&a.theme.tableCellHeader);return b}updateDOM(){return!1}collapseAtStart(){return!0}canSelectionRemove(){return!1}}exports.$createTableCellNode=function(a){return new f(a)}; | ||
exports.$isTableCellNode=function(a){return a instanceof f};exports.TableCellNode=f; |
@@ -1,2 +0,2 @@ | ||
'use strict';var r=require("@lexical/core");function v(a,...e){e.forEach(g=>{null!=g&&"string"===typeof g&&a.classList.add(...g.split(" "))})}const x=document.createElement("style");x.appendChild(document.createTextNode("::selection{background-color: transparent}"));function A(a){for(;null!=a;){const e=a.nodeName;if("TD"===e||"TH"===e){a=a._cell;if(void 0===a)break;return a}a=a.parentNode}return null} | ||
'use strict';var r=require("lexical");function v(a,...e){e.forEach(g=>{null!=g&&"string"===typeof g&&a.classList.add(...g.split(" "))})}const x=document.createElement("style");x.appendChild(document.createTextNode("::selection{background-color: transparent}"));function A(a){for(;null!=a;){const e=a.nodeName;if("TD"===e||"TH"===e){a=a._cell;if(void 0===a)break;return a}a=a.parentNode}return null} | ||
function B(a){const e=[],g={rows:0,columns:0,cells:e};(new MutationObserver(b=>{var d=a.firstChild;let h=0,f=0,n=!1;for(let k=0;k<b.length;k++){const l=b[k].target.nodeName;if("TABLE"===l||"TR"===l){n=!0;break}}if(n){for(e.length=0;null!=d;){b=d.nodeName;if("TD"===b||"TH"===b)b={elem:d,highlighted:!1,x:h,y:f},d._cell=b,void 0===e[f]&&(e[f]=[]),e[f][h]=b;else if(b=d.firstChild,null!=b){d=b;continue}b=d.nextSibling;if(null!=b)h++,d=b;else if(b=d.parentNode,null!=b){d=b.nextSibling;if(null==d)break; | ||
@@ -3,0 +3,0 @@ f++;h=0}}g.columns=h+1;g.rows=f+1}})).observe(a,{childList:!0,subtree:!0});return g}function C(a,e,g,b,d){const h=[];for(let f=0;f<d.length;f++){const n=d[f];for(let k=0;k<n.length;k++){const l=n[k],q=l.elem.style;k>=a&&k<=e&&f>=g&&f<=b?(l.highlighted||(l.highlighted=!0,q.setProperty("background-color","rgb(163, 187, 255)"),q.setProperty("caret-color","transparent")),h.push(l)):l.highlighted&&(l.highlighted=!1,q.removeProperty("background-color"),q.removeProperty("caret-color"))}}return h} |
@@ -1,2 +0,2 @@ | ||
'use strict';var c=require("@lexical/core");function e(a,...b){b.forEach(d=>{null!=d&&"string"===typeof d&&a.classList.add(...d.split(" "))})}class f extends c.ElementNode{static getType(){return"table-row"}static clone(a){return new f(a.__key)}constructor(a){super(a)}createDOM(a){const b=document.createElement("tr");e(b,a.theme.tableRow);return b}updateDOM(){return!1}canBeEmpty(){return!1}canSelectionRemove(){return!1}}exports.$createTableRowNode=function(){return new f}; | ||
'use strict';var c=require("lexical");function e(a,...b){b.forEach(d=>{null!=d&&"string"===typeof d&&a.classList.add(...d.split(" "))})}class f extends c.ElementNode{static getType(){return"table-row"}static clone(a){return new f(a.__key)}constructor(a){super(a)}createDOM(a){const b=document.createElement("tr");e(b,a.theme.tableRow);return b}updateDOM(){return!1}canBeEmpty(){return!1}canSelectionRemove(){return!1}}exports.$createTableRowNode=function(){return new f}; | ||
exports.$isTableRowNode=function(a){return a instanceof f};exports.TableRowNode=f; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1
69164
303