Socket
Socket
Sign inDemoInstall

@lexical/dragon

Package Overview
Dependencies
Maintainers
5
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lexical/dragon - npm Package Compare versions

Comparing version 0.2.9 to 0.3.0

6

LexicalDragon.prod.js

@@ -7,4 +7,4 @@ /**

*/
var g=require("lexical");
exports.registerDragonSupport=function(l){const r=m=>{var h=l.getRootElement();if(document.activeElement===h&&(h=m.data,"string"===typeof h)){try{var a=JSON.parse(h)}catch(k){return}if(a&&"nuanria_messaging"===a.protocol&&"request"===a.type&&(a=a.payload)&&"makeChanges"===a.functionId&&(a=a.args)){const [k,n,p,q,t]=a;l.update(()=>{const f=g.$getSelection();if(g.$isRangeSelection(f)){var e=f.anchor;let b=e.getNode(),c=0,d=0;g.$isTextNode(b)&&0<=k&&0<=n&&(c=k,d=k+n,f.setTextNodeRange(b,c,b,d));if(c!==
d||""!==p)f.insertRawText(p),b=e.getNode();g.$isTextNode(b)&&(c=q,d=q+t,e=b.getTextContentSize(),c=c>e?e:c,d=d>e?e:d,f.setTextNodeRange(b,c,b,d));m.stopImmediatePropagation()}})}}};window.addEventListener("message",r,!0);return()=>{window.removeEventListener("message",r,!0)}};
'use strict';var g=require("lexical");
exports.registerDragonSupport=function(l){let r=m=>{var h=l.getRootElement();if(document.activeElement===h&&(h=m.data,"string"===typeof h)){try{var a=JSON.parse(h)}catch(k){return}if(a&&"nuanria_messaging"===a.protocol&&"request"===a.type&&(a=a.payload)&&"makeChanges"===a.functionId&&(a=a.args)){const [k,n,p,q,t]=a;l.update(()=>{const f=g.$getSelection();if(g.$isRangeSelection(f)){var e=f.anchor;let b=e.getNode(),c=0,d=0;g.$isTextNode(b)&&0<=k&&0<=n&&(c=k,d=k+n,f.setTextNodeRange(b,c,b,d));if(c!==
d||""!==p)f.insertRawText(p),b=e.getNode();g.$isTextNode(b)&&(c=q,d=q+t,e=b.getTextContentSize(),c=c>e?e:c,d=d>e?e:d,f.setTextNodeRange(b,c,b,d));m.stopImmediatePropagation()}})}}};window.addEventListener("message",r,!0);return()=>{window.removeEventListener("message",r,!0)}}
{
"name": "@lexical/dragon",
"description": "This package contains compatability with Dragon NaturallySpeaking accessibility tools.",
"description": "This package contains compatibility with Dragon NaturallySpeaking accessibility tools.",
"keywords": [

@@ -12,6 +12,6 @@ "lexical",

"license": "MIT",
"version": "0.2.9",
"version": "0.3.0",
"main": "LexicalDragon.js",
"peerDependencies": {
"lexical": "0.2.9"
"lexical": "0.3.0"
},

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

# `@lexical/dragon`
This package contains compatability with Dragon NaturallySpeaking accessibility tools.
This package contains compatibility with Dragon NaturallySpeaking accessibility tools.
More documentation coming soon.
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