@octanejs/visx 0.1.0 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/visx",
3
- "version": "0.1.0",
3
+ "version": "0.1.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -123,10 +123,10 @@
123
123
  "mitt": "^2.1.0",
124
124
  "reduce-css-calc": "^1.3.0",
125
125
  "svg-path-properties": "2.0.2",
126
- "@octanejs/floating-ui": "0.1.5"
126
+ "@octanejs/floating-ui": "0.1.9"
127
127
  },
128
128
  "peerDependencies": {
129
- "octane": "0.1.6"
129
+ "octane": "0.1.10"
130
130
  },
131
131
  "devDependencies": {
132
132
  "@juggle/resize-observer": "^3.4.0",
@@ -149,7 +149,7 @@
149
149
  "react-dom": "^19.2.0",
150
150
  "typescript": "^5.9.3",
151
151
  "vitest": "^4.1.9",
152
- "octane": "0.1.6"
152
+ "octane": "0.1.10"
153
153
  },
154
154
  "scripts": {
155
155
  "compile:check": "node scripts/check-tsrx-compile.mjs",
@@ -1,4 +1,4 @@
1
- import { useMemo, Fragment } from 'octane';
1
+ import { useMemo } from 'octane';
2
2
  import type { ReactNode, SVGProps } from 'react';
3
3
  import type { GetLineSegmentsConfig } from '../util/getSplitLineSegments';
4
4
  import getSplitLineSegments from '../util/getSplitLineSegments';
@@ -69,11 +69,11 @@ export default function SplitLinePath<Datum>({
69
69
 
70
70
  return <g>{splitLineSegments.map(
71
71
  (segment, index) => children
72
- ? <Fragment key={index}>{children({
72
+ ? children({
73
73
  index,
74
74
  segment,
75
75
  styles: styles[index] || styles[index % styles.length],
76
- })}</Fragment>
76
+ })
77
77
  : <LinePath
78
78
  key={index}
79
79
  className={className}