@lexical/mark
Advanced tools
Comparing version 0.3.11 to 0.4.0
@@ -0,1 +1,2 @@ | ||
/** @module @lexical/mark */ | ||
/** | ||
@@ -8,2 +9,3 @@ * Copyright (c) Meta Platforms, Inc. and affiliates. | ||
*/ | ||
import type { SerializedMarkNode } from './MarkNode'; | ||
import type { RangeSelection, TextNode } from 'lexical'; | ||
@@ -14,2 +16,2 @@ import { $createMarkNode, $isMarkNode, MarkNode } from './MarkNode'; | ||
export declare function $getMarkIDs(node: TextNode, offset: number): null | Array<string>; | ||
export { $createMarkNode, $isMarkNode, MarkNode }; | ||
export { $createMarkNode, $isMarkNode, MarkNode, SerializedMarkNode }; |
@@ -19,3 +19,6 @@ /** | ||
*/ | ||
/** @noInheritDoc */ | ||
class MarkNode extends lexical.ElementNode { | ||
/** @internal */ | ||
static getType() { | ||
@@ -138,5 +141,5 @@ return 'mark'; | ||
if (lexical.$isElementNode(element)) { | ||
const linkNode = $createMarkNode(this.__ids); | ||
element.append(linkNode); | ||
return linkNode; | ||
const markNode = $createMarkNode(this.__ids); | ||
element.append(markNode); | ||
return markNode; | ||
} | ||
@@ -189,9 +192,3 @@ | ||
/** | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
*/ | ||
/** @module @lexical/mark */ | ||
function $unwrapMarkNode(node) { | ||
@@ -198,0 +195,0 @@ const children = node.getChildren(); |
@@ -15,3 +15,5 @@ /** | ||
}, SerializedElementNode>; | ||
/** @noInheritDoc */ | ||
export declare class MarkNode extends ElementNode { | ||
/** @internal */ | ||
__ids: Array<string>; | ||
@@ -18,0 +20,0 @@ static getType(): string; |
@@ -11,9 +11,9 @@ { | ||
"license": "MIT", | ||
"version": "0.3.11", | ||
"version": "0.4.0", | ||
"main": "LexicalMark.js", | ||
"peerDependencies": { | ||
"lexical": "0.3.11" | ||
"lexical": "0.4.0" | ||
}, | ||
"dependencies": { | ||
"@lexical/utils": "0.3.11" | ||
"@lexical/utils": "0.4.0" | ||
}, | ||
@@ -20,0 +20,0 @@ "repository": { |
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
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
16115
+ Added@lexical/list@0.4.0(transitive)
+ Added@lexical/table@0.4.0(transitive)
+ Added@lexical/utils@0.4.0(transitive)
+ Addedlexical@0.4.0(transitive)
- Removed@lexical/list@0.3.11(transitive)
- Removed@lexical/table@0.3.11(transitive)
- Removed@lexical/utils@0.3.11(transitive)
- Removedlexical@0.3.11(transitive)
Updated@lexical/utils@0.4.0