@react-querybuilder/core 8.15.0 → 8.16.0

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.
Files changed (84) hide show
  1. package/README.md +114 -53
  2. package/dist/cjs/react-querybuilder_core.cjs.development.d.ts +89 -16
  3. package/dist/cjs/react-querybuilder_core.cjs.development.js +402 -19
  4. package/dist/cjs/react-querybuilder_core.cjs.development.js.map +1 -1
  5. package/dist/cjs/react-querybuilder_core.cjs.production.d.ts +89 -16
  6. package/dist/cjs/react-querybuilder_core.cjs.production.js +1 -1
  7. package/dist/cjs/react-querybuilder_core.cjs.production.js.map +1 -1
  8. package/dist/formatQuery.d.mts +67 -2
  9. package/dist/formatQuery.d.ts +67 -2
  10. package/dist/formatQuery.js +402 -19
  11. package/dist/formatQuery.js.map +1 -1
  12. package/dist/formatQuery.mjs +396 -20
  13. package/dist/formatQuery.mjs.map +1 -1
  14. package/dist/{import-0wp72lLT.d.mts → import-BHlzBLM_.d.mts} +2 -2
  15. package/dist/{import-yRVJh7E1.d.ts → import-C6imciDf.d.ts} +2 -2
  16. package/dist/{index-D5TXNIzF.d.ts → index-Cjapnb-H.d.ts} +14 -7
  17. package/dist/{index-Lht_Wq3V.d.mts → index-D-Iej37L.d.mts} +14 -7
  18. package/dist/parseCEL.d.mts +2 -2
  19. package/dist/parseCEL.d.ts +2 -2
  20. package/dist/parseCEL.js.map +1 -1
  21. package/dist/parseCEL.mjs.map +1 -1
  22. package/dist/parseCypher.d.mts +49 -0
  23. package/dist/parseCypher.d.ts +49 -0
  24. package/dist/parseCypher.js +578 -0
  25. package/dist/parseCypher.js.map +1 -0
  26. package/dist/parseCypher.mjs +575 -0
  27. package/dist/parseCypher.mjs.map +1 -0
  28. package/dist/parseGremlin.d.mts +35 -0
  29. package/dist/parseGremlin.d.ts +35 -0
  30. package/dist/parseGremlin.js +192 -0
  31. package/dist/parseGremlin.js.map +1 -0
  32. package/dist/parseGremlin.mjs +191 -0
  33. package/dist/parseGremlin.mjs.map +1 -0
  34. package/dist/parseJSONata.d.mts +2 -2
  35. package/dist/parseJSONata.d.ts +2 -2
  36. package/dist/parseJSONata.js.map +1 -1
  37. package/dist/parseJSONata.mjs.map +1 -1
  38. package/dist/parseJsonLogic.d.mts +2 -2
  39. package/dist/parseJsonLogic.d.ts +2 -2
  40. package/dist/parseJsonLogic.js.map +1 -1
  41. package/dist/parseJsonLogic.mjs.map +1 -1
  42. package/dist/parseMongoDB.d.mts +2 -2
  43. package/dist/parseMongoDB.d.ts +2 -2
  44. package/dist/parseMongoDB.js.map +1 -1
  45. package/dist/parseMongoDB.mjs.map +1 -1
  46. package/dist/parseSPARQL.d.mts +34 -0
  47. package/dist/parseSPARQL.d.ts +34 -0
  48. package/dist/parseSPARQL.js +253 -0
  49. package/dist/parseSPARQL.js.map +1 -0
  50. package/dist/parseSPARQL.mjs +251 -0
  51. package/dist/parseSPARQL.mjs.map +1 -0
  52. package/dist/parseSQL.d.mts +2 -2
  53. package/dist/parseSQL.d.ts +2 -2
  54. package/dist/parseSQL.js.map +1 -1
  55. package/dist/parseSQL.mjs.map +1 -1
  56. package/dist/parseSpEL.d.mts +2 -2
  57. package/dist/parseSpEL.d.ts +2 -2
  58. package/dist/parseSpEL.js.map +1 -1
  59. package/dist/parseSpEL.mjs.map +1 -1
  60. package/dist/prepareQueryObjects-BoG5Rt8z.js.map +1 -1
  61. package/dist/prepareQueryObjects-uA10ZpZX.mjs.map +1 -1
  62. package/dist/react-querybuilder_core.d.mts +89 -16
  63. package/dist/react-querybuilder_core.legacy-esm.d.ts +89 -16
  64. package/dist/react-querybuilder_core.legacy-esm.js +408 -27
  65. package/dist/react-querybuilder_core.legacy-esm.js.map +1 -1
  66. package/dist/react-querybuilder_core.mjs +396 -20
  67. package/dist/react-querybuilder_core.mjs.map +1 -1
  68. package/dist/react-querybuilder_core.production.d.mts +89 -16
  69. package/dist/react-querybuilder_core.production.mjs +1 -1
  70. package/dist/react-querybuilder_core.production.mjs.map +1 -1
  71. package/dist/transformQuery.d.mts +1 -1
  72. package/dist/transformQuery.d.ts +1 -1
  73. package/formatQuery/package.json +1 -1
  74. package/package.json +47 -3
  75. package/parseCEL/package.json +1 -1
  76. package/parseCypher/package.json +4 -0
  77. package/parseGremlin/package.json +4 -0
  78. package/parseJSONata/package.json +1 -1
  79. package/parseJsonLogic/package.json +1 -1
  80. package/parseMongoDB/package.json +1 -1
  81. package/parseSPARQL/package.json +4 -0
  82. package/parseSQL/package.json +1 -1
  83. package/parseSpEL/package.json +1 -1
  84. package/transformQuery/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { C as RuleGroupTypeIC, D as RuleGroupType, O as RuleType, S as RuleGroupTypeAny } from "./index-Lht_Wq3V.mjs";
1
+ import { C as RuleGroupTypeIC, D as RuleGroupType, O as RuleType, S as RuleGroupTypeAny } from "./index-D-Iej37L.mjs";
2
2
 
3
3
  //#region src/utils/transformQuery.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { C as RuleGroupTypeIC, D as RuleGroupType, O as RuleType, S as RuleGroupTypeAny } from "./index-D5TXNIzF.js";
1
+ import { C as RuleGroupTypeIC, D as RuleGroupType, O as RuleType, S as RuleGroupTypeAny } from "./index-Cjapnb-H.js";
2
2
 
3
3
  //#region src/utils/transformQuery.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "main": "../dist/formatQuery.js",
3
3
  "types": "../dist/formatQuery.d.ts"
4
- }
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-querybuilder/core",
3
- "version": "8.15.0",
3
+ "version": "8.16.0",
4
4
  "description": "React Query Builder component for constructing queries and filters, with utilities for executing them in various database and evaluation contexts",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -40,6 +40,26 @@
40
40
  "default": "./dist/parseCEL.js"
41
41
  }
42
42
  },
43
+ "./parseCypher": {
44
+ "import": {
45
+ "types": "./dist/parseCypher.d.mts",
46
+ "import": "./dist/parseCypher.mjs"
47
+ },
48
+ "require": {
49
+ "types": "./dist/parseCypher.d.ts",
50
+ "default": "./dist/parseCypher.js"
51
+ }
52
+ },
53
+ "./parseGremlin": {
54
+ "import": {
55
+ "types": "./dist/parseGremlin.d.mts",
56
+ "import": "./dist/parseGremlin.mjs"
57
+ },
58
+ "require": {
59
+ "types": "./dist/parseGremlin.d.ts",
60
+ "default": "./dist/parseGremlin.js"
61
+ }
62
+ },
43
63
  "./parseJSONata": {
44
64
  "import": {
45
65
  "types": "./dist/parseJSONata.d.mts",
@@ -70,6 +90,16 @@
70
90
  "default": "./dist/parseMongoDB.js"
71
91
  }
72
92
  },
93
+ "./parseSPARQL": {
94
+ "import": {
95
+ "types": "./dist/parseSPARQL.d.mts",
96
+ "import": "./dist/parseSPARQL.mjs"
97
+ },
98
+ "require": {
99
+ "types": "./dist/parseSPARQL.d.ts",
100
+ "default": "./dist/parseSPARQL.js"
101
+ }
102
+ },
73
103
  "./parseSpEL": {
74
104
  "import": {
75
105
  "types": "./dist/parseSpEL.d.mts",
@@ -107,9 +137,12 @@
107
137
  "dist",
108
138
  "formatQuery",
109
139
  "parseCEL",
140
+ "parseCypher",
141
+ "parseGremlin",
110
142
  "parseJSONata",
111
143
  "parseJsonLogic",
112
144
  "parseMongoDB",
145
+ "parseSPARQL",
113
146
  "parseSpEL",
114
147
  "parseSQL",
115
148
  "transformQuery"
@@ -142,14 +175,17 @@
142
175
  "homepage": "https://react-querybuilder.js.org/",
143
176
  "devDependencies": {
144
177
  "@electric-sql/pglite": "^0.4.4",
178
+ "@grafeo-db/js": "^0.5.41",
145
179
  "@prisma/client": "^7.7.0",
180
+ "@traqula/parser-sparql-1-2": "^1.1.0",
146
181
  "@types/json-logic-js": "^2.0.8",
147
182
  "@types/node": "^25.6.0",
183
+ "chevrotain": "^12.0.0",
148
184
  "drizzle-orm": "^0.45.2",
149
185
  "json-logic-js": "^2.0.5",
150
186
  "jsonata": "^2.1.0",
151
187
  "mongodb-memory-server-core": "^11.0.1",
152
- "mongoose": "^9.4.1",
188
+ "mongoose": "^9.6.1",
153
189
  "pglite-prisma-adapter": "^0.7.2",
154
190
  "prisma": "^7.7.0",
155
191
  "query-string": "^9.3.1",
@@ -169,6 +205,8 @@
169
205
  "numeric-quantity": "^3.2.1"
170
206
  },
171
207
  "peerDependencies": {
208
+ "@traqula/parser-sparql-1-2": ">=0.1.0",
209
+ "chevrotain": ">=11",
172
210
  "drizzle-orm": ">=0.38.0",
173
211
  "json-logic-js": ">=2",
174
212
  "jsonata": ">=2",
@@ -190,6 +228,12 @@
190
228
  },
191
229
  "spel2js": {
192
230
  "optional": true
231
+ },
232
+ "chevrotain": {
233
+ "optional": true
234
+ },
235
+ "@traqula/parser-sparql-1-2": {
236
+ "optional": true
193
237
  }
194
238
  },
195
239
  "browserslist": "> 0.25%, not dead",
@@ -200,5 +244,5 @@
200
244
  "typecheck": "tsc --noEmit",
201
245
  "typecheck:watch": "tsc --noEmit --watch"
202
246
  },
203
- "gitHead": "4832c97de3424b7fbace2b010bad5a99d781b14f"
247
+ "gitHead": "63e541fdbfde0afc7bd6f5a3512aa60c739f2dbd"
204
248
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "main": "../dist/parseCEL.js",
3
3
  "types": "../dist/parseCEL.d.ts"
4
- }
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "main": "../dist/parseCypher.js",
3
+ "types": "../dist/parseCypher.d.ts"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "main": "../dist/parseGremlin.js",
3
+ "types": "../dist/parseGremlin.d.ts"
4
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "main": "../dist/parseJSONata.js",
3
3
  "types": "../dist/parseJSONata.d.ts"
4
- }
4
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "main": "../dist/parseJsonLogic.js",
3
3
  "types": "../dist/parseJsonLogic.d.ts"
4
- }
4
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "main": "../dist/parseMongoDB.js",
3
3
  "types": "../dist/parseMongoDB.d.ts"
4
- }
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "main": "../dist/parseSPARQL.js",
3
+ "types": "../dist/parseSPARQL.d.ts"
4
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "main": "../dist/parseSQL.js",
3
3
  "types": "../dist/parseSQL.d.ts"
4
- }
4
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "main": "../dist/parseSpEL.js",
3
3
  "types": "../dist/parseSpEL.d.ts"
4
- }
4
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "main": "../dist/transformQuery.js",
3
3
  "types": "../dist/transformQuery.d.ts"
4
- }
4
+ }