New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lowdefy/block-utils

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lowdefy/block-utils - npm Package Compare versions

Comparing version 4.0.0-rc.10 to 4.0.0-rc.11

20

dist/HtmlComponent.js

@@ -27,2 +27,15 @@ /*

}
onTextSelection() {
if (this.props.events?.onTextSelection) {
const selection = window.getSelection().toString();
if (selection !== '') {
this.props.methods.triggerEvent({
name: 'onTextSelection',
event: {
selection: selection
}
});
}
}
}
render() {

@@ -39,3 +52,4 @@ const { div, id, methods, style } = this.props;

},
className: methods.makeCssClass(style)
className: methods.makeCssClass(style),
onMouseUp: this.onTextSelection
});

@@ -51,3 +65,4 @@ }

},
className: methods.makeCssClass(style)
className: methods.makeCssClass(style),
onMouseUp: this.onTextSelection
});

@@ -60,4 +75,5 @@ }

};
this.onTextSelection = this.onTextSelection.bind(this);
}
};
export default HtmlComponent;

3

dist/renderHtml.js

@@ -18,4 +18,5 @@ /*

import HtmlComponent from './HtmlComponent.js';
const renderHtml = ({ div, html, id, methods, style })=>type.isNone(html) ? undefined : /*#__PURE__*/ React.createElement(HtmlComponent, {
const renderHtml = ({ div, events, html, id, methods, style })=>type.isNone(html) ? undefined : /*#__PURE__*/ React.createElement(HtmlComponent, {
div: div,
events: events,
html: html,

@@ -22,0 +23,0 @@ id: id,

{
"name": "@lowdefy/block-utils",
"version": "4.0.0-rc.10",
"version": "4.0.0-rc.11",
"license": "Apache-2.0",

@@ -44,5 +44,5 @@ "description": "Lowdefy Block Utils",

"dependencies": {
"@emotion/css": "11.10.5",
"@lowdefy/helpers": "4.0.0-rc.10",
"dompurify": "2.4.7",
"@emotion/css": "11.11.2",
"@lowdefy/helpers": "4.0.0-rc.11",
"dompurify": "3.0.6",
"react": "18.2.0",

@@ -52,7 +52,7 @@ "react-dom": "18.2.0"

"devDependencies": {
"@babel/core": "7.22.9",
"@babel/core": "7.23.0",
"@emotion/jest": "11.10.5",
"@swc/cli": "0.1.62",
"@swc/core": "1.3.70",
"@swc/jest": "0.2.27",
"@swc/core": "1.3.92",
"@swc/jest": "0.2.29",
"@testing-library/dom": "8.19.1",

@@ -69,3 +69,3 @@ "@testing-library/react": "13.4.0",

},
"gitHead": "537af074f27770e32da9da8d48490f2eda94b406"
"gitHead": "dbc49d3688a6d2f44de25cc3f4bc071627f7ebfa"
}
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