Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/map-interface/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format
is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.5.7] - 2025-08-19

- Remove a duplicate export

## [1.5.6] - 2025-08-01

- Fossils component just show data, not panel
Expand Down
2 changes: 1 addition & 1 deletion packages/map-interface/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@macrostrat/map-interface",
"version": "1.5.6",
"version": "1.5.7",
"description": "Map interface for Macrostrat",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
7 changes: 0 additions & 7 deletions packages/map-interface/src/location-details/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
export const addCommas = (x) => {
x = parseInt(x);
var parts = x.toString().split(".");
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
return parts.join(".");
};

export const sum = (data, prop) => {
if (!data || !data.length) {
return [];
Expand Down
4 changes: 4 additions & 0 deletions packages/mapbox-react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format
is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.6.3] - 2025-08-19

- Improve typings for `useMapRef` hook

## [2.6.2] - 2025-07-02

- Move internal functions for managing focus state to the
Expand Down
2 changes: 1 addition & 1 deletion packages/mapbox-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@macrostrat/mapbox-react",
"version": "2.6.2",
"version": "2.6.3",
"description": "Components to support using Mapbox maps in React",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
14 changes: 4 additions & 10 deletions packages/mapbox-react/src/context.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import {
createContext,
useContext,
RefObject,
useRef,
useState,
useMemo,
} from "react";
import type { RefObject } from "react";
import { createContext, useContext, useMemo, useRef, useState } from "react";
import update from "immutability-helper";
import { Map } from "mapbox-gl";
import type { Map } from "mapbox-gl";
import h from "@macrostrat/hyper";
import { MapPosition } from "@macrostrat/mapbox-utils";
import type { MapPosition } from "@macrostrat/mapbox-utils";
import { createStore, useStore } from "zustand";

const MapStoreContext = createContext(null);
Expand Down