@mapcomponents/react-maplibre 1.3.1 → 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.
@@ -8,7 +8,7 @@ declare const storyoptions: {
8
8
  };
9
9
  };
10
10
  argTypes: {};
11
- decorators: import("@storybook/react/*").Decorator[];
11
+ decorators: import("@storybook/react-webpack5").Decorator[];
12
12
  };
13
13
  export default storyoptions;
14
14
  export declare const ExampleConfig: any;
@@ -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,4 +1,4 @@
1
1
  import './style.css';
2
- import { Decorator } from '@storybook/react';
2
+ import { Decorator } from '@storybook/react-webpack5';
3
3
  declare const decorators: Decorator[];
4
4
  export default decorators;
@@ -1,4 +1,4 @@
1
1
  import './style.css';
2
- import { Decorator } from '@storybook/react';
2
+ import { Decorator } from '@storybook/react-webpack5';
3
3
  declare const decorators: Decorator[];
4
4
  export default decorators;
@@ -1,4 +1,4 @@
1
1
  import './style.css';
2
- import { Decorator } from '@storybook/react';
2
+ import { Decorator } from '@storybook/react-webpack5';
3
3
  declare const decorators: Decorator[];
4
4
  export default decorators;
@@ -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,4 +1,4 @@
1
1
  import "./style.css";
2
- import { Decorator } from '@storybook/react';
2
+ import { Decorator } from '@storybook/react-webpack5';
3
3
  declare const decorators: Decorator[];
4
4
  export default decorators;
@@ -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,4 +1,4 @@
1
1
  import './style.css';
2
- import { Decorator } from '@storybook/react';
2
+ import { Decorator } from '@storybook/react-webpack5';
3
3
  declare const decorators: Decorator[];
4
4
  export default decorators;
@@ -1,4 +1,4 @@
1
1
  import './style.css';
2
- import { Decorator } from '@storybook/react';
2
+ import { Decorator } from '@storybook/react-webpack5';
3
3
  declare const decorators: Decorator[];
4
4
  export default decorators;
@@ -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;
@@ -4,6 +4,7 @@ declare module '@mui/material' {
4
4
  barColor: string;
5
5
  };
6
6
  navigation: {
7
+ buttonColor: string;
7
8
  navColor: string;
8
9
  navHover: string;
9
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapcomponents/react-maplibre",
3
- "version": "1.3.1",
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.0",
30
+ "@emotion/styled": "^11.14.1",
31
31
  "@eslint/eslintrc": "^3.3.1",
32
- "@eslint/js": "^9.24.0",
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.1",
36
- "@mui/material": "^7.0.1",
37
- "@mui/system": "^7.1.0",
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.0.0",
51
+ "globals": "^16.3.0",
53
52
  "jspdf": "^3.0.1",
54
- "maplibre-gl": "5.5.0",
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.175.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.3",
71
+ "@rollup/plugin-commonjs": "^28.0.6",
73
72
  "@rollup/plugin-url": "^8.0.2",
74
- "@storybook/addon-actions": "^8.6.12",
75
- "@storybook/addon-docs": "^8.6.12",
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/node-logger": "^8.6.12",
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": "^29.5.14",
90
- "@types/mapbox__mapbox-gl-draw": "^1.4.8",
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.175.0",
92
+ "@types/three": "^0.177.0",
99
93
  "@types/uuid": "^10.0.0",
100
- "@typescript-eslint/eslint-plugin": "^8.29.0",
101
- "@typescript-eslint/parser": "^8.29.0",
94
+ "@typescript-eslint/eslint-plugin": "^8.35.1",
95
+ "@typescript-eslint/parser": "^8.35.1",
102
96
  "avj": "^0.0.0",
103
- "babel-jest": "^29.7.0",
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.2.1",
103
+ "cypress": "^14.5.0",
110
104
  "elasticlunr": "^0.9.5",
111
- "eslint": "^9.24.0",
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.12.0",
108
+ "eslint-plugin-storybook": "^9.0.15",
115
109
  "glob": "^11.0.1",
116
- "jest": "29.7.0",
117
- "jest-circus": "29.7.0",
118
- "jest-environment-jsdom": "^29.7.0",
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": "29.7.0",
121
- "jest-watch-typeahead": "2.2.2",
122
- "mocha": "^11.1.0",
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
- "postcss": "^8.5.3",
125
- "prettier": "3.5.3",
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.4.6",
125
+ "react-draggable": "^4.5.0",
131
126
  "react-i18next": "^15.4.1",
132
- "rollup": "^4.39.0",
127
+ "rollup": "^4.44.1",
133
128
  "rollup-plugin-delete": "^3.0.1",
134
- "rollup-plugin-import-css": "^3.5.8",
135
- "rollup-plugin-node-externals": "^8.0.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": "^8.6.12",
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",