datasync-blob 1.1.6 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/DsBlob.js CHANGED
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  import { Component } from "react";
12
- import "./DsBlob.css";
13
12
  export class DsBlob extends Component {
14
13
  constructor(props) {
15
14
  super(props);
@@ -96,7 +95,7 @@ export class DsBlob extends Component {
96
95
  this.onInputChange = (e) => {
97
96
  const errs = [];
98
97
  const files = Array.from(e.target.files || []);
99
- const types = ['image/png', 'image/jpeg', 'image/gif'];
98
+ const types = ['image/png', 'image/jpeg', 'image/gif', 'image/svg', 'image/webp'];
100
99
  const _1Mo = 1024 * 1024;
101
100
  const SizeLimit = 9;
102
101
  //Reset input cache value - to assure trigger if user select the same file again
@@ -1,5 +1,4 @@
1
1
  import { Component, ChangeEvent } from "react";
2
- import "./DsBlob.css";
3
2
  interface DsBlobProps {
4
3
  width?: number;
5
4
  height?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datasync-blob",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "Datasync Blob component",
5
5
  "main": "dist/DsBlob.js",
6
6
  "module": "dist/DsBlob.js",
@@ -17,26 +17,12 @@
17
17
  "email": "pmabiala@me.com"
18
18
  },
19
19
  "devDependencies": {
20
- "@babel/cli": "^7.24.1",
21
- "@babel/core": "^7.24.4",
22
- "@babel/preset-env": "^7.24.4",
23
- "@babel/preset-react": "^7.24.1",
24
- "@testing-library/react": "^14.2.2",
25
- "javascript-obfuscator": "^4.1.1",
26
- "jest": "^29.7.0",
27
- "jest-environment-jsdom": "^29.7.0",
28
- "jest-transform-css": "^6.0.1",
29
- "react": "^18.2.0",
30
- "react-pdf": "^10.0.1",
31
- "tsup": "^8.5.0",
32
- "typescript": "^5.9.2",
33
- "webpack": "^5.99.9",
34
- "webpack-cli": "^6.0.1",
35
- "webpack-node-externals": "^3.0.0",
36
- "webpack-obfuscator": "^3.5.1"
20
+ "@types/react": "^19.1.9",
21
+ "@types/react-dom": "^19.1.7",
22
+ "typescript": "^5.9.2"
37
23
  },
38
24
  "peerDependencies": {
39
- "react": "^ 18.2.0"
25
+ "react": "^17 || ^18"
40
26
  },
41
27
  "scripts": {
42
28
  "hybrid": "tsc",
package/dist/DsBlob.css DELETED
File without changes