react-image-annotate-master-custom 0.0.34 → 0.0.37

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.
@@ -42,7 +42,8 @@ var RegionComponents = {
42
42
  fontSize: "7",
43
43
  fontWeight: "600",
44
44
  style: {
45
- pointerEvents: "none"
45
+ pointerEvents: "none",
46
+ userSelect: "none"
46
47
  }
47
48
  }, (region === null || region === void 0 ? void 0 : region.sid) || ""));
48
49
  }),
package/index.js CHANGED
@@ -1,13 +1,3 @@
1
- import React from "react";
2
- import ReactDOM from "react-dom";
3
- import Theme from "./Theme";
4
- import DemoSite from "./DemoSite";
5
- import LandingPage from "./LandingPage";
6
- import "./site.css";
7
-
8
- var Site = function Site() {
9
- var path = window.location.pathname.replace(/\/$/, "").split("/").slice(-1)[0];
10
- return React.createElement(Theme, null, path === "demo" ? React.createElement(DemoSite, null) : React.createElement(LandingPage, null));
11
- };
12
-
13
- ReactDOM.render(React.createElement(Site, null), document.getElementById("root"));
1
+ import Annotator from "./Annotator";
2
+ export { Annotator };
3
+ export default Annotator;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-image-annotate-master-custom",
3
- "version": "0.0.34",
3
+ "version": "0.0.37",
4
4
  "dependencies": {
5
5
  "@fortawesome/fontawesome-svg-core": "^1.2.12",
6
6
  "@fortawesome/free-solid-svg-icons": "^5.6.3",
@@ -50,19 +50,13 @@
50
50
  "start": "react-scripts start",
51
51
  "test": "react-scripts test",
52
52
  "eject": "react-scripts eject",
53
-
54
53
  "storybook": "start-storybook -p 9090 -s public",
55
-
56
- "build": "npm run build:babel && copyfiles package.json README.md dist",
54
+ "build": "npm run build:babel && cp ./package.json ./dist/package.json && cp ./README.md ./dist/README.md",
57
55
  "dist": "npm run build && cd dist && npm publish",
58
-
59
- "build:babel": "rimraf dist && cross-env NODE_ENV=production babel ./src --ignore \"src/**/*.story.js\" --out-dir=./dist",
60
-
56
+ "build:babel": "cross-env NODE_ENV=production babel ./src --ignore \"src/**/*.story.js\" --out-dir=./dist && rm dist/index.js && cp dist/lib.js dist/index.js",
61
57
  "build-storybook": "build-storybook",
62
-
63
- "build:gh-pages": "CI=false react-scripts build && npx shx mkdir -p build/demo && copyfiles build/index.html build/demo",
58
+ "build:gh-pages": "CI=false react-scripts build && mkdir build/demo && cp build/index.html build/demo/index.html",
64
59
  "gh-pages": "npm run build:gh-pages && gh-pages -d build",
65
-
66
60
  "prettier": "prettier --write \"src/**/*.js\"",
67
61
  "prettier:test": "prettier --check \"src/**/*.js\""
68
62
  },