Socket
Socket
Sign inDemoInstall

filerobot-image-editor

Package Overview
Dependencies
Maintainers
1
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filerobot-image-editor - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

4

dist/components/Preview/ImageManipulator.js

@@ -124,3 +124,3 @@ "use strict";

request.open("POST", [baseUrl, "upload?dir=".concat(dir)].join(''));
request.setRequestHeader('X-Airstore-Secret-Key', filerobot.token);
request.setRequestHeader('X-Airstore-Secret-Key', filerobot.uploadKey);
request.send(formData);

@@ -144,3 +144,3 @@ });

request.open("POST", [baseUrl, "upload?dir=".concat(dir)].join(''));
request.setRequestHeader('X-Airstore-Secret-Key', filerobot.token);
request.setRequestHeader('X-Airstore-Secret-Key', filerobot.uploadKey);
request.setRequestHeader('Content-Type', 'application/json');

@@ -147,0 +147,0 @@ request.send(JSON.stringify({

@@ -13,3 +13,3 @@ "use strict";

function _templateObject2() {
var data = _taggedTemplateLiteral(["\n position: relative;\n background: ", ";\n z-index: 1050;\n width: 100%;\n height: 100%;\n min-height: 520px;\n overflow-y: auto;\n font-size: 12px;\n \n .cropper-container {\n direction: ltr;\n font-size: 0;\n line-height: 0;\n position: relative;\n -ms-touch-action: none;\n touch-action: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n \n .cropper-container img {/*Avoid margin top issue (Occur only when margin-top <= -height)*/\n display: block;\n height: 100%;\n image-orientation: 0deg;\n max-height: none !important;\n max-width: none !important;\n min-height: 0 !important;\n min-width: 0 !important;\n width: 100%;\n }\n \n .cropper-wrap-box,\n .cropper-canvas,\n .cropper-drag-box,\n .cropper-crop-box,\n .cropper-modal {\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n }\n \n .cropper-wrap-box,\n .cropper-canvas {\n overflow: hidden;\n }\n \n .cropper-drag-box {\n background-color: #fff;\n opacity: 0;\n }\n \n .cropper-modal {\n background-color: #000;\n opacity: .5;\n }\n \n .cropper-view-box {\n display: block;\n height: 100%;\n outline-color: rgba(255, 255, 255, 0.75);\n outline: 1px solid #fff;\n overflow: hidden;\n width: 100%;\n }\n \n .cropper-dashed {\n border: 0 dashed #eee;\n display: block;\n opacity: .5;\n position: absolute;\n }\n \n .cropper-dashed.dashed-h {\n border-bottom-width: 1px;\n border-top-width: 1px;\n height: 33.33333%;\n left: 0;\n top: 33.33333%;\n width: 100%;\n }\n \n .cropper-dashed.dashed-v {\n border-left-width: 1px;\n border-right-width: 1px;\n height: 100%;\n left: 33.33333%;\n top: 0;\n width: 33.33333%;\n }\n \n .cropper-center {\n display: block;\n height: 0;\n left: 50%;\n opacity: .75;\n position: absolute;\n top: 50%;\n width: 0;\n }\n \n .cropper-center:before,\n .cropper-center:after {\n background-color: #fff;\n content: ' ';\n display: block;\n position: absolute;\n }\n \n .cropper-center:before {\n height: 1px;\n left: -10px;\n top: 0;\n width: 20px;\n }\n \n .cropper-center:after {\n height: 20px;\n left: 0;\n top: -10px;\n width: 1px;\n }\n \n .cropper-face,\n .cropper-line,\n .cropper-point {\n display: block;\n height: 100%;\n opacity: .1;\n position: absolute;\n width: 100%;\n }\n \n .cropper-face {\n background-color: #fff;\n left: 0;\n top: 0;\n }\n \n .cropper-line {\n background-color: #fff;\n }\n \n .cropper-line.line-e {\n cursor: ew-resize;\n right: -3px;\n top: 0;\n width: 5px;\n }\n \n .cropper-line.line-n {\n cursor: ns-resize;\n height: 5px;\n left: 0;\n top: -3px;\n }\n \n .cropper-line.line-w {\n cursor: ew-resize;\n left: -3px;\n top: 0;\n width: 5px;\n }\n \n .cropper-line.line-s {\n bottom: -3px;\n cursor: ns-resize;\n height: 5px;\n left: 0;\n }\n \n .cropper-point {\n background-color: #fff;\n height: 20px;\n opacity: .90;\n width: 20px;\n border-radius: 50%;\n }\n \n .cropper-point.point-e {\n cursor: ew-resize;\n margin-top: -10px;\n right: -10px;\n top: 50%;\n }\n \n .cropper-point.point-n {\n cursor: ns-resize;\n left: 50%;\n margin-left: -10px;\n top: -10px;\n }\n \n .cropper-point.point-w {\n cursor: ew-resize;\n left: -10px;\n margin-top: -10px;\n top: 50%;\n }\n \n .cropper-point.point-s {\n bottom: -10px;\n cursor: s-resize;\n left: 50%;\n margin-left: -10px;\n }\n \n .cropper-point.point-ne {\n cursor: nesw-resize;\n right: -10px;\n top: -10px;\n }\n \n .cropper-point.point-nw {\n cursor: nwse-resize;\n left: -10px;\n top: -10px;\n }\n \n .cropper-point.point-sw {\n bottom: -10px;\n cursor: nesw-resize;\n left: -10px;\n }\n \n .cropper-point.point-se {\n bottom: -10px;\n cursor: nwse-resize;\n height: 20px;\n right: -10px;\n width: 20px;\n }\n \n .cropper-point.point-se:before {\n background-color: #fff;\n bottom: -50%;\n content: ' ';\n display: block;\n height: 200%;\n opacity: 0;\n position: absolute;\n right: -50%;\n width: 200%;\n }\n \n .cropper-invisible {\n opacity: 0;\n }\n \n .cropper-bg {\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');\n }\n \n .cropper-hide {\n display: block;\n height: 0;\n position: absolute;\n width: 0;\n }\n \n .cropper-hidden {\n display: none !important;\n }\n \n .cropper-move {\n cursor: move;\n }\n \n .cropper-crop {\n cursor: crosshair;\n }\n \n .cropper-disabled .cropper-drag-box,\n .cropper-disabled .cropper-face,\n .cropper-disabled .cropper-line,\n .cropper-disabled .cropper-point {\n cursor: not-allowed;\n }\n"]);
var data = _taggedTemplateLiteral(["\n position: relative;\n background: ", ";\n z-index: 1050;\n width: 100%;\n height: 100%;\n min-height: 520px;\n overflow-y: auto;\n font-size: 12px;\n \n .cropper-container {\n direction: ltr;\n font-size: 0;\n line-height: 0;\n position: relative;\n -ms-touch-action: none;\n touch-action: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n \n .cropper-container img {/*Avoid margin top issue (Occur only when margin-top <= -height)*/\n display: block;\n height: 100%;\n image-orientation: 0deg;\n max-height: none !important;\n max-width: none !important;\n min-height: 0 !important;\n min-width: 0 !important;\n width: 100%;\n }\n \n .cropper-wrap-box,\n .cropper-canvas,\n .cropper-drag-box,\n .cropper-crop-box,\n .cropper-modal {\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n }\n \n .cropper-wrap-box,\n .cropper-canvas {\n overflow: hidden;\n }\n \n .cropper-drag-box {\n background-color: #fff;\n opacity: 0;\n }\n \n .cropper-modal {\n background-color: #000;\n opacity: .5;\n }\n \n .cropper-view-box {\n display: block;\n height: 100%;\n outline-color: rgba(255, 255, 255, 0.75);\n outline: 1px solid #fff;\n overflow: hidden;\n width: 100%;\n }\n \n .cropper-dashed {\n border: 0 dashed #eee;\n display: block;\n opacity: .5;\n position: absolute;\n }\n \n .cropper-dashed.dashed-h {\n border-bottom-width: 1px;\n border-top-width: 1px;\n height: 33.33333%;\n left: 0;\n top: 33.33333%;\n width: 100%;\n }\n \n .cropper-dashed.dashed-v {\n border-left-width: 1px;\n border-right-width: 1px;\n height: 100%;\n left: 33.33333%;\n top: 0;\n width: 33.33333%;\n }\n \n .cropper-center {\n display: block;\n height: 0;\n left: 50%;\n opacity: .75;\n position: absolute;\n top: 50%;\n width: 0;\n }\n \n .cropper-center:before,\n .cropper-center:after {\n background-color: #fff;\n content: ' ';\n display: block;\n position: absolute;\n }\n \n .cropper-center:before {\n height: 1px;\n left: -10px;\n top: 0;\n width: 20px;\n }\n \n .cropper-center:after {\n height: 20px;\n left: 0;\n top: -10px;\n width: 1px;\n }\n \n .cropper-face,\n .cropper-line,\n .cropper-point {\n display: block;\n height: 100%;\n opacity: .1;\n position: absolute;\n width: 100%;\n }\n \n .cropper-face {\n background-color: #fff;\n left: 0;\n top: 0;\n }\n \n .cropper-line {\n background-color: #fff;\n }\n \n .cropper-line.line-e {\n cursor: ew-resize;\n right: -3px;\n top: 0;\n width: 5px;\n }\n \n .cropper-line.line-n {\n cursor: ns-resize;\n height: 5px;\n left: 0;\n top: -3px;\n }\n \n .cropper-line.line-w {\n cursor: ew-resize;\n left: -3px;\n top: 0;\n width: 5px;\n }\n \n .cropper-line.line-s {\n bottom: -3px;\n cursor: ns-resize;\n height: 5px;\n left: 0;\n }\n \n .cropper-point {\n background-color: #fff;\n height: 20px;\n opacity: .90;\n width: 20px;\n border-radius: 50%;\n \n &:before {\n content: '';\n display: table;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background: black;\n opacity: 0.8;\n z-index: 11;\n position: absolute;\n top: calc(50% - 4px);\n left: calc(50% - 4px);\n }\n }\n \n .cropper-point.point-e {\n cursor: ew-resize;\n margin-top: -10px;\n right: -10px;\n top: 50%;\n }\n \n .cropper-point.point-n {\n cursor: ns-resize;\n left: 50%;\n margin-left: -10px;\n top: -10px;\n }\n \n .cropper-point.point-w {\n cursor: ew-resize;\n left: -10px;\n margin-top: -10px;\n top: 50%;\n }\n \n .cropper-point.point-s {\n bottom: -10px;\n cursor: s-resize;\n left: 50%;\n margin-left: -10px;\n }\n \n .cropper-point.point-ne {\n cursor: nesw-resize;\n right: -10px;\n top: -10px;\n }\n \n .cropper-point.point-nw {\n cursor: nwse-resize;\n left: -10px;\n top: -10px;\n }\n \n .cropper-point.point-sw {\n bottom: -10px;\n cursor: nesw-resize;\n left: -10px;\n }\n \n .cropper-point.point-se {\n bottom: -10px;\n cursor: nwse-resize;\n height: 20px;\n right: -10px;\n width: 20px;\n }\n \n .cropper-point.point-se:before {\n background-color: #fff;\n bottom: -50%;\n content: ' ';\n display: block;\n height: 200%;\n opacity: 0;\n position: absolute;\n right: -50%;\n width: 200%;\n }\n \n .cropper-invisible {\n opacity: 0;\n }\n \n .cropper-bg {\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');\n }\n \n .cropper-hide {\n display: block;\n height: 0;\n position: absolute;\n width: 0;\n }\n \n .cropper-hidden {\n display: none !important;\n }\n \n .cropper-move {\n cursor: move;\n }\n \n .cropper-crop {\n cursor: crosshair;\n }\n \n .cropper-disabled .cropper-drag-box,\n .cropper-disabled .cropper-face,\n .cropper-disabled .cropper-line,\n .cropper-disabled .cropper-point {\n cursor: not-allowed;\n }\n"]);

@@ -16,0 +16,0 @@ _templateObject2 = function _templateObject2() {

{
"name": "filerobot-image-editor",
"version": "2.0.2",
"version": "2.1.0",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "description": "Edit, resize, and filter any image!",

> Repository includes React version and JS wrapper for standalone usage
[![Release](https://img.shields.io/badge/release-v2.0.2-blue.svg)](https://github.com/scaleflex/filerobot-image-editor/releases)
[![Release](https://img.shields.io/badge/release-v2.1.0-blue.svg)](https://github.com/scaleflex/filerobot-image-editor/releases)
[![Free plan](https://img.shields.io/badge/price-includes%20free%20plan-green.svg)](https://www.filerobot.com/en/home#2de3fb9f-dd4a-457a-999a-025ad9bd5f3b)

@@ -70,3 +70,3 @@ [![Contributions welcome](https://img.shields.io/badge/contributions-welcome-orange.svg)](#contributing)

```html
<script src="https://cdn.scaleflex.it/plugins/filerobot-image-editor/2.0.2/filerobot-image-editor.min.js"></script>
<script src="https://cdn.scaleflex.it/plugins/filerobot-image-editor/2.1.0/filerobot-image-editor.min.js"></script>
```

@@ -73,0 +73,0 @@

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