Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/cool-parents-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@tanstack/react-form-devtools': patch
'@tanstack/solid-form-devtools': patch
'@tanstack/form-devtools': patch
'@tanstack/form-core': patch
---

Upgrade packages and fixed theme pacakge missmatch
4 changes: 2 additions & 2 deletions examples/react/array/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.8",
"@tanstack/react-form": "^1.28.4",
"@tanstack/react-form-devtools": "^0.2.17",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@tanstack/react-devtools": "^0.9.7",
"@tanstack/react-form-devtools": "^0.2.17",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^5.1.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.8",
"@tanstack/react-form": "^1.28.4",
"@tanstack/react-form-devtools": "^0.2.17",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@tanstack/react-devtools": "^0.9.7",
"@tanstack/react-form-devtools": "^0.2.17",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^5.1.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/dynamic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.8",
"@tanstack/react-form": "^1.28.4",
"@tanstack/react-form-devtools": "^0.2.17",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@tanstack/react-devtools": "^0.9.7",
"@tanstack/react-form-devtools": "^0.2.17",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^5.1.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/field-errors-from-form-validators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.8",
"@tanstack/react-form": "^1.28.4",
"@tanstack/react-form-devtools": "^0.2.17",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@tanstack/react-devtools": "^0.9.7",
"@tanstack/react-form-devtools": "^0.2.17",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^5.1.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/large-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.8",
"@tanstack/react-form": "^1.28.4",
"@tanstack/react-form-devtools": "^0.2.17",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@tanstack/react-devtools": "^0.9.7",
"@tanstack/react-form-devtools": "^0.2.17",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^5.1.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/query-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.8",
"@tanstack/react-form": "^1.28.4",
"@tanstack/react-form-devtools": "^0.2.17",
"@tanstack/react-query": "^5.89.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@tanstack/react-devtools": "^0.9.7",
"@tanstack/react-form-devtools": "^0.2.17",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^5.1.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.8",
"@tanstack/react-form": "^1.28.4",
"@tanstack/react-form-devtools": "^0.2.17",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@tanstack/react-devtools": "^0.9.7",
"@tanstack/react-form-devtools": "^0.2.17",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^5.1.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/standard-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.8",
"@tanstack/react-form": "^1.28.4",
"@tanstack/react-form-devtools": "^0.2.17",
"arktype": "^2.1.22",
"effect": "^3.17.14",
"react": "^19.0.0",
Expand All @@ -20,6 +18,8 @@
"zod": "^3.25.76"
},
"devDependencies": {
"@tanstack/react-devtools": "^0.9.7",
"@tanstack/react-form-devtools": "^0.2.17",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^5.1.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/tanstack-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
"start": "node .output/server/index.mjs"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.8",
"@tanstack/react-form-devtools": "^0.2.17",
"@tanstack/react-form-start": "^1.28.4",
"@tanstack/react-router": "^1.134.9",
"@tanstack/react-start": "^1.134.9",
Expand All @@ -19,6 +17,8 @@
"react-dom": "^19.0.0"
},
"devDependencies": {
"@tanstack/react-devtools": "^0.9.7",
"@tanstack/react-form-devtools": "^0.2.17",
"@types/node": "^24.1.0",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/ui-libraries/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"@mantine/core": "7.17.8",
"@mantine/hooks": "7.17.8",
"@mui/material": "6.5.0",
"@tanstack/react-devtools": "^0.7.8",
"@tanstack/react-form": "^1.28.4",
"@tanstack/react-form-devtools": "^0.2.17",
"@yme/lay-postcss": "0.1.0",
"postcss": "8.5.6",
"postcss-preset-mantine": "1.18.0",
Expand All @@ -25,6 +23,8 @@
"react-dom": "^19.0.0"
},
"devDependencies": {
"@tanstack/react-devtools": "^0.9.7",
"@tanstack/react-form-devtools": "^0.2.17",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^5.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/form-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"src"
],
"dependencies": {
"@tanstack/devtools-event-client": "^0.4.0",
"@tanstack/devtools-event-client": "^0.4.1",
"@tanstack/pacer-lite": "^0.1.1",
"@tanstack/store": "^0.9.1"
},
Expand Down
14 changes: 7 additions & 7 deletions packages/form-core/src/EventClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ export type BroadcastFormId = {
}

type EventMap = {
'form-devtools:form-state': BroadcastFormState
'form-devtools:form-api': BroadcastFormApi
'form-devtools:form-submission': BroadcastFormSubmissionState
'form-state': BroadcastFormState
'form-api': BroadcastFormApi
'form-submission': BroadcastFormSubmissionState

'form-devtools:request-form-state': BroadcastFormId
'form-devtools:request-form-reset': BroadcastFormId
'form-devtools:request-form-force-submit': BroadcastFormId
'request-form-state': BroadcastFormId
'request-form-reset': BroadcastFormId
'request-form-force-submit': BroadcastFormId

'form-devtools:form-unmounted': BroadcastFormId
'form-unmounted': BroadcastFormId
}

