@mapcomponents/react-maplibre 1.3.2 → 1.3.3
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/CHANGELOG.md +6 -0
- package/dist/index.cjs.js +79 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +83 -20
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/MlComponentTemplate/MlComponentTemplate.stories_.d.ts +1 -1
- package/dist/src/components/MlGlobeButton/MlGlobeButton.d.ts +28 -0
- package/dist/src/components/MlNavigationTools/MlNavigationTools.d.ts +5 -0
- package/dist/src/decorators/EmptyMapDecorator.d.ts +1 -1
- package/dist/src/decorators/GeoJsonMapDecorator.d.ts +1 -1
- package/dist/src/decorators/LowZoomDecorator.d.ts +1 -1
- package/dist/src/decorators/MapContextDecorator.d.ts +1 -1
- package/dist/src/decorators/MapContextDecoratorHooks.d.ts +1 -1
- package/dist/src/decorators/MapContextReduxStoreDecorator.d.ts +1 -1
- package/dist/src/decorators/MultiMapContextDecorator.d.ts +1 -1
- package/dist/src/decorators/NoNavToolsDecorator.d.ts +1 -1
- package/dist/src/decorators/ThemeDecorator.d.ts +1 -1
- package/dist/src/ui_components/MapcomponentsTheme.d.ts +1 -0
- package/package.json +36 -43
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
export interface MlGlobeButtonProps {
|
|
3
|
+
/**
|
|
4
|
+
* Id of the target MapLibre instance in mapContext
|
|
5
|
+
*/
|
|
6
|
+
mapId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Id of an existing layer in the mapLibre instance to help specify the layer order
|
|
9
|
+
* This layer will be visually beneath the layer with the "insertBeforeLayer" id.
|
|
10
|
+
*/
|
|
11
|
+
insertBeforeLayer?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Style object to adjust css definitions of the component.
|
|
14
|
+
*/
|
|
15
|
+
style?: CSSProperties;
|
|
16
|
+
/**
|
|
17
|
+
* Initial projection mode of the map.
|
|
18
|
+
*/
|
|
19
|
+
mode?: 'globe' | 'mercator';
|
|
20
|
+
}
|
|
21
|
+
declare const MlGlobeButton: {
|
|
22
|
+
(props: MlGlobeButtonProps): React.JSX.Element;
|
|
23
|
+
defaultProps: {
|
|
24
|
+
mapId: undefined;
|
|
25
|
+
mode: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default MlGlobeButton;
|
|
@@ -14,6 +14,10 @@ export interface MlNavigationToolsProps {
|
|
|
14
14
|
* Show 3D button
|
|
15
15
|
*/
|
|
16
16
|
show3DButton?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Show global button
|
|
19
|
+
*/
|
|
20
|
+
showGlobeButton?: boolean;
|
|
17
21
|
/**
|
|
18
22
|
* Show zoom button
|
|
19
23
|
*/
|
|
@@ -47,6 +51,7 @@ declare const MlNavigationTools: {
|
|
|
47
51
|
defaultProps: {
|
|
48
52
|
mapId: undefined;
|
|
49
53
|
show3DButton: boolean;
|
|
54
|
+
showGlobeButton: boolean;
|
|
50
55
|
showFollowGpsButton: boolean;
|
|
51
56
|
showCenterLocationButton: boolean;
|
|
52
57
|
showZoomButtons: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MapLibreMapProps } from '../components/MapLibreMap/MapLibreMap';
|
|
2
2
|
import './style.css';
|
|
3
|
-
import { Decorator } from '@storybook/react';
|
|
3
|
+
import { Decorator } from '@storybook/react-webpack5';
|
|
4
4
|
declare const makeMapContextDecorators: (options: MapLibreMapProps["options"]) => Decorator[];
|
|
5
5
|
declare const _default: Decorator[];
|
|
6
6
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MapLibreMapProps } from '../components/MapLibreMap/MapLibreMap';
|
|
2
2
|
import './style.css';
|
|
3
|
-
import { Decorator } from '@storybook/react';
|
|
3
|
+
import { Decorator } from '@storybook/react-webpack5';
|
|
4
4
|
declare const makeMapContextDecorators: (options: MapLibreMapProps["options"]) => Decorator[];
|
|
5
5
|
declare const _default: Decorator[];
|
|
6
6
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './style.css';
|
|
3
|
-
import { StoryContext } from '@storybook/react';
|
|
3
|
+
import { StoryContext } from '@storybook/react-webpack5';
|
|
4
4
|
declare const decorators: ((Story: React.FC, context?: StoryContext) => React.ReactElement)[];
|
|
5
5
|
export default decorators;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapcomponents/react-maplibre",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -27,17 +27,16 @@
|
|
|
27
27
|
"@dnd-kit/utilities": "^3.2.2",
|
|
28
28
|
"@emotion/css": "^11.13.5",
|
|
29
29
|
"@emotion/react": "^11.14.0",
|
|
30
|
-
"@emotion/styled": "^11.14.
|
|
30
|
+
"@emotion/styled": "^11.14.1",
|
|
31
31
|
"@eslint/eslintrc": "^3.3.1",
|
|
32
|
-
"@eslint/js": "^9.
|
|
32
|
+
"@eslint/js": "^9.30.0",
|
|
33
33
|
"@mapbox/mapbox-gl-draw": "1.4.3",
|
|
34
34
|
"@mapbox/mapbox-gl-sync-move": "^0.3.1",
|
|
35
|
-
"@mui/icons-material": "^7.0
|
|
36
|
-
"@mui/material": "^7.0
|
|
37
|
-
"@mui/system": "^7.
|
|
35
|
+
"@mui/icons-material": "^7.2.0",
|
|
36
|
+
"@mui/material": "^7.2.0",
|
|
37
|
+
"@mui/system": "^7.2.0",
|
|
38
38
|
"@reduxjs/toolkit": "^2.6.1",
|
|
39
39
|
"@rollup/plugin-json": "^6.1.0",
|
|
40
|
-
"@storybook/theming": "^8.6.12",
|
|
41
40
|
"@testing-library/dom": "^10.4.0",
|
|
42
41
|
"@tmcw/togeojson": "^7.0.0",
|
|
43
42
|
"@turf/helpers": "^7.2.0",
|
|
@@ -49,9 +48,9 @@
|
|
|
49
48
|
"@xmldom/xmldom": "^0.9.8",
|
|
50
49
|
"csv2geojson": "^5.1.2",
|
|
51
50
|
"d3": "^7.9.0",
|
|
52
|
-
"globals": "^16.
|
|
51
|
+
"globals": "^16.3.0",
|
|
53
52
|
"jspdf": "^3.0.1",
|
|
54
|
-
"maplibre-gl": "5.
|
|
53
|
+
"maplibre-gl": "5.6.0",
|
|
55
54
|
"osm2geojson-lite": "^1.0.3",
|
|
56
55
|
"pako": "^2.1.0",
|
|
57
56
|
"react-color": "^2.19.3",
|
|
@@ -59,7 +58,7 @@
|
|
|
59
58
|
"react-redux": "^9.2.0",
|
|
60
59
|
"redux": "^5.0.1",
|
|
61
60
|
"redux-thunk": "^3.1.0",
|
|
62
|
-
"three": "^0.
|
|
61
|
+
"three": "^0.178.0",
|
|
63
62
|
"topojson-client": "^3.1.0",
|
|
64
63
|
"uuid": "^11.1.0",
|
|
65
64
|
"wms-capabilities": "^0.6.0"
|
|
@@ -69,25 +68,20 @@
|
|
|
69
68
|
"@babel/preset-react": "^7.26.3",
|
|
70
69
|
"@bahmutov/cy-rollup": "^2.0.0",
|
|
71
70
|
"@rollup/plugin-babel": "^6.0.4",
|
|
72
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
71
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
73
72
|
"@rollup/plugin-url": "^8.0.2",
|
|
74
|
-
"@storybook/addon-
|
|
75
|
-
"@storybook/addon-
|
|
76
|
-
"@storybook/addon-essentials": "^8.6.12",
|
|
77
|
-
"@storybook/addon-links": "^8.6.12",
|
|
73
|
+
"@storybook/addon-docs": "^9.0.15",
|
|
74
|
+
"@storybook/addon-links": "^9.0.15",
|
|
78
75
|
"@storybook/addons": "^7.6.17",
|
|
79
|
-
"@storybook/
|
|
80
|
-
"@storybook/react": "^8.6.12",
|
|
81
|
-
"@storybook/react-webpack5": "^8.6.12",
|
|
82
|
-
"@storybook/test": "^8.6.12",
|
|
76
|
+
"@storybook/react-webpack5": "^9.0.15",
|
|
83
77
|
"@storybook/testing-react": "^2.0.1",
|
|
84
78
|
"@testing-library/react": "^16.3.0",
|
|
85
79
|
"@types/chai": "^5.2.1",
|
|
86
80
|
"@types/elasticlunr": "^0.9.5",
|
|
87
81
|
"@types/enzyme": "^3.10.18",
|
|
88
82
|
"@types/expect": "^24.3.2",
|
|
89
|
-
"@types/jest": "^
|
|
90
|
-
"@types/mapbox__mapbox-gl-draw": "^1.4.
|
|
83
|
+
"@types/jest": "^30.0.0",
|
|
84
|
+
"@types/mapbox__mapbox-gl-draw": "^1.4.9",
|
|
91
85
|
"@types/mapbox__point-geometry": "^0.1.4",
|
|
92
86
|
"@types/mapbox__vector-tile": "^2.0.0",
|
|
93
87
|
"@types/mocha": "^10.0.10",
|
|
@@ -95,49 +89,49 @@
|
|
|
95
89
|
"@types/react": "^19.1.0",
|
|
96
90
|
"@types/react-dom": "^19.1.1",
|
|
97
91
|
"@types/sql.js": "^1.4.9",
|
|
98
|
-
"@types/three": "^0.
|
|
92
|
+
"@types/three": "^0.177.0",
|
|
99
93
|
"@types/uuid": "^10.0.0",
|
|
100
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
101
|
-
"@typescript-eslint/parser": "^8.
|
|
94
|
+
"@typescript-eslint/eslint-plugin": "^8.35.1",
|
|
95
|
+
"@typescript-eslint/parser": "^8.35.1",
|
|
102
96
|
"avj": "^0.0.0",
|
|
103
|
-
"babel-jest": "^
|
|
97
|
+
"babel-jest": "^30.0.2",
|
|
104
98
|
"babel-loader": "^10.0.0",
|
|
105
99
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
106
100
|
"babel-plugin-styled-components": "^2.1.4",
|
|
107
101
|
"babel-preset-react-app": "^10.1.0",
|
|
108
102
|
"chai": "^5.2.0",
|
|
109
|
-
"cypress": "^14.
|
|
103
|
+
"cypress": "^14.5.0",
|
|
110
104
|
"elasticlunr": "^0.9.5",
|
|
111
|
-
"eslint": "^9.
|
|
105
|
+
"eslint": "^9.30.0",
|
|
112
106
|
"eslint-config-prettier": "^10.1.1",
|
|
113
107
|
"eslint-plugin-react": "^7.37.5",
|
|
114
|
-
"eslint-plugin-storybook": "^0.
|
|
108
|
+
"eslint-plugin-storybook": "^9.0.15",
|
|
115
109
|
"glob": "^11.0.1",
|
|
116
|
-
"jest": "
|
|
117
|
-
"jest-circus": "
|
|
118
|
-
"jest-environment-jsdom": "^
|
|
110
|
+
"jest": "30.0.3",
|
|
111
|
+
"jest-circus": "30.0.3",
|
|
112
|
+
"jest-environment-jsdom": "^30.0.2",
|
|
119
113
|
"jest-enzyme": "^7.1.2",
|
|
120
|
-
"jest-resolve": "
|
|
121
|
-
"jest-watch-typeahead": "
|
|
122
|
-
"mocha": "^11.1
|
|
114
|
+
"jest-resolve": "30.0.2",
|
|
115
|
+
"jest-watch-typeahead": "3.0.1",
|
|
116
|
+
"mocha": "^11.7.1",
|
|
123
117
|
"node-fetch": "^3.3.2",
|
|
124
|
-
"
|
|
125
|
-
"
|
|
118
|
+
"path-browserify": "^1.0.1",
|
|
119
|
+
"postcss": "^8.5.6",
|
|
120
|
+
"prettier": "3.6.2",
|
|
126
121
|
"react": "^19.1.0",
|
|
127
122
|
"react-app-polyfill": "^3.0.0",
|
|
128
123
|
"react-dev-utils": "^12.0.1",
|
|
129
124
|
"react-dom": "^19.1.0",
|
|
130
|
-
"react-draggable": "^4.
|
|
125
|
+
"react-draggable": "^4.5.0",
|
|
131
126
|
"react-i18next": "^15.4.1",
|
|
132
|
-
"rollup": "^4.
|
|
127
|
+
"rollup": "^4.44.1",
|
|
133
128
|
"rollup-plugin-delete": "^3.0.1",
|
|
134
|
-
"rollup-plugin-import-css": "^
|
|
135
|
-
"rollup-plugin-node-externals": "^8.0.
|
|
129
|
+
"rollup-plugin-import-css": "^4.0.1",
|
|
130
|
+
"rollup-plugin-node-externals": "^8.0.1",
|
|
136
131
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
137
132
|
"showdown": "^2.1.0",
|
|
138
133
|
"sql.js": "^1.13.0",
|
|
139
|
-
"storybook": "^
|
|
140
|
-
"storybook-source-link": "^4.0.1",
|
|
134
|
+
"storybook": "^9.0.15",
|
|
141
135
|
"ts-jest": "^29.3.1",
|
|
142
136
|
"ts-loader": "^9.5.2",
|
|
143
137
|
"ts-node": "^10.9.2",
|
|
@@ -162,7 +156,6 @@
|
|
|
162
156
|
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
|
163
157
|
],
|
|
164
158
|
"testEnvironment": "jsdom",
|
|
165
|
-
"testRunner": "./node_modules/jest-circus/runner.js",
|
|
166
159
|
"transform": {
|
|
167
160
|
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
|
|
168
161
|
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|