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

@lexical/hashtag

Package Overview
Dependencies
Maintainers
5
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lexical/hashtag - npm Package Compare versions

Comparing version 0.21.1-nightly.20241223.0 to 0.22.0

6

LexicalHashtag.dev.js

@@ -47,8 +47,2 @@ /**

}
exportJSON() {
return {
...super.exportJSON(),
type: 'hashtag'
};
}
canInsertTextBefore() {

@@ -55,0 +49,0 @@ return false;

3

LexicalHashtag.prod.js

@@ -9,4 +9,3 @@ /**

'use strict';var c=require("@lexical/utils"),d=require("lexical");
class e extends d.TextNode{static getType(){return"hashtag"}static clone(a){return new e(a.__text,a.__key)}constructor(a,b){super(a,b)}createDOM(a){let b=super.createDOM(a);c.addClassNamesToElement(b,a.theme.hashtag);return b}static importJSON(a){let b=f(a.text);b.setFormat(a.format);b.setDetail(a.detail);b.setMode(a.mode);b.setStyle(a.style);return b}exportJSON(){return{...super.exportJSON(),type:"hashtag"}}canInsertTextBefore(){return!1}isTextEntity(){return!0}}
'use strict';var c=require("@lexical/utils"),d=require("lexical");class e extends d.TextNode{static getType(){return"hashtag"}static clone(a){return new e(a.__text,a.__key)}constructor(a,b){super(a,b)}createDOM(a){let b=super.createDOM(a);c.addClassNamesToElement(b,a.theme.hashtag);return b}static importJSON(a){let b=f(a.text);b.setFormat(a.format);b.setDetail(a.detail);b.setMode(a.mode);b.setStyle(a.style);return b}canInsertTextBefore(){return!1}isTextEntity(){return!0}}
function f(a=""){return d.$applyNodeReplacement(new e(a))}exports.$createHashtagNode=f;exports.$isHashtagNode=function(a){return a instanceof e};exports.HashtagNode=e

@@ -17,3 +17,2 @@ /**

static importJSON(serializedNode: SerializedTextNode): HashtagNode;
exportJSON(): SerializedTextNode;
canInsertTextBefore(): boolean;

@@ -20,0 +19,0 @@ isTextEntity(): true;

@@ -11,8 +11,8 @@ {

"license": "MIT",
"version": "0.21.1-nightly.20241223.0",
"version": "0.22.0",
"main": "LexicalHashtag.js",
"types": "index.d.ts",
"dependencies": {
"@lexical/utils": "0.21.1-nightly.20241223.0",
"lexical": "0.21.1-nightly.20241223.0"
"@lexical/utils": "0.22.0",
"lexical": "0.22.0"
},

@@ -19,0 +19,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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