Skip to content

Commit

Permalink
chore: release v0.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Jan 28, 2025
1 parent 01b850f commit ce70584
Show file tree
Hide file tree
Showing 6 changed files with 217 additions and 212 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.16.1

- Update Client UI.

## 0.16.0

- Better custom integrate.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-bundle-analyzer",
"version": "0.16.0",
"version": "0.16.1",
"description": "a modern vite bundle analyzer tool",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -50,7 +50,7 @@
"rollup": "^4.13.0",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-swc3": "^0.11.2",
"squarified": "^0.2.2",
"squarified": "^0.3.1",
"tinyexec": "^0.3.1",
"tsx": "^4.19.2",
"typescript": "^5.2.2",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/client/application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export function App() {
const handleMousemove = useCallback((data: PrimitiveEventMetadata<'mousemove'>) => {
setTooltipVisible(!!data.module)
if (data.module) {
// @ts-expect-error safe
setTooltipContent(() => data.module.node)
}
}, [])
Expand Down
6 changes: 3 additions & 3 deletions src/client/components/treemap/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { inline } from '@stylex-extend/core'
import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef } from 'react'
import type { Ref } from 'react'
import { c2m, createTreemap, presetDecorator, sortChildrenByKey } from 'squarified'
import type { PrimitiveEventCallback } from 'squarified'
import type { ExposedEventCallback } from 'squarified'
import { useQueryParams, useResize } from '../../composables'
import { useApplicationContext, useToggleSize } from '../../context'
import { createMagicEvent } from '../../special'
Expand All @@ -11,7 +11,7 @@ import type { QueryKind } from '../../special'
export type TreemapComponentInstance = ReturnType<typeof createTreemap>

export interface TreemapProps {
onMousemove: PrimitiveEventCallback<'mousemove'>
onMousemove: ExposedEventCallback<'mousemove'>
}

export const Treemap = forwardRef((props: TreemapProps, ref: Ref<TreemapComponentInstance>) => {
Expand Down Expand Up @@ -69,7 +69,7 @@ export const Treemap = forwardRef((props: TreemapProps, ref: Ref<TreemapComponen
useEffect(() => {
instanceRef.current?.on('click', function(metadata) {
this.zoom(metadata.module)
const evt = createMagicEvent('graph:click', metadata.module)
const evt = createMagicEvent('graph:click', metadata.module!)
window.dispatchEvent(evt)
})
}, [])
Expand Down
Loading

0 comments on commit ce70584

Please sign in to comment.