Skip to content

Commit 091be31

Browse files
xrendanclaude
andcommitted
Fix all .js imports in @buildcanada/charts, bump to v0.3.5
Replace 946 .js import extensions with correct .ts/.tsx extensions across 325 files to fix module resolution in consuming apps. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b12652b commit 091be31

File tree

326 files changed

+947
-947
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

326 files changed

+947
-947
lines changed

packages/charts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@buildcanada/charts",
3-
"version": "0.3.4",
3+
"version": "0.3.5",
44
"description": "A configurable data visualization library for creating interactive charts.",
55
"type": "module",
66
"main": "src/index.ts",

packages/charts/src/components/GrapherTabIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
GRAPHER_TAB_NAMES,
1313
GrapherChartType,
1414
GrapherTabName,
15-
} from "../types/index.js"
15+
} from "../types/index.ts"
1616

1717
export function GrapherTabIcon({
1818
tab,

packages/charts/src/components/GrapherTrendArrow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import cx from "classnames"
2-
import { GrapherTrendArrowDirection } from "../types/index.js"
2+
import { GrapherTrendArrowDirection } from "../types/index.ts"
33

44
const ARROW_PATHS = {
55
up: "m14,0H5c-.552,0-1,.448-1,1s.448,1,1,1h6.586L.29303,13.29297l1.41394,1.414L13,3.41394v6.58606c0,.552.448,1,1,1s1-.448,1-1V1c0-.552-.448-1-1-1Z",

packages/charts/src/components/Halo/Halo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from "react"
2-
import { Color } from "../../types/index.js"
2+
import { Color } from "../../types/index.ts"
33

44
interface HaloProps {
55
id: string

packages/charts/src/components/LabeledSwitch/LabeledSwitch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from "react"
22
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
33
import { faInfoCircle } from "@fortawesome/free-solid-svg-icons"
44
import cx from "classnames"
5-
import { Tippy } from "../../utils/index.js"
5+
import { Tippy } from "../../utils/index.ts"
66

77
export const LabeledSwitch = ({
88
className,

packages/charts/src/components/MarkdownTextWrap/MarkdownTextWrap.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect, it, describe } from "vitest"
22

3-
import { FontFamily } from "../../utils/index.js"
3+
import { FontFamily } from "../../utils/index.ts"
44
import {
55
IRText,
66
MarkdownTextWrap,
@@ -11,7 +11,7 @@ import {
1111
IRBold,
1212
IRLink,
1313
IRLineBreak,
14-
} from "./MarkdownTextWrap.js"
14+
} from "./MarkdownTextWrap.tsx"
1515

1616
describe("MarkdownTextWrap", () => {
1717
it("heavier fontWeight should be wider than plain IRText", () => {

packages/charts/src/components/MarkdownTextWrap/MarkdownTextWrap.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import {
77
imemo,
88
Bounds,
99
FontFamily,
10-
} from "../../utils/index.js"
11-
import { DetailsMarker } from "../../types/index.js"
12-
import { TextWrap } from "../TextWrap/TextWrap.js"
10+
} from "../../utils/index.ts"
11+
import { DetailsMarker } from "../../types/index.ts"
12+
import { TextWrap } from "../TextWrap/TextWrap.tsx"
1313
import { fromMarkdown } from "mdast-util-from-markdown"
1414
import type { Content, Root } from "mdast"
1515
import { match } from "ts-pattern"
16-
import { urlRegex } from "../markdown/remarkPlainLinks.js"
16+
import { urlRegex } from "../markdown/remarkPlainLinks.ts"
1717
import * as R from "remeda"
1818

1919
const SUPERSCRIPT_NUMERALS = {

packages/charts/src/components/OverlayHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from "react"
22
import cx from "classnames"
3-
import { CloseButton } from "./closeButton/CloseButton.js"
3+
import { CloseButton } from "./closeButton/CloseButton.tsx"
44

55
export function OverlayHeader({
66
title,

packages/charts/src/components/SimpleMarkdownText.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Markdown, {
33
type Options as MarkdownOptions,
44
type Components as MarkdownComponents,
55
} from "react-markdown"
6-
import { remarkPlainLinks } from "./markdown/remarkPlainLinks.js"
6+
import { remarkPlainLinks } from "./markdown/remarkPlainLinks.ts"
77
import { visit } from "unist-util-visit"
88
import type { Plugin } from "unified"
99
import type { Root } from "hast"

packages/charts/src/components/TextWrap/TextWrap.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect, it, describe } from "vitest"
22

33
import { TextWrap, shortenForTargetWidth } from "./TextWrap"
4-
import { Bounds } from "../../utils/index.js"
4+
import { Bounds } from "../../utils/index.ts"
55

66
const FONT_SIZE = 14
77

0 commit comments

Comments
 (0)