@accelint/map-toolkit 1.1.0 → 1.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @accelint/map-toolkit
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 878bfa6: Refactored the hotkey-manager package to decouple react.
8
+
3
9
  ## 1.1.0
4
10
 
5
11
  ### Minor Changes
package/catalog-info.yaml CHANGED
@@ -19,7 +19,7 @@ metadata:
19
19
  annotations:
20
20
  backstage.io/edit-url: https://github.com/gohypergiant/standard-toolkit/blob/main/packages/map-toolkit/catalog-info.yaml
21
21
  backstage.io/techdocs-ref: dir:.
22
- package/version: 1.1.0
22
+ package/version: 1.2.0
23
23
  github.com/project-slug: gohypergiant/standard-toolkit
24
24
  links:
25
25
  - url: https://github.com/gohypergiant/standard-toolkit/tree/main/packages/map-toolkit
@@ -13,11 +13,11 @@
13
13
 
14
14
  'use client';
15
15
 
16
- import { cursorCoordinateStore } from "./store.js";
17
16
  import { MapContext } from "../deckgl/base-map/provider.js";
17
+ import { cursorCoordinateStore } from "./store.js";
18
18
  import { useContext, useMemo } from "react";
19
- import { coordinateSystems, createCoordinate, formatDecimalDegrees, formatDegreesDecimalMinutes, formatDegreesMinutesSeconds } from "@accelint/geo";
20
19
  import { getLogger } from "@accelint/logger";
20
+ import { coordinateSystems, createCoordinate, formatDecimalDegrees, formatDegreesDecimalMinutes, formatDegreesMinutesSeconds } from "@accelint/geo";
21
21
 
22
22
  //#region src/cursor-coordinates/use-cursor-coordinates.ts
23
23
  const logger = getLogger({
@@ -11,8 +11,8 @@
11
11
  */
12
12
 
13
13
  import { RefObject } from "react";
14
- import { UniqueId } from "@accelint/core";
15
14
  import { MapRef } from "react-map-gl/maplibre";
15
+ import { UniqueId } from "@accelint/core";
16
16
 
17
17
  //#region src/deckgl/base-map/controls.d.ts
18
18
  type MapControlsProps = {
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import { BaseMapProps } from "./types.js";
14
- import * as react_jsx_runtime1 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/deckgl/base-map/index.d.ts
17
17
 
@@ -106,7 +106,7 @@ declare function BaseMap({
106
106
  onViewStateChange,
107
107
  pickingRadius,
108
108
  ...rest
109
- }: BaseMapProps): react_jsx_runtime1.JSX.Element;
109
+ }: BaseMapProps): react_jsx_runtime0.JSX.Element;
110
110
  //#endregion
111
111
  export { BaseMap };
112
112
  //# sourceMappingURL=index.d.ts.map
@@ -14,17 +14,17 @@
14
14
  'use client';
15
15
 
16
16
  import { useMapCamera } from "../../camera/store.js";
17
- import { MapEvents } from "./events.js";
18
17
  import { getCursor } from "../../map-cursor/store.js";
19
- import { MapProvider } from "./provider.js";
20
18
  import { DEFAULT_VIEW_STATE } from "../../shared/constants.js";
21
19
  import { DARK_BASE_MAP_STYLE, PARAMETERS, PICKING_RADIUS } from "./constants.js";
20
+ import { MapEvents } from "./events.js";
22
21
  import { MapControls } from "./controls.js";
22
+ import { MapProvider } from "./provider.js";
23
23
  import { useCallback, useId, useMemo, useRef } from "react";
24
- import { jsx, jsxs } from "react/jsx-runtime";
25
24
  import { useEffectEvent, useEmit } from "@accelint/bus/react";
26
25
  import { Deckgl, useDeckgl } from "@deckgl-fiber-renderer/dom";
27
26
  import { Map, useControl } from "react-map-gl/maplibre";
27
+ import { jsx, jsxs } from "react/jsx-runtime";
28
28
 
29
29
  //#region src/deckgl/base-map/index.tsx
30
30
  /**
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { ReactNode } from "react";
14
14
  import { UniqueId } from "@accelint/core";
15
- import * as react_jsx_runtime2 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/deckgl/base-map/provider.d.ts
18
18
  /**
@@ -139,7 +139,7 @@ type MapProviderProps = {
139
139
  declare function MapProvider({
140
140
  children,
141
141
  id
142
- }: MapProviderProps): react_jsx_runtime2.JSX.Element;
142
+ }: MapProviderProps): react_jsx_runtime1.JSX.Element;
143
143
  //#endregion
144
144
  export { MapContext, MapProvider, MapProviderProps };
145
145
  //# sourceMappingURL=provider.d.ts.map
@@ -11,8 +11,8 @@
11
11
  */
12
12
 
13
13
 
14
- import { MapEvents, MapEventsNamespace } from "./base-map/events.js";
15
14
  import { DARK_BASE_MAP_STYLE, LIGHT_BASE_MAP_STYLE, PARAMETERS } from "./base-map/constants.js";
15
+ import { MapEvents, MapEventsNamespace } from "./base-map/events.js";
16
16
  import { BaseMap } from "./base-map/index.js";
17
17
  import { createSavedViewport } from "./saved-viewports/index.js";
18
18
  import { DASH_ARRAYS, DEFAULT_COLORS, DEFAULT_STYLE_PROPERTIES, LINE_PATTERNS, LINE_WIDTHS, SHAPE_LAYER_IDS } from "./shapes/shared/constants.js";
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import { DrawShapeLayerProps } from "./types.js";
14
- import * as react_jsx_runtime0 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/deckgl/shapes/draw-shape-layer/index.d.ts
17
17
 
@@ -47,7 +47,7 @@ declare function DrawShapeLayer({
47
47
  id,
48
48
  mapId,
49
49
  unit
50
- }: DrawShapeLayerProps): react_jsx_runtime0.JSX.Element | null;
50
+ }: DrawShapeLayerProps): react_jsx_runtime2.JSX.Element | null;
51
51
  //#endregion
