@orioro/react-maplibre-util 0.3.0 → 0.3.2

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @orioro/react-maplibre-util
2
2
 
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fix peerDependencies
8
+
9
+ ## 0.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - fix radix dependency version sync
14
+
3
15
  ## 0.3.0
4
16
 
5
17
  ### Minor Changes
@@ -8,7 +8,7 @@ export type ControlContainerProps = {
8
8
  /** Button content and props */
9
9
  children: React.ReactNode;
10
10
  };
11
- export declare function ControlContainer({ style, position, children, }: ControlContainerProps): React.ReactPortal | null;
11
+ export declare function ControlContainer({ style, position, children, }: ControlContainerProps): any;
12
12
  export declare namespace ControlContainer {
13
13
  var Unstyled: typeof ControlContainerWithStyleReset;
14
14
  }
@@ -1,5 +1,5 @@
1
1
  export declare const DEFAULT_MIN_K = 3;
2
2
  export declare const DEFAULT_MAX_K = 9;
3
- export declare const elbowiness: (numbers: number[], [minK, maxK]: [number, number]) => number[];
3
+ export declare const elbowiness: (numbers: number[], [minK, maxK]: [number, number]) => any;
4
4
  export declare function within(value: number, [min, max]: [number, number]): number;
5
5
  export declare const autoK: (numbers: number[], [minK, maxK]?: [number, number]) => number;
@@ -1,5 +1,5 @@
1
1
  import { ExpressionFn } from '@orioro/resolve/dist/resolvers/expressions/types';
2
- declare const DEFAULT_COLOR_SCALE: readonly (readonly string[])[];
2
+ declare const DEFAULT_COLOR_SCALE: any;
3
3
  export type ScaleNaturalBreaksProps = {
4
4
  values: number[];
5
5
  k?: number;
@@ -9,7 +9,7 @@ export type ScaleNaturalBreaksProps = {
9
9
  scalesByK?: typeof DEFAULT_COLOR_SCALE;
10
10
  };
11
11
  export declare function naturalBreakBounds(values: number[], k: number): [number, number][];
12
- export declare function scaleNaturalBreaks({ values, k, defaultColor, minK, maxK, scalesByK, }: ScaleNaturalBreaksProps): (string | number)[] | null;
12
+ export declare function scaleNaturalBreaks({ values, k, defaultColor, minK, maxK, scalesByK, }: ScaleNaturalBreaksProps): any[] | null;
13
13
  export declare const $naturalBreaks: ExpressionFn<[
14
14
  number[],
15
15
  opt?: Pick<ScaleNaturalBreaksProps, 'k' | 'scalesByK'>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orioro/react-maplibre-util",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "packageManager": "yarn@4.0.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -23,11 +23,28 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@orioro/dev": "^0.0.5",
26
+ "@radix-ui/themes": "^3.0.1",
26
27
  "@tanstack/react-query": "^5.66.0",
28
+ "maplibre-gl": "^5.1.0",
27
29
  "next": "14.1.0",
30
+ "react": "^18.2.0",
31
+ "react-dom": "^18.2.0",
32
+ "react-map-gl": "^8.0.0",
28
33
  "rollup": "^4.13.0",
29
34
  "storybook": "^8.0.0"
30
35
  },
36
+ "peerDependencies": {
37
+ "@radix-ui/themes": "^3.0.1",
38
+ "@types/d3": "^7.4.3",
39
+ "@types/d3-scale-chromatic": "^3.1.0",
40
+ "@types/geojson": "^7946.0.16",
41
+ "@types/mapbox__mapbox-gl-geocoder": "^5.0.0",
42
+ "@types/react-dom": "^19.1.3",
43
+ "maplibre-gl": "^5.1.0",
44
+ "react": "^18.2.0",
45
+ "react-dom": "^18.2.0",
46
+ "react-map-gl": "^8.0.0"
47
+ },
31
48
  "dependencies": {
32
49
  "@mapbox/mapbox-gl-geocoder": "^5.0.3",
33
50
  "@maplibre/maplibre-gl-inspect": "^1.7.1",
@@ -38,23 +55,13 @@
38
55
  "@orioro/react-ui-core": "^0.0.6",
39
56
  "@orioro/resolve": "^0.1.2",
40
57
  "@orioro/scale-util": "^0.0.2",
41
- "@radix-ui/themes": "^3.2.1",
42
58
  "@turf/turf": "^7.2.0",
43
- "@types/d3": "^7.4.3",
44
- "@types/d3-scale-chromatic": "^3.1.0",
45
- "@types/geojson": "^7946.0.16",
46
- "@types/mapbox__mapbox-gl-geocoder": "^5.0.0",
47
- "@types/react-dom": "^19.1.3",
48
59
  "d3": "^7.9.0",
49
60
  "d3-scale-chromatic": "^3.1.0",
50
61
  "greenlet": "^1.1.0",
51
62
  "lodash-es": "^4.17.21",
52
63
  "maplibre-contour": "^0.1.0",
53
- "maplibre-gl": "^5.1.0",
54
64
  "query-string": "^9.1.1",
55
- "react": "^18.2.0",
56
- "react-dom": "^19.1.0",
57
- "react-map-gl": "^8.0.0",
58
65
  "react-merge-refs": "^2.1.1",
59
66
  "react-use": "^17.5.0",
60
67
  "simple-statistics": "^7.8.7",