@mapcomponents/react-maplibre 1.1.0 → 1.3.0

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.
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ declare const storyoptions: {
3
+ title: string;
4
+ component: {
5
+ (props: import("./MlComponentTemplate").MlComponentTemplateProps): React.JSX.Element;
6
+ defaultProps: {
7
+ mapId: undefined;
8
+ };
9
+ };
10
+ argTypes: {};
11
+ decorators: import("@storybook/react/*").Decorator[];
12
+ };
13
+ export default storyoptions;
14
+ export declare const ExampleConfig: any;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface SwipeIconProps {
3
+ className?: string;
4
+ title?: string;
5
+ onClick?: () => void;
6
+ style?: React.CSSProperties;
7
+ color?: string;
8
+ }
9
+ declare const SwipeIcon: React.FC<SwipeIconProps>;
10
+ export default SwipeIcon;
@@ -1,34 +1,29 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  export interface MlMarkerProps {
3
- /**
4
- * Id of the target MapLibre instance in mapContext
5
- */
3
+ /** ID of the map to add the marker to */
6
4
  mapId?: string;
7
- /**
8
- * The layerId of an existing layer this layer should be rendered visually beneath
9
- * https://maplibre.org/maplibre-gl-js-docs/api/map/#map#addlayer - see "beforeId" property
10
- */
5
+ /** Layer ID before which to insert the marker */
11
6
  insertBeforeLayer?: string;
12
- /**
13
- * Longitude of the marker position
14
- */
7
+ /** Longitude of the marker position */
15
8
  lng: number;
16
- /**
17
- * Latitude of the marker position
18
- */
9
+ /** Latitude of the marker position */
19
10
  lat: number;
20
- /**
21
- * Content of the description popup
22
- */
11
+ /** HTML content for the marker popup */
23
12
  content?: string;
13
+ /** CSS properties to apply to the marker dot */
14
+ markerStyle?: React.CSSProperties;
15
+ /** CSS properties to apply to the content container */
16
+ containerStyle?: React.CSSProperties;
17
+ /** CSS properties to apply to the iframe element */
18
+ iframeStyle?: React.CSSProperties;
19
+ /** CSS properties to apply to the body of the iframe */
20
+ iframeBodyStyle?: React.CSSProperties;
21
+ /** Offset in pixels between the marker and its content */
22
+ contentOffset?: number;
23
+ /** Whether mouse events pass through the marker content */
24
+ passEventsThrough?: boolean;
25
+ /** Anchor position of the marker relative to its coordinates */
26
+ anchor?: 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
24
27
  }