52
52
  export { DrawShapeLayer };
53
53
  //# sourceMappingURL=index.d.ts.map
@@ -16,8 +16,8 @@
16
16
  import { DEFAULT_STYLE_PROPERTIES } from "../../shared/constants.js";
17
17
  import { ShapeFeatureType } from "../../shared/types.js";
18
18
  import { DEFAULT_DISTANCE_UNITS } from "../../../../shared/units.js";
19
- import { getLogger } from "@accelint/logger";
20
19
  import { uuid } from "@accelint/core";
20
+ import { getLogger } from "@accelint/logger";
21
21
  import { centroid, distance } from "@turf/turf";
22
22
 
23
23
  //#region src/deckgl/shapes/draw-shape-layer/utils/feature-conversion.ts
@@ -14,8 +14,8 @@
14
14
  import { createMapStore, mapClear, mapDelete, mapSet } from "../shared/create-map-store.js";
15
15
  import { MapModeEvents } from "./events.js";
16
16
  import { Broadcast } from "@accelint/bus";
17
- import { getLogger } from "@accelint/logger";
18
17
  import { uuid } from "@accelint/core";
18
+ import { getLogger } from "@accelint/logger";
19
19
 
20
20
  //#region src/map-mode/store.ts
21
21
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@accelint/map-toolkit",
3
3
  "description": "A collection of components and utilities to simplify visualizing and working with geospatial data.",
4
- "version": "1.1.0",
4
+ "version": "1.2.0",
5
5
  "author": "https://hypergiant.com",
6
6
  "$schema": "https://json.schemastore.org/package",
7
7
  "devDependencies": {
@@ -46,13 +46,13 @@
46
46
  "@accelint/bus": "3.0.2",
47
47
  "@accelint/core": "0.5.2",
48
48
  "@accelint/design-foundation": "2.1.0",
49
- "@accelint/design-toolkit": "9.3.0",
49
+ "@accelint/design-toolkit": "9.4.0",
50
50
  "@accelint/geo": "0.5.1",
51
51
  "@accelint/logger": "0.1.5",
52
52
  "@accelint/postcss-tailwind-css-modules": "1.0.1",
53
+ "@accelint/smeegl": "0.3.5",
53
54
  "@accelint/typescript-config": "0.1.4",
54
- "@accelint/vitest-config": "0.1.6",
55
- "@accelint/smeegl": "0.3.4"
55
+ "@accelint/vitest-config": "0.1.6"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=22",
@@ -151,16 +151,16 @@
151
151
  "milsymbol": "^3.0.2",
152
152
  "mjolnir.js": "^3.0.0",
153
153
  "react-map-gl": "^8.1.0",
154
- "@accelint/hotkey-manager": "0.1.3"
154
+ "@accelint/hotkey-manager": "1.0.0"
155
155
  },
156
156
  "owner": "default/pathfinder",
157
157
  "peerDependencies": {
158
158
  "@types/geojson": "^7946.0.14",
159
159
  "react": "^19",
160
+ "@accelint/bus": "3.0.2",
160
161
  "@accelint/core": "0.5.2",
161
162
  "@accelint/geo": "0.5.1",
162
- "@accelint/logger": "0.1.5",
163
- "@accelint/bus": "3.0.2"
163
+ "@accelint/logger": "0.1.5"
164
164
  },
165
165
  "private": false,
166
166
  "publishConfig": {