Skip to content

Commit 6dd9512

Browse files
committed
More fixes for UI components types
1 parent 3378f53 commit 6dd9512

File tree

8 files changed

+9
-11
lines changed

8 files changed

+9
-11
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"tsx": "^4.19.1",
5454
"typescript": "^5.8.3",
5555
"underscore": "^1.13.7",
56-
"use-async-effect": "^2.2.1",
5756
"vite-plugin-cjs-interop": "^2.4.0"
5857
},
5958
"devDependencies": {

packages/column-components/src/util/column-box.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import h from "@macrostrat/hyper";
22
import { useContext } from "react";
33
import { ColumnContext } from "../context";
44
import classNames from "classnames";
5-
import Box from "ui-box";
5+
import { default as Box } from "ui-box";
66
import { path } from "d3-path";
77
import type { Path } from "d3-path";
88

packages/ui-components/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [5.0.2] - 2026-01-28
4+
5+
More fixes for CommonJS dependency linking
6+
37
## [5.0.1] - 2026-01-28
48

59
Fix CommonJS dependency linking issues (centered around `ui-box` dependency)
@@ -11,7 +15,6 @@ Fix CommonJS dependency linking issues (centered around `ui-box` dependency)
1115
- Require styles to be imported separately as
1216
`@macrostrat/ui-components/styles.css` or
1317
`@macrostrat/ui-components/dist/ui-components.css`
14-
-
1518

1619
## [4.6.0] - 2026-01-20
1720

packages/ui-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@macrostrat/ui-components",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"description": "UI components for React and Blueprint.js",
55
"repository": {
66
"type": "git",

packages/ui-components/src/api/provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import axios, {
77
AxiosRequestConfig,
88
AxiosResponse,
99
} from "axios";
10-
import useAsyncEffect from "use-async-effect";
10+
import { useAsyncEffect } from "use-async-effect";
1111
import { debounce } from "underscore";
1212
import { APIConfig, ResponseUnwrapper, APIConfigOptions } from "./types";
1313
import { QueryParams } from "../util/query-string";

packages/ui-components/src/util/state-hooks.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import {
2-
Component,
32
useState,
43
useRef,
54
useEffect,
6-
RefObject,
7-
MutableRefObject,
85
} from "react";
96
import { isEqual } from "underscore";
107
import update, { Spec } from "immutability-helper";
118
import { useAsyncEffect } from "use-async-effect";
12-
9+
import { Component, MutableRefObject } from "react";
1310
// Re-export useAsyncEffect
1411
export { useAsyncEffect };
1512

toolchain/bundler/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function buildStandardViteConfig(
138138
],
139139
output: {
140140
preserveModules: true,
141-
exports: "named", // Ignore module export warning for sass files.
141+
exports: "default",
142142
},
143143
},
144144
},

yarn.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,6 @@ __metadata:
16681668
tsx: "npm:^4.19.1"
16691669
typescript: "npm:^5.8.3"
16701670
underscore: "npm:^1.13.7"
1671-
use-async-effect: "npm:^2.2.1"
16721671
vite: "npm:^7.3.1"
16731672
vite-plugin-cjs-interop: "npm:^2.4.0"
16741673
languageName: unknown

0 commit comments

Comments
 (0)