25
- /**
26
- * Adds a marker to the map and displays the contents of the "content" property in an iframe next to it
27
- */
28
- declare const MlMarker: {
29
- (props: MlMarkerProps): React.JSX.Element;
30
- defaultProps: {
31
- mapId: undefined;
32
- };
33
- };
28
+ declare const MlMarker: ({ passEventsThrough, contentOffset, ...props }: MlMarkerProps) => React.ReactPortal | null;
34
29
  export default MlMarker;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface CompassBackgroundProps {
3
+ className?: string;
4
+ title?: string;
5
+ onClick?: () => void;
6
+ style?: React.CSSProperties;
7
+ }
8
+ declare const CompassBackground: React.FC<CompassBackgroundProps>;
9
+ export default CompassBackground;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface CompassNeedleProps {
3
+ className?: string;
4
+ title?: string;
5
+ onClick?: () => void;
6
+ style?: React.CSSProperties;
7
+ }
8
+ declare const CompassNeedle: React.FC<CompassNeedleProps>;
9
+ export default CompassNeedle;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  export interface MapState {
4
3
  lat?: number;
5
4
  lng?: number;
@@ -32,11 +31,5 @@ declare const MlShareMapState: {
32
31
  defaultProps: {
33
32
  mapId: undefined;
34
33
  };
35
- propTypes: {
36
- /**
37
- * Id of the target MapLibre instance in mapContext
38
- */
39
- mapId: PropTypes.Requireable<string>;
40
- };
41
34
  };
42
35
  export default MlShareMapState;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  /**
4
3
  * Renders obj or gltf 3D Models on the MapLibreMap referenced by props.mapId
5
4
  *
@@ -10,21 +9,5 @@ export interface MlThreeJsLayerProps {
10
9
  init?: () => void;
11
10
  onDone?: () => void;
12
11
  }
13
- declare const MlThreeJsLayer: {
14
- (props: MlThreeJsLayerProps): React.JSX.Element;
15
- propTypes: {
16
- /**
17
- * Id of the target MapLibre instance in mapContext
18
- */
19
- mapId: PropTypes.Requireable<string>;
20
- /**
21
- * function that gets called when initialized
22
- */
23
- init: PropTypes.Requireable<(...args: any[]) => any>;
24
- /**
25
- * function that gets called when models are loaded
26
- */
27
- onDone: PropTypes.Requireable<(...args: any[]) => any>;
28
- };
29
- };
12
+ declare const MlThreeJsLayer: (props: MlThreeJsLayerProps) => React.JSX.Element;
30
13
  export default MlThreeJsLayer;
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  export interface MlWmsFeatureInfoPopupProps {
4
3
  /**
5
4
  * Id of the target MapLibre instance in mapContext
@@ -19,11 +18,5 @@ declare const MlWmsFeatureInfoPopup: {
19
18
  defaultProps: {
20
19
  mapId: undefined;
21
20
  };
22
- propTypes: {
23
- /**
24
- * Id of the target MapLibre instance in mapContext
25
- */
26
- mapId: PropTypes.Requireable<string>;
27
- };
28
21
  };
29
22
  export default MlWmsFeatureInfoPopup;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import { RasterLayerSpecification, RasterSourceSpecification } from 'maplibre-gl';
4
3
  export interface MlWmsLayerProps {
5
4
  urlParameters?: {
@@ -55,50 +54,5 @@ declare const MlWmsLayer: {
55
54
  maxZoom: number;
56
55
  };
57
56
  };
58
- propTypes: {
59
- /**
60
- * WMS URL
61
- */
62
- url: PropTypes.Validator<string>;
63
- /**
64
- * URL query parameters that will be added to the WMS URL. A layers property (string) is mandatory. Any value defined on this attribute will extend the default object.
65
- */
66
- urlParameters: PropTypes.Requireable<PropTypes.InferProps<{
67
- layers: PropTypes.Validator<string>;
68
- bbox: PropTypes.Requireable<string>;
69
- format: PropTypes.Requireable<string>;
70
- service: PropTypes.Requireable<string>;
71
- version: PropTypes.Requireable<string>;
72
- request: PropTypes.Requireable<string>;
73
- srs: PropTypes.Requireable<string>;
74
- width: PropTypes.Requireable<number>;
75
- height: PropTypes.Requireable<number>;
76
- }>>;
77
- /**
78
- * Id of the target MapLibre instance in mapContext
79
- */
80
- mapId: PropTypes.Requireable<string>;
81
- /**
82
- * MapLibre attribution shown in the bottom right of the map, if this layer is visible
83
- */
84
- attribution: PropTypes.Requireable<string>;
85
- /**
86
- * Object that is passed to the MapLibre.addLayer call as config option parameter
87
- */
88
- layerOptions: PropTypes.Requireable<object>;
89
- /**
90
- * Object that is passed to the MapLibre.addSource call as config option parameter
91
- */
92
- sourceOptions: PropTypes.Requireable<object>;
93
- /**
94
- * Id of an existing layer in the mapLibre instance to help specify the layer order
95
- * This layer will be visually beneath the layer with the "insertBeforeLayer" id.
96
- */
97
- insertBeforeLayer: PropTypes.Requireable<string>;
98
- /**
99
- * Sets layer "visibility" property to "visible" if true or "none" if false
100
- */
101
- visible: PropTypes.Requireable<boolean>;
102
- };
103
57
  };
