cogsbox-state 0.5.472 → 0.5.473

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 (45) hide show
  1. package/dist/CogsState.d.ts +98 -82
  2. package/dist/CogsState.d.ts.map +1 -1
  3. package/dist/CogsState.jsx +1020 -950
  4. package/dist/CogsState.jsx.map +1 -1
  5. package/dist/Components.d.ts.map +1 -1
  6. package/dist/Components.jsx +276 -217
  7. package/dist/Components.jsx.map +1 -1
  8. package/dist/PluginRunner.d.ts +10 -0
  9. package/dist/PluginRunner.d.ts.map +1 -0
  10. package/dist/PluginRunner.jsx +128 -0
  11. package/dist/PluginRunner.jsx.map +1 -0
  12. package/dist/index.d.ts +2 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +33 -26
  15. package/dist/index.js.map +1 -1
  16. package/dist/pluginStore.d.ts +43 -0
  17. package/dist/pluginStore.d.ts.map +1 -0
  18. package/dist/pluginStore.js +52 -0
  19. package/dist/pluginStore.js.map +1 -0
  20. package/dist/plugins.d.ts +1326 -0
  21. package/dist/plugins.d.ts.map +1 -0
  22. package/dist/plugins.js +76 -0
  23. package/dist/plugins.js.map +1 -0
  24. package/dist/store.d.ts +50 -15
  25. package/dist/store.d.ts.map +1 -1
  26. package/dist/store.js +509 -470
  27. package/dist/store.js.map +1 -1
  28. package/dist/utility.d.ts +1 -1
  29. package/dist/utility.d.ts.map +1 -1
  30. package/dist/utility.js +12 -12
  31. package/dist/utility.js.map +1 -1
  32. package/dist/validation.d.ts +7 -0
  33. package/dist/validation.d.ts.map +1 -0
  34. package/dist/validation.js +39 -0
  35. package/dist/validation.js.map +1 -0
  36. package/package.json +13 -3
  37. package/src/CogsState.tsx +658 -457
  38. package/src/Components.tsx +272 -194
  39. package/src/PluginRunner.tsx +208 -0
  40. package/src/index.ts +2 -0
  41. package/src/pluginStore.ts +159 -0
  42. package/src/plugins.ts +548 -0
  43. package/src/store.ts +748 -493
  44. package/src/utility.ts +31 -31
  45. package/src/validation.ts +84 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogsbox-state",
3
- "version": "0.5.472",
3
+ "version": "0.5.473",
4
4
  "description": "React state management library with form controls and server sync",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -29,20 +29,30 @@
29
29
  "dependencies": {
30
30
  "@testing-library/jest-dom": "^6.6.4",
31
31
  "fast-json-patch": "^3.1.1",
32
- "react": "^18.3.1",
33
- "react-dom": "^18.3.1",
32
+ "react": ">=17.0.0 || ^18.0.0 || ^19.0.0",
33
+ "react-dom": ">=17.0.0 || ^18.0.0 || ^19.0.0",
34
34
  "react-intersection-observer": "^9.16.0",
35
35
  "rollup-preserve-directives": "^1.1.3",
36
36
  "superjson": "^2.2.2",
37
37
  "uuid": "^9.0.1",
38
38
  "zustand": "^5.0.3"
39
39
  },
40
+ "peerDependenciesMeta": {
41
+ "react": {
42
+ "optional": false
43
+ },
44
+ "react-dom": {
45
+ "optional": false
46
+ }
47
+ },
40
48
  "peerDependencies": {
41
49
  "@trpc/next": "^10.0.0 || ^11.0.0",
42
50
  "@types/react": "^18.0.0",
43
51
  "zod": "^3.25.0 || ^4.0.0"
44
52
  },
45
53
  "devDependencies": {
54
+ "react": "^18.3.1",
55
+ "react-dom": "^18.3.1",
46
56
  "@testing-library/react": "^16.3.0",
47
57
  "@types/node": "^22.14.0",
48
58
  "@types/react": "^18.2.0",