Skip to content

Commit faddf9a

Browse files
committed
chore(deps): update @tanstack/devtools and related packages
1 parent b6652ab commit faddf9a

File tree

8 files changed

+37
-125
lines changed

8 files changed

+37
-125
lines changed

examples/angular/a11y-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@angular/platform-browser": "^21.2.0",
1919
"@angular/router": "^21.2.0",
2020
"@tanstack/angular-devtools": "^0.0.1",
21-
"@tanstack/devtools-event-client": "0.4.2",
21+
"@tanstack/devtools-event-client": "0.4.3",
2222
"@tanstack/devtools-a11y": "^0.1.2",
2323
"rxjs": "~7.8.0",
2424
"tslib": "^2.3.0"

examples/angular/basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@angular/platform-browser": "^21.2.0",
1919
"@angular/router": "^21.2.0",
2020
"@tanstack/angular-devtools": "^0.0.1",
21-
"@tanstack/devtools-event-client": "0.4.2",
21+
"@tanstack/devtools-event-client": "0.4.3",
2222
"rxjs": "~7.8.0",
2323
"tslib": "^2.3.0"
2424
},

examples/angular/panel/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"@angular/platform-browser": "^21.2.0",
1919
"@angular/router": "^21.2.0",
2020
"@tanstack/angular-devtools": "^0.0.1",
21-
"@tanstack/devtools": "^0.10.13",
22-
"@tanstack/devtools-event-client": "0.4.2",
23-
"@tanstack/devtools-utils": "^0.3.3",
21+
"@tanstack/devtools": "^0.11.2",
22+
"@tanstack/devtools-event-client": "0.4.3",
23+
"@tanstack/devtools-utils": "^0.4.0",
2424
"rxjs": "~7.8.0",
2525
"tslib": "^2.3.0"
2626
},

examples/angular/with-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@angular/platform-browser": "^21.2.0",
1919
"@angular/router": "^21.2.0",
2020
"@tanstack/angular-devtools": "^0.0.1",
21-
"@tanstack/devtools-event-client": "0.4.2",
21+
"@tanstack/devtools-event-client": "^0.4.3",
2222
"rxjs": "~7.8.0",
2323
"tslib": "^2.3.0"
2424
},
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "configPath": "../../dist/server/wrangler.json", "auxiliaryWorkers": [] }
1+
{"configPath":"../../dist/server/wrangler.json","auxiliaryWorkers":[]}

packages/angular-devtools/src/devtools.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ import {
2222
untracked,
2323
} from '@angular/core'
2424
import type { Signal } from '@angular/core'
25-
import type { TanStackDevtoolsPlugin } from '@tanstack/devtools'
25+
import type {
26+
TanStackDevtoolsPlugin,
27+
} from '@tanstack/devtools'
2628
import type {
2729
TanStackDevtoolsAngularFunctionalComponent,
2830
TanStackDevtoolsAngularInit,
2931
TanStackDevtoolsAngularPlugin,
32+
TanStackDevtoolsAngularPluginInputProps,
3033
TanStackDevtoolsAngularPluginRender,
3134
} from './types'
3235

@@ -127,15 +130,15 @@ export class TanStackDevtools {
127130
...(plugin.inputs ?? {}),
128131
})
129132
},
130-
render: (e, theme) => {
133+
render: (e, props) => {
131134
if (!plugin.render) {
132135
return
133136
}
134137

135138
runInInjectionContext(this.#viewInjector, () => {
136139
if (isClassConstructor<unknown>(plugin.render)) {
137140
this.renderComponent(plugin.render, e, {
138-
theme,
141+
...props,
139142
...(plugin.inputs ?? {}),
140143
})
141144
} else {
@@ -146,7 +149,7 @@ export class TanStackDevtools {
146149
>,
147150
e,
148151
{
149-
theme,
152+
...props,
150153
...(plugin.inputs ?? {}),
151154
},
152155
)
@@ -159,7 +162,7 @@ export class TanStackDevtools {
159162
}
160163
}
161164

162-
#normalizeInputs<TInputs extends Record<string, unknown>>(
165+
#normalizeInputs<TInputs extends Record<string, any>>(
163166
inputs: Signal<TInputs> | (() => TInputs) | TInputs,
164167
): () => TInputs {
165168
return isSignal(inputs)
@@ -170,7 +173,9 @@ export class TanStackDevtools {
170173
async #renderComponentFunction(
171174
renderFn: Exclude<TanStackDevtoolsAngularPluginRender, Type<any> | null>,
172175
container: HTMLElement,
173-
inputs: (() => Record<string, unknown>) | Record<string, unknown>,
176+
inputs:
177+
| (() => TanStackDevtoolsAngularPluginInputProps)
178+
| TanStackDevtoolsAngularPluginInputProps,
174179
) {
175180
const result = await renderFn()
176181
if (!result) return
@@ -193,7 +198,7 @@ export class TanStackDevtools {
193198
#renderFunctionalComponent(
194199
fn: TanStackDevtoolsAngularFunctionalComponent,
195200
container: HTMLElement,
196-
inputs: () => Record<string, unknown>,
201+
inputs: () => TanStackDevtoolsAngularPluginInputProps,
197202
) {
198203
const component = createComponent(TanStackPluginView, {
199204
hostElement: container,

packages/angular-devtools/src/types.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ interface DefaultExport<T> {
1717
default: T
1818
}
1919

20+
export interface TanStackDevtoolsAngularPluginInputProps extends TanStackDevtoolsPluginProps {
21+
[key: string]: any;
22+
}
23+
2024
export type TanStackDevtoolsAngularFunctionalComponent<
21-
TInputs extends NonNullable<unknown> = Record<string, any>,
25+
TInputs extends TanStackDevtoolsAngularPluginInputProps = TanStackDevtoolsAngularPluginInputProps,
2226
> = (inputs: () => TInputs, hostElement: HTMLElement) => () => void
2327

2428
export type TanStackDevtoolsAngularPluginRenderFn =
25-
| TanStackDevtoolsAngularFunctionalComponent<TanStackDevtoolsPluginProps>
29+
| TanStackDevtoolsAngularFunctionalComponent<TanStackDevtoolsAngularPluginInputProps>
2630
| DefaultExport<Type<unknown> | null>
2731
| Type<unknown>
2832
| null

pnpm-lock.yaml

Lines changed: 12 additions & 109 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)