104
58
  export default MlWmsLayer;
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  export interface SimpleDataProviderProps {
4
3
  url: string;
5
4
  format: 'json' | 'csv' | 'xml';
@@ -9,10 +8,5 @@ export interface SimpleDataProviderProps {
9
8
  onData: () => void;
10
9
  children: React.ReactNode;
11
10
  }
12
- declare const SimpleDataProvider: {
13
- (props: SimpleDataProviderProps): React.JSX.Element;
14
- propTypes: {
15
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
16
- };
17
- };
11
+ declare const SimpleDataProvider: (props: SimpleDataProviderProps) => React.JSX.Element;
18
12
  export default SimpleDataProvider;
@@ -9,6 +9,7 @@ declare function featureEditorStyle(): ({
9
9
  'line-color'?: undefined;
10
10
  'line-width'?: undefined;
11
11
  'line-dasharray'?: undefined;
12
+ 'line-opacity'?: undefined;
12
13
  'circle-radius'?: undefined;
13
14
  'circle-color'?: undefined;
14
15
  'circle-stroke-color'?: undefined;
@@ -31,6 +32,7 @@ declare function featureEditorStyle(): ({
31
32
  'fill-outline-color'?: undefined;
32
33
  'fill-opacity'?: undefined;
33
34
  'line-dasharray'?: undefined;
35
+ 'line-opacity'?: undefined;
34
36
  'circle-radius'?: undefined;
35
37
  'circle-color'?: undefined;
36
38
  'circle-stroke-color'?: undefined;
@@ -52,6 +54,29 @@ declare function featureEditorStyle(): ({
52
54
  'fill-color'?: undefined;
53
55
  'fill-outline-color'?: undefined;
54
56
  'fill-opacity'?: undefined;
57
+ 'line-opacity'?: undefined;
58
+ 'circle-radius'?: undefined;
59
+ 'circle-color'?: undefined;
60
+ 'circle-stroke-color'?: undefined;
61
+ 'circle-stroke-width'?: undefined;
62
+ 'circle-opacity'?: undefined;
63
+ };
64
+ } | {
65
+ id: string;
66
+ type: string;
67
+ filter: (string | string[])[];
68
+ layout: {
69
+ 'line-cap': string;
70
+ 'line-join': string;
71
+ };
72
+ paint: {
73
+ 'line-color': string;
74
+ 'line-width': number;
75
+ 'line-opacity': number;
76
+ 'fill-color'?: undefined;
77
+ 'fill-outline-color'?: undefined;
78
+ 'fill-opacity'?: undefined;
79
+ 'line-dasharray'?: undefined;
55
80
  'circle-radius'?: undefined;
56
81
  'circle-color'?: undefined;
57
82
  'circle-stroke-color'?: undefined;
@@ -73,6 +98,7 @@ declare function featureEditorStyle(): ({
73
98
  'line-color'?: undefined;
74
99
  'line-width'?: undefined;
75
100
  'line-dasharray'?: undefined;
101
+ 'line-opacity'?: undefined;
76
102
  'circle-opacity'?: undefined;
77
103
  };
78
104
  layout?: undefined;
@@ -89,6 +115,7 @@ declare function featureEditorStyle(): ({
89
115
  'line-color'?: undefined;
90
116
  'line-width'?: undefined;
91
117
  'line-dasharray'?: undefined;
118
+ 'line-opacity'?: undefined;
92
119
  'circle-stroke-color'?: undefined;
93
120
  'circle-stroke-width'?: undefined;
94
121
  'circle-opacity'?: undefined;
@@ -108,6 +135,7 @@ declare function featureEditorStyle(): ({
108
135
  'line-color'?: undefined;
109
136
  'line-width'?: undefined;
110
137
  'line-dasharray'?: undefined;
138
+ 'line-opacity'?: undefined;
111
139
  'circle-stroke-color'?: undefined;
112
140
  'circle-stroke-width'?: undefined;
113
141
  };
@@ -1,6 +1,5 @@
1
1
  import { RequestParameters } from 'maplibre-gl';
2
2
  import { FeatureCollection } from 'geojson';
3
- import osm2geojson from 'osm2geojson-lite';
4
3
  declare function convertOSM(params: {
5
4
  filename: string;
6
5
  options: osm2geojson.Options;
@@ -1,10 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  declare const LoadingOverlayContext: React.Context<{}>;
4
- declare const LoadingOverlayProvider: {
5
- (children: React.ReactNode): React.JSX.Element;
6
- propTypes: {
7
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
8
- };
9
- };
3
+ declare const LoadingOverlayProvider: (children: React.ReactNode) => React.JSX.Element;
10
4
  export { LoadingOverlayContext, LoadingOverlayProvider };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapcomponents/react-maplibre",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "main": "dist/index.cjs.js",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.esm.js",
@@ -20,20 +20,22 @@
20
20
  "create-component": "./scripts/create-map-component.sh"
21
21
  },
22
22
  "dependencies": {
23
+ "@cypress/react": "^9.0.1",
23
24
  "@dnd-kit/core": "^6.3.1",
24
25
  "@dnd-kit/modifiers": "^9.0.0",
25
26
  "@dnd-kit/sortable": "^10.0.0",
26
27
  "@emotion/css": "^11.13.5",
27
28
  "@emotion/react": "^11.14.0",
28
29
  "@emotion/styled": "^11.14.0",
29
- "@eslint/eslintrc": "^3.3.0",
30
- "@eslint/js": "^9.22.0",
30
+ "@eslint/eslintrc": "^3.3.1",
31
+ "@eslint/js": "^9.24.0",
31
32
  "@mapbox/mapbox-gl-draw": "1.4.3",
32
33
  "@mapbox/mapbox-gl-sync-move": "^0.3.1",
33
- "@mui/icons-material": "^6.4.7",
34
- "@mui/material": "^6.4.7",
34
+ "@mui/icons-material": "^7.0.1",
35
+ "@mui/material": "^7.0.1",
35
36
  "@reduxjs/toolkit": "^2.6.1",
36
37
  "@rollup/plugin-json": "^6.1.0",
38
+ "@storybook/theming": "^8.6.12",
37
39
  "@testing-library/dom": "^10.4.0",
38
40
  "@tmcw/togeojson": "^7.0.0",
39
41
  "@turf/turf": "^7.2.0",
@@ -45,16 +47,16 @@
45
47
  "csv2geojson": "^5.1.2",
46
48
  "d3": "^7.9.0",
47
49
  "globals": "^16.0.0",
48
- "jspdf": "^3.0.0",
49
- "maplibre-gl": "5.2.0",
50
- "osm2geojson-lite": "^1.0.2",
50
+ "jspdf": "^3.0.1",
51
+ "maplibre-gl": "5.3.0",
52
+ "osm2geojson-lite": "^1.0.3",
51
53
  "pako": "^2.1.0",
52
54
  "react-color": "^2.19.3",
53
55
  "react-moveable": "^0.56.0",
54
56
  "react-redux": "^9.2.0",
55
57
  "redux": "^5.0.1",
56
58
  "redux-thunk": "^3.1.0",
57
- "three": "^0.174.0",
59
+ "three": "^0.175.0",
58
60
  "topojson-client": "^3.1.0",
59
61
  "uuid": "^11.1.0",
60
62
  "wms-capabilities": "^0.6.0"
@@ -62,26 +64,22 @@
62
64
  "devDependencies": {
63
65
  "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
64
66
  "@babel/preset-react": "^7.26.3",
65
- "@babel/preset-typescript": "^7.26.0",
66
67
  "@bahmutov/cy-rollup": "^2.0.0",
67
- "@cfaester/enzyme-adapter-react-18": "^0.8.0",
68
- "@cypress/react18": "^2.0.1",
69
68
  "@rollup/plugin-babel": "^6.0.4",
70
69
  "@rollup/plugin-commonjs": "^28.0.3",
71
70
  "@rollup/plugin-url": "^8.0.2",
72
- "@storybook/addon-actions": "^8.6.4",
73
- "@storybook/addon-docs": "^8.6.4",
74
- "@storybook/addon-essentials": "^8.6.4",
75
- "@storybook/addon-links": "^8.6.4",
71
+ "@storybook/addon-actions": "^8.6.12",
72
+ "@storybook/addon-docs": "^8.6.12",
73
+ "@storybook/addon-essentials": "^8.6.12",
74
+ "@storybook/addon-links": "^8.6.12",
76
75
  "@storybook/addons": "^7.6.17",
77
- "@storybook/node-logger": "^8.6.4",
78
- "@storybook/react": "^8.6.4",
79
- "@storybook/react-webpack5": "^8.6.4",
80
- "@storybook/test": "^8.6.4",
76
+ "@storybook/node-logger": "^8.6.12",
77
+ "@storybook/react": "^8.6.12",
78
+ "@storybook/react-webpack5": "^8.6.12",
79
+ "@storybook/test": "^8.6.12",
81
80
  "@storybook/testing-react": "^2.0.1",
82
- "@storybook/theming": "^8.6.4",
83
- "@svgr/rollup": "^8.1.0",
84
- "@testing-library/react": "^16.2.0",
81
+ "@testing-library/react": "^16.3.0",
82
+ "@types/chai": "^5.2.1",
85
83
  "@types/elasticlunr": "^0.9.5",
86
84
  "@types/enzyme": "^3.10.18",
87
85
  "@types/expect": "^24.3.2",
@@ -89,27 +87,28 @@
89
87
  "@types/mapbox__mapbox-gl-draw": "^1.4.8",
90
88
  "@types/mapbox__point-geometry": "^0.1.4",
91
89
  "@types/mapbox__vector-tile": "^2.0.0",
90
+ "@types/mocha": "^10.0.10",
92
91
  "@types/pako": "^2.0.3",
93
- "@types/react": "^19.0.10",
94
- "@types/react-dom": "^19.0.4",
92
+ "@types/react": "^19.1.0",
93
+ "@types/react-dom": "^19.1.1",
95
94
  "@types/sql.js": "^1.4.9",
96
- "@types/three": "^0.174.0",
95
+ "@types/three": "^0.175.0",
97
96
  "@types/uuid": "^10.0.0",
98
- "@typescript-eslint/eslint-plugin": "^8.26.1",
99
- "@typescript-eslint/parser": "^8.26.1",
97
+ "@typescript-eslint/eslint-plugin": "^8.29.0",
98
+ "@typescript-eslint/parser": "^8.29.0",
100
99
  "avj": "^0.0.0",
101
100
  "babel-jest": "^29.7.0",
102
101
  "babel-loader": "^10.0.0",
103
102
  "babel-plugin-inline-react-svg": "^2.0.2",
104
103
  "babel-plugin-styled-components": "^2.1.4",
105
104
  "babel-preset-react-app": "^10.1.0",
106
- "cypress": "^14.2.0",
105
+ "chai": "^5.2.0",
106
+ "cypress": "^14.2.1",
107
107
  "elasticlunr": "^0.9.5",
108
- "enzyme": "^3.11.0",
109
- "eslint": "^9.22.0",
108
+ "eslint": "^9.24.0",
110
109
  "eslint-config-prettier": "^10.1.1",
111
- "eslint-plugin-react": "^7.37.4",
112
- "eslint-plugin-storybook": "^0.11.4",
110
+ "eslint-plugin-react": "^7.37.5",
111
+ "eslint-plugin-storybook": "^0.12.0",
113
112
  "glob": "^11.0.1",
114
113
  "jest": "29.7.0",
115
114
  "jest-circus": "29.7.0",
@@ -117,27 +116,29 @@
117
116
  "jest-enzyme": "^7.1.2",
118
117
  "jest-resolve": "29.7.0",
119
118
  "jest-watch-typeahead": "2.2.2",
119
+ "mocha": "^11.1.0",
120
120
  "node-fetch": "^3.3.2",
121
121
  "postcss": "^8.5.3",
122
122
  "prettier": "3.5.3",
123
- "react": "^18.2.0",
123
+ "react": "^19.1.0",
124
124
  "react-app-polyfill": "^3.0.0",
125
125
  "react-dev-utils": "^12.0.1",
126
- "react-dom": "^18.2.0",
126
+ "react-dom": "^19.1.0",
127
127
  "react-draggable": "^4.4.6",
128
128
  "react-i18next": "^15.4.1",
129
- "rollup": "^4.35.0",
129
+ "rollup": "^4.39.0",
130
130
  "rollup-plugin-delete": "^3.0.1",
131
131
  "rollup-plugin-import-css": "^3.5.8",
132
132
  "rollup-plugin-node-externals": "^8.0.0",
133
133
  "rollup-plugin-typescript2": "^0.36.0",
134
134
  "showdown": "^2.1.0",
135
- "sql.js": "^1.12.0",
136
- "storybook": "^8.6.4",
135
+ "sql.js": "^1.13.0",
136
+ "storybook": "^8.6.12",
137
137
  "storybook-source-link": "^4.0.1",
138
- "ts-jest": "^29.2.6",
138
+ "ts-jest": "^29.3.1",
139
139
  "ts-loader": "^9.5.2",
140
- "typescript": "^5.8.2"
140
+ "ts-node": "^10.9.2",
141
+ "typescript": "^5.8.3"
141
142
  },
142
143
  "jest": {
143
144
  "roots": [
@@ -166,7 +167,7 @@
166
167
  "^.+\\.svg$": "<rootDir>/config/jest/fileTransform.js"
167
168
  },
168
169
  "transformIgnorePatterns": [
169
- "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
170
+ "[/\\\\]node_modules[/\\\\](?!three/examples/jsm/).+\\.(js|jsx|mjs|cjs|ts|tsx)$",
170
171
  "^.+\\.module\\.(css|sass|scss)$"
171
172
  ],
172
173
  "modulePaths": [],
package/rollup.config.mjs CHANGED
@@ -8,7 +8,6 @@ import externals from 'rollup-plugin-node-externals';
8
8
 
9
9
  import css from 'rollup-plugin-import-css';
10
10
  import del from 'rollup-plugin-delete';
11
- import svgr from '@svgr/rollup';
12
11
  import * as fs from 'node:fs';
13
12
 
14
13
  const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
@@ -16,7 +15,7 @@ const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
16
15
  const externalsConfig = {
17
16
  deps: true,
18
17
  devDeps: true,
19
- exclude:['react', 'react-dom']
18
+ exclude: ['react', 'react-dom'],
20
19
  };
21
20
 
22
21
  const config = defineConfig([
@@ -24,29 +23,29 @@ const config = defineConfig([
24
23
  input: ['src/index.ts'],
25
24
  output: [
26
25
  {
27
- file: 'dist/index.cjs.js',
28
- format: 'cjs',
29
- sourcemap: true,
26
+ file: 'dist/index.cjs.js',
27
+ format: 'cjs',
28
+ sourcemap: true,
30
29
  },
31
30
  {
32
- file: 'dist/index.esm.js',
33
- format: 'es',
34
- sourcemap: true,
35
- }
36
- ],
31
+ file: 'dist/index.esm.js',
32
+ format: 'es',
33
+ sourcemap: true,
34
+ },
35
+ ],
37
36
  plugins: [
38
- svgr({
39
- svgo: false,
40
- }),
41
37
  url(),
42
38
  babel({
43
39
  presets: ['@babel/preset-react'],
44
- babelHelpers: 'bundled'
40
+ babelHelpers: 'bundled',
45
41
  }),
46
42
  externals(externalsConfig),
47
43
  commonjs(),
48
- typescript({ declarationDir: 'dist/types', sourceMap: true
49
- ,exclude: ["**/*.cy.tsx", "**/*.stories.tsx", "**/*.test.tsx"] }),
44
+ typescript({
45
+ declarationDir: 'dist/types',
46
+ sourceMap: true,
47
+ exclude: ['**/*.cy.tsx', '**/*.stories.tsx', '**/*.test.tsx'],
48
+ }),
50
49
  css(),
51
50
  del({ targets: ['dist/*'] }),
52
51
  ],