export type EventClientEventMap = keyof EventMap
Expand Down
48 changes: 35 additions & 13 deletions packages/form-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,43 @@
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"build": "vite build && tsc -p tsconfig.build.json"
"build": "tsdown"
},
"type": "module",
"types": "dist/esm/index.d.ts",
"module": "dist/esm/index.js",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
}
"workerd": {
"types": "./dist/index.d.ts",
"import": "./dist/server.js"
},
"browser": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"node": {
"types": "./dist/index.d.ts",
"import": "./dist/server.js"
},
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./production": {
"import": {
"types": "./dist/esm/production.d.ts",
"default": "./dist/esm/production.js"
}
"workerd": {
"types": "./dist/production/index.d.ts",
"import": "./dist/production/server.js"
},
"browser": {
"types": "./dist/production/index.d.ts",
"import": "./dist/production/index.js"
},
"node": {
"types": "./dist/production/index.d.ts",
"import": "./dist/production/server.js"
},
"types": "./dist/production/index.d.ts",
"import": "./dist/production/index.js"
},
"./package.json": "./package.json"
},
Expand All @@ -52,15 +72,17 @@
"src"
],
"dependencies": {
"@tanstack/devtools-ui": "^0.4.4",
"@tanstack/devtools-utils": "^0.3.0",
"@tanstack/devtools-ui": "^0.5.0",
"@tanstack/devtools-utils": "^0.3.2",
"@tanstack/form-core": "workspace:*",
"clsx": "^2.1.1",
"dayjs": "^1.11.18",
"goober": "^2.1.16"
},
"devDependencies": {
"rolldown-plugin-solid": "^0.2.1",
"solid-js": "^1.9.9",
"tsdown": "^0.21.1",
"vite": "^7.2.2",
"vite-plugin-solid": "^2.11.8"
},
Expand Down
16 changes: 7 additions & 9 deletions packages/form-devtools/src/components/DetailsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export function DetailsPanel({ selectedKey }: DetailsPanelProps) {
<div
style={{
display: 'flex',
'flex-wrap': 'wrap',
gap: '8px',
}}
>
Expand All @@ -86,7 +87,7 @@ export function DetailsPanel({ selectedKey }: DetailsPanelProps) {
>
{fieldName}
</div>
<JsonTree copyable value={fieldData as unknown} />
<JsonTree copyable value={fieldData} />
</div>
)}
</For>
Expand All @@ -98,15 +99,15 @@ export function DetailsPanel({ selectedKey }: DetailsPanelProps) {
<div class={styles().stateContent}>
<JsonTree
copyable
value={store()[selectedIndex()]!.state.values as unknown}
value={store()[selectedIndex()]!.state.values}
/>
</div>
</div>

<div class={styles().detailSection}>
<div class={styles().detailSectionHeader}>Form status</div>
<div class={styles().stateContent}>
<JsonTree copyable value={formStatus() as unknown} />
<JsonTree copyable value={formStatus()} />
</div>
</div>

Expand All @@ -115,19 +116,16 @@ export function DetailsPanel({ selectedKey }: DetailsPanelProps) {
<div class={styles().stateContent}>
<JsonTree
copyable
value={store()[selectedIndex()]?.options as unknown}
collapsePaths={['validators'] as unknown as never}
value={store()[selectedIndex()]?.options}
collapsePaths={['validators']}
/>
</div>
</div>

<div class={styles().detailSection}>
<div class={styles().detailSectionHeader}>Submission history</div>
<div class={styles().stateContent}>
<JsonTree
copyable
value={store()[selectedIndex()]?.history as unknown}
/>
<JsonTree copyable value={store()[selectedIndex()]?.history} />
</div>
</div>
</div>
Expand Down
7 changes: 3 additions & 4 deletions packages/form-devtools/src/core.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { lazy } from 'solid-js'
import { constructCoreClass } from '@tanstack/devtools-utils/solid'

const Component = lazy(() => import('./components'))

export interface FormDevtoolsInit {}

const [FormDevtoolsCore, FormDevtoolsCoreNoOp] = constructCoreClass(Component)
const [FormDevtoolsCore, FormDevtoolsCoreNoOp] = constructCoreClass(
() => import('./components'),
)

export { FormDevtoolsCore, FormDevtoolsCoreNoOp }
8 changes: 7 additions & 1 deletion packages/form-devtools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@
"@tanstack/form-core": ["../form-core/src"]
}
},
"include": ["src", "tests", "eslint.config.js", "vite.config.ts"]
"include": [
"src",
"tests",
"eslint.config.js",
"vite.config.ts",
"tsdown.config.ts"
]
}
Loading
Loading