From 067cdb68842e8d73e5401c183231c9a3388a3307 Mon Sep 17 00:00:00 2001 From: Jake Boone Date: Thu, 17 Sep 2026 12:56:59 -0700 Subject: [PATCH 1/9] Run are-the-types-wrong in CI --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d6aa982..a60283d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,3 +13,4 @@ jobs: - run: bun run build - run: bun run lint --format=github - run: bun run fmt --check + - run: bun run are-the-types-wrong From 1629a81939d8aa016d9e736145237d3c98573fc4 Mon Sep 17 00:00:00 2001 From: Jake Boone Date: Thu, 17 Sep 2026 12:57:52 -0700 Subject: [PATCH 2/9] Remove unnecessary peerDependencies --- bun.lock | 4 ---- example/package.json | 4 ---- package.json | 4 ---- 3 files changed, 12 deletions(-) diff --git a/bun.lock b/bun.lock index a88389f..e0dcb75 100644 --- a/bun.lock +++ b/bun.lock @@ -32,10 +32,6 @@ "peerDependencies": { "@chakra-ui/icons": "^2", "@chakra-ui/react": "^2", - "@chakra-ui/system": "^2", - "@emotion/react": "^11", - "@emotion/styled": "^11", - "framer-motion": "^11", "react": ">=18", "react-querybuilder": "^8", }, diff --git a/example/package.json b/example/package.json index 5d4281d..82b546b 100644 --- a/example/package.json +++ b/example/package.json @@ -2,11 +2,7 @@ "dependencies": { "@chakra-ui/icons": "^2", "@chakra-ui/react": "^2", - "@chakra-ui/system": "^2", - "@emotion/react": "^11", - "@emotion/styled": "^11", "@react-querybuilder/chakra2": "8.24.0", - "framer-motion": "^11", "react": "^18.3.1", "react-dom": "^18.3.1", "react-querybuilder": "8.24.0" diff --git a/package.json b/package.json index 87153ba..65d01c8 100644 --- a/package.json +++ b/package.json @@ -82,10 +82,6 @@ "peerDependencies": { "@chakra-ui/icons": "^2", "@chakra-ui/react": "^2", - "@chakra-ui/system": "^2", - "@emotion/react": "^11", - "@emotion/styled": "^11", - "framer-motion": "^11", "react": ">=18", "react-querybuilder": "^8" } From df1f1f69b410c670b5141f1756b71b4c98513b8c Mon Sep 17 00:00:00 2001 From: Jake Boone Date: Thu, 17 Sep 2026 12:59:06 -0700 Subject: [PATCH 3/9] Correct package name in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 85477c3..79ad1c1 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Official [react-querybuilder](https://npmjs.com/package/react-querybuilder) comp ## Installation ```bash -npm i react-querybuilder @react-querybuilder/chakra @chakra-ui/icons@2 @chakra-ui/react@2 @chakra-ui/system@2 @emotion/react @emotion/styled framer-motion +npm i react-querybuilder @react-querybuilder/chakra2 @chakra-ui/icons@2 @chakra-ui/react@2 @chakra-ui/system@2 @emotion/react @emotion/styled framer-motion # OR yarn add / pnpm add / bun add ``` @@ -27,7 +27,7 @@ To configure the query builder to use Chakra-compatible components, place `Query ```tsx import { ChakraProvider, extendTheme } from '@chakra-ui/react'; -import { QueryBuilderChakra } from '@react-querybuilder/chakra'; +import { QueryBuilderChakra } from '@react-querybuilder/chakra2'; import { useState } from 'react'; import { type Field, QueryBuilder, type RuleGroupType } from 'react-querybuilder'; From 6e4023f196cc4e8e77fd6e633dfddc116e1cfd7e Mon Sep 17 00:00:00 2001 From: Jake Boone Date: Thu, 17 Sep 2026 13:01:35 -0700 Subject: [PATCH 4/9] Correct define in build --- tsdown.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdown.config.ts b/tsdown.config.ts index 626c60b..99408b9 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -14,7 +14,7 @@ export default (async options => { const productionOptions = { minify: true, - define: { NODE_ENV: 'production' }, + define: { 'process.env.NODE_ENV': 'production' }, } satisfies UserConfig; const opts: UserConfig[] = [ From f695c10a1c6ffdb8395adf41d1bcdf7f7e270457 Mon Sep 17 00:00:00 2001 From: Jake Boone Date: Thu, 17 Sep 2026 13:02:25 -0700 Subject: [PATCH 5/9] Pass `testID` prop to all components --- src/ChakraActionElement.tsx | 3 +- src/ChakraDragHandle.tsx | 12 +++--- src/ChakraNotToggle.tsx | 3 +- src/ChakraValueEditor.tsx | 18 ++++++--- src/ChakraValueSelector.tsx | 74 ++++++++++++++++++++----------------- 5 files changed, 62 insertions(+), 48 deletions(-) diff --git a/src/ChakraActionElement.tsx b/src/ChakraActionElement.tsx index 4b7def1..5e68a4e 100644 --- a/src/ChakraActionElement.tsx +++ b/src/ChakraActionElement.tsx @@ -12,8 +12,8 @@ export const ChakraActionElement = ({ title, disabled, disabledTranslation, + testID, // Props that should not be in extraProps - testID: _testID, rules: _rules, level: _level, path: _path, @@ -24,6 +24,7 @@ export const ChakraActionElement = ({ ...extraProps }: ChakraActionProps): React.JSX.Element => (