@corpsmap/corpsmap 4.1.10 → 4.1.12
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/corpsmap.es.js +15 -14
- package/dist/corpsmap.umd.js +3 -3
- package/package.json +83 -83
- package/src/core-plugins/coordinate-display/bundle.jsx +3 -4
- package/src/core-plugins/geocoder/bundle.jsx +3 -4
- package/src/core-plugins/identify/bundle.jsx +3 -4
- package/src/core-plugins/identify/identify-details-table.jsx +4 -0
- package/src/core-plugins/identify/identify-sidebar-list-item.jsx +1 -1
- package/src/core-plugins/identify/identify-table.jsx +1 -1
package/package.json
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@corpsmap/corpsmap",
|
|
3
|
-
"version": "4.1.
|
|
4
|
-
"main": "dist/corpsmap.umd.js",
|
|
5
|
-
"module": "dist/corpsmap.es.js",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"src"
|
|
10
|
-
],
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"import": "./dist/corpsmap.es.js",
|
|
14
|
-
"require": "./dist/corpsmap.umd.js"
|
|
15
|
-
},
|
|
16
|
-
"./dist/corpsmap.css": "./dist/corpsmap.css",
|
|
17
|
-
"./css/corpsmap.css": "./dist/corpsmap.css",
|
|
18
|
-
"./src/*": "./src/*"
|
|
19
|
-
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"dev": "vite",
|
|
22
|
-
"build": "vite build --watch",
|
|
23
|
-
"buildx": "vite build ",
|
|
24
|
-
"lint": "eslint .",
|
|
25
|
-
"preview": "vite preview"
|
|
26
|
-
},
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"@mapbox/togeojson": "^0.16.0",
|
|
29
|
-
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
30
|
-
"@rollup/plugin-commonjs": "^29.0.0",
|
|
31
|
-
"@turf/boolean-disjoint": "^7.2.0",
|
|
32
|
-
"@turf/helpers": "^7.3.0",
|
|
33
|
-
"@turf/buffer": "^7.2.0",
|
|
34
|
-
"@turf/centroid": "^7.2.0",
|
|
35
|
-
"classnames": "^2.5.1",
|
|
36
|
-
"extract-files": "^13.0.0",
|
|
37
|
-
"file-saver": "^2.0.2",
|
|
38
|
-
"is-html": "^3.2.0",
|
|
39
|
-
"markdown-it": "^14.1.0",
|
|
40
|
-
"path": "^0.12.7",
|
|
41
|
-
"path-browserify": "^1.0.1",
|
|
42
|
-
"shpjs": "^6.2.0",
|
|
43
|
-
"vite-plugin-node-polyfills": "^0.24.0"
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"@eslint/js": "^9.39.1",
|
|
47
|
-
"@types/react": "^19.1.16",
|
|
48
|
-
"@types/react-dom": "^19.1.9",
|
|
49
|
-
"@vitejs/plugin-react": "^5.0.4",
|
|
50
|
-
"eslint": "^9.36.0",
|
|
51
|
-
"eslint-plugin-react-hooks": "^7.0.1",
|
|
52
|
-
"eslint-plugin-react-refresh": "^0.4.22",
|
|
53
|
-
"globals": "^16.4.0",
|
|
54
|
-
"react": "^19.2.3",
|
|
55
|
-
"react-dom": "^19.2.3",
|
|
56
|
-
"react-select": "^5.0.0",
|
|
57
|
-
"vite": "^7.1.7",
|
|
58
|
-
"ol": "^6.4.3",
|
|
59
|
-
"redux-bundler": "^29.1.0",
|
|
60
|
-
"proj4": "^2.19.10",
|
|
61
|
-
"react-data-grid": "^7.0.0-beta.58",
|
|
62
|
-
"ol-esri-style": "^4.0.0",
|
|
63
|
-
"lodash": "^4.17.21",
|
|
64
|
-
"uuid": "^13.0.0",
|
|
65
|
-
"async": "^3.2.6",
|
|
66
|
-
"money-clip": "^3.0.5",
|
|
67
|
-
"xhr": "^2.6.0"
|
|
68
|
-
},
|
|
69
|
-
"peerDependencies": {
|
|
70
|
-
"react": ">=19",
|
|
71
|
-
"react-dom": ">=19",
|
|
72
|
-
"ol": ">=6",
|
|
73
|
-
"redux-bundler": ">=29",
|
|
74
|
-
"proj4": ">=2",
|
|
75
|
-
"react-data-grid": ">=7.0.0-beta",
|
|
76
|
-
"ol-esri-style": ">=4",
|
|
77
|
-
"lodash": ">=4",
|
|
78
|
-
"uuid": ">=9",
|
|
79
|
-
"async": ">=3",
|
|
80
|
-
"money-clip": ">=3",
|
|
81
|
-
"xhr": ">=2"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@corpsmap/corpsmap",
|
|
3
|
+
"version": "4.1.12",
|
|
4
|
+
"main": "dist/corpsmap.umd.js",
|
|
5
|
+
"module": "dist/corpsmap.es.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"src"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/corpsmap.es.js",
|
|
14
|
+
"require": "./dist/corpsmap.umd.js"
|
|
15
|
+
},
|
|
16
|
+
"./dist/corpsmap.css": "./dist/corpsmap.css",
|
|
17
|
+
"./css/corpsmap.css": "./dist/corpsmap.css",
|
|
18
|
+
"./src/*": "./src/*"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"dev": "vite",
|
|
22
|
+
"build": "vite build --watch",
|
|
23
|
+
"buildx": "vite build ",
|
|
24
|
+
"lint": "eslint .",
|
|
25
|
+
"preview": "vite preview"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@mapbox/togeojson": "^0.16.0",
|
|
29
|
+
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
30
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
31
|
+
"@turf/boolean-disjoint": "^7.2.0",
|
|
32
|
+
"@turf/helpers": "^7.3.0",
|
|
33
|
+
"@turf/buffer": "^7.2.0",
|
|
34
|
+
"@turf/centroid": "^7.2.0",
|
|
35
|
+
"classnames": "^2.5.1",
|
|
36
|
+
"extract-files": "^13.0.0",
|
|
37
|
+
"file-saver": "^2.0.2",
|
|
38
|
+
"is-html": "^3.2.0",
|
|
39
|
+
"markdown-it": "^14.1.0",
|
|
40
|
+
"path": "^0.12.7",
|
|
41
|
+
"path-browserify": "^1.0.1",
|
|
42
|
+
"shpjs": "^6.2.0",
|
|
43
|
+
"vite-plugin-node-polyfills": "^0.24.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@eslint/js": "^9.39.1",
|
|
47
|
+
"@types/react": "^19.1.16",
|
|
48
|
+
"@types/react-dom": "^19.1.9",
|
|
49
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
50
|
+
"eslint": "^9.36.0",
|
|
51
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
52
|
+
"eslint-plugin-react-refresh": "^0.4.22",
|
|
53
|
+
"globals": "^16.4.0",
|
|
54
|
+
"react": "^19.2.3",
|
|
55
|
+
"react-dom": "^19.2.3",
|
|
56
|
+
"react-select": "^5.0.0",
|
|
57
|
+
"vite": "^7.1.7",
|
|
58
|
+
"ol": "^6.4.3",
|
|
59
|
+
"redux-bundler": "^29.1.0",
|
|
60
|
+
"proj4": "^2.19.10",
|
|
61
|
+
"react-data-grid": "^7.0.0-beta.58",
|
|
62
|
+
"ol-esri-style": "^4.0.0",
|
|
63
|
+
"lodash": "^4.17.21",
|
|
64
|
+
"uuid": "^13.0.0",
|
|
65
|
+
"async": "^3.2.6",
|
|
66
|
+
"money-clip": "^3.0.5",
|
|
67
|
+
"xhr": "^2.6.0"
|
|
68
|
+
},
|
|
69
|
+
"peerDependencies": {
|
|
70
|
+
"react": ">=19",
|
|
71
|
+
"react-dom": ">=19",
|
|
72
|
+
"ol": ">=6",
|
|
73
|
+
"redux-bundler": ">=29",
|
|
74
|
+
"proj4": ">=2",
|
|
75
|
+
"react-data-grid": ">=7.0.0-beta",
|
|
76
|
+
"ol-esri-style": ">=4",
|
|
77
|
+
"lodash": ">=4",
|
|
78
|
+
"uuid": ">=9",
|
|
79
|
+
"async": ">=3",
|
|
80
|
+
"money-clip": ">=3",
|
|
81
|
+
"xhr": ">=2"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createRoot } from "react-dom/client";
|
|
2
2
|
import Popup from "./coordinate-popup";
|
|
3
3
|
import Overlay from "ol/Overlay";
|
|
4
4
|
import { transform } from "ol/proj";
|
|
@@ -99,14 +99,13 @@ export default {
|
|
|
99
99
|
|
|
100
100
|
//add overlay to map
|
|
101
101
|
map.addOverlay(overlay);
|
|
102
|
-
|
|
102
|
+
createRoot(el).render(
|
|
103
103
|
<Popup
|
|
104
104
|
overlay={overlay}
|
|
105
105
|
coords={coords}
|
|
106
106
|
map={map}
|
|
107
107
|
onClear={store.doClearPopup}
|
|
108
|
-
|
|
109
|
-
el
|
|
108
|
+
/>
|
|
110
109
|
);
|
|
111
110
|
|
|
112
111
|
overlay.setPosition(center);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { createRoot } from "react-dom/client";
|
|
3
3
|
import GeocoderOverlay from "./overlay";
|
|
4
4
|
import Overlay from "ol/Overlay";
|
|
5
5
|
import { transform } from "ol/proj";
|
|
@@ -90,14 +90,13 @@ export default {
|
|
|
90
90
|
|
|
91
91
|
//add overlay to map
|
|
92
92
|
map.addOverlay(overlay);
|
|
93
|
-
|
|
93
|
+
createRoot(el).render(
|
|
94
94
|
<GeocoderOverlay
|
|
95
95
|
overlay={overlay}
|
|
96
96
|
item={selectedItem}
|
|
97
97
|
map={map}
|
|
98
98
|
onClear={store.doClearGeocoderOverlay}
|
|
99
|
-
|
|
100
|
-
el
|
|
99
|
+
/>
|
|
101
100
|
);
|
|
102
101
|
overlay.setPosition(overlayCenter);
|
|
103
102
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { createRoot } from "react-dom/client";
|
|
3
3
|
import IdentifySidebar from "./identify-sidebar";
|
|
4
4
|
import IdentifyDetails from "./identify-details-table";
|
|
5
5
|
import IdentifyTable from "./identify-table";
|
|
@@ -440,14 +440,13 @@ export default {
|
|
|
440
440
|
offset: [0, -10],
|
|
441
441
|
});
|
|
442
442
|
map.addOverlay(overlay);
|
|
443
|
-
|
|
443
|
+
createRoot(el).render(
|
|
444
444
|
<Popup
|
|
445
445
|
overlay={overlay}
|
|
446
446
|
feature={feature}
|
|
447
447
|
map={map}
|
|
448
448
|
onClear={store.doClearOverlay}
|
|
449
|
-
|
|
450
|
-
el
|
|
449
|
+
/>
|
|
451
450
|
);
|
|
452
451
|
|
|
453
452
|
overlay.setPosition(
|
|
@@ -89,7 +89,7 @@ class ResultListItem extends React.Component {
|
|
|
89
89
|
<i className="mdi mdi-plus icon-inline"></i>
|
|
90
90
|
</span>
|
|
91
91
|
<span className="col-sm-4 overflow-sidebar-identify">{key}</span>
|
|
92
|
-
{isHtml(val) ? (
|
|
92
|
+
{typeof val === "string" && isHtml(val) ? (
|
|
93
93
|
<span
|
|
94
94
|
className="col-sm-6"
|
|
95
95
|
dangerouslySetInnerHTML={{ __html: val }}
|