Skip to content

Commit 2c149f1

Browse files
authored
Support NodeNext packages (#126)
1 parent 237d189 commit 2c149f1

61 files changed

Lines changed: 134 additions & 116 deletions

Some content is hidden

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

.changeset/metal-cows-punch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"layerchart": minor
3+
---
4+
5+
Support NodeNext packages

packages/layerchart/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"lodash-es": "^4.17.21",
9696
"posthog-js": "^1.108.3",
9797
"shapefile": "^0.6.6",
98-
"svelte-ux": ">=0.60.6",
98+
"svelte-ux": "^0.61.1",
9999
"topojson-client": "^3.1.0"
100100
},
101101
"peerDependencies": {

packages/layerchart/src/lib/components/Arc.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
import { arc as d3arc } from 'd3-shape';
2424
import { scaleLinear } from 'd3-scale';
2525
import { min, max } from 'd3-array';
26-
import { motionStore } from '$lib/stores/motionStore';
27-
import { degreesToRadians } from '$lib/utils/math';
26+
import { motionStore } from '$lib/stores/motionStore.js';
27+
import { degreesToRadians } from '$lib/utils/math.js';
2828
2929
export let spring: boolean | Parameters<typeof springStore>[1] = undefined;
3030
export let tweened: boolean | Parameters<typeof tweenedStore>[1] = undefined;

packages/layerchart/src/lib/components/Area.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
import { cls } from 'svelte-ux';
1010
11-
import { motionStore } from '$lib/stores/motionStore';
11+
import { motionStore } from '$lib/stores/motionStore.js';
1212
1313
import Spline from './Spline.svelte';
1414

packages/layerchart/src/lib/components/Axis.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import Circle from './Circle.svelte';
1414
import Line from './Line.svelte';
1515
import Text from './Text.svelte';
16-
import { isScaleBand } from '$lib/utils/scales';
16+
import { isScaleBand } from '$lib/utils/scales.js';
1717
1818
const { xScale, yScale, xRange, yRange, width } = getContext('LayerCake');
1919

packages/layerchart/src/lib/components/Bar.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts">
22
import { getContext, type ComponentProps } from 'svelte';
33
4-
import { createDimensionGetter } from '$lib/utils/rect';
4+
import { createDimensionGetter } from '$lib/utils/rect.js';
55
import Rect from './Rect.svelte';
66
77
const { x: xContext, y: yContext } = getContext('LayerCake');

packages/layerchart/src/lib/components/Bounds.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { getContext } from 'svelte';
33
import { scaleLinear } from 'd3-scale';
44
5-
import { motionScale } from '$lib/utils/scales';
5+
import { motionScale } from '$lib/utils/scales.js';
66
77
const { width, height } = getContext('LayerCake');
88
@@ -20,7 +20,7 @@
2020
2121
return [
2222
resolvedExtents?.[axis + '0'] ?? 0, // x0 or y0
23-
resolvedExtents?.[axis + '1'] ?? fallback // x1 or y1, fallback as $width or $height
23+
resolvedExtents?.[axis + '1'] ?? fallback, // x1 or y1, fallback as $width or $height
2424
];
2525
}
2626

packages/layerchart/src/lib/components/Chart.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import type { ComponentProps } from 'svelte';
2323
import { max, min } from 'd3-array';
2424
import { get } from 'lodash-es';
25-
import { isScaleBand } from '$lib/utils/scales';
25+
import { isScaleBand } from '$lib/utils/scales.js';
2626
import TooltipContext from './TooltipContext.svelte';
2727
import GeoContext from './GeoContext.svelte';
2828

packages/layerchart/src/lib/components/Circle.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import type { spring as springStore, tweened as tweenedStore } from 'svelte/motion';
44
import { cls } from 'svelte-ux';
55
6-
import { motionStore } from '$lib/stores/motionStore';
6+
import { motionStore } from '$lib/stores/motionStore.js';
77
88
export let cx: number = 0;
99
export let initialCx = cx;

packages/layerchart/src/lib/components/Group.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { getContext, tick } from 'svelte';
33
import type { spring as springStore, tweened as tweenedStore } from 'svelte/motion';
44
5-
import { motionStore } from '$lib/stores/motionStore';
5+
import { motionStore } from '$lib/stores/motionStore.js';
66
77
const { width, height } = getContext('LayerCake');
88

0 commit comments

Comments
 (0)