Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lexical/mark

Package Overview
Dependencies
Maintainers
6
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lexical/mark - npm Package Compare versions

Comparing version 0.3.11 to 0.4.0

4

index.d.ts

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc