@openbytes/ts-react-directives 1.1.0 → 1.1.1

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 (47) hide show
  1. package/LICENSE.md +21 -21
  2. package/README.md +40 -27
  3. package/dist/__tests__/Check.test.d.ts +5 -0
  4. package/dist/__tests__/Config.test.d.ts +5 -0
  5. package/dist/__tests__/Funcs.test.d.ts +6 -0
  6. package/dist/__tests__/Loop.test.d.ts +1 -0
  7. package/dist/components/Errors.d.ts +12 -0
  8. package/dist/components/index.d.ts +1 -0
  9. package/dist/directives/check/Check.d.ts +10 -0
  10. package/dist/directives/check/Else.d.ts +10 -0
  11. package/dist/directives/check/ElseIf.d.ts +10 -0
  12. package/dist/directives/check/If.d.ts +10 -0
  13. package/dist/directives/check/index.d.ts +4 -0
  14. package/dist/directives/index.d.ts +2 -0
  15. package/dist/directives/loop/Loop.d.ts +13 -0
  16. package/dist/directives/loop/Template.d.ts +14 -0
  17. package/dist/directives/loop/index.d.ts +2 -0
  18. package/dist/examples/App.d.ts +2 -0
  19. package/dist/examples/example1.d.ts +10 -0
  20. package/dist/examples/example2.d.ts +5 -0
  21. package/dist/examples/example3.d.ts +11 -0
  22. package/dist/examples/example4.d.ts +10 -0
  23. package/dist/examples/example5.d.ts +10 -0
  24. package/dist/examples/example6.d.ts +8 -0
  25. package/dist/examples/example7.d.ts +19 -0
  26. package/dist/examples/example8.d.ts +9 -0
  27. package/dist/fixtures/constants.d.ts +2 -0
  28. package/dist/fixtures/enums.d.ts +33 -0
  29. package/dist/fixtures/index.d.ts +2 -0
  30. package/dist/hooks/index.d.ts +3 -0
  31. package/dist/hooks/useCheck.d.ts +39 -0
  32. package/dist/hooks/useLoop.d.ts +9 -0
  33. package/dist/hooks/useValidationFactory.d.ts +15 -0
  34. package/dist/index.css +2 -1
  35. package/dist/index.d.ts +3 -0
  36. package/dist/main.d.ts +1 -0
  37. package/dist/ts-react-directives.cjs.js +1 -1
  38. package/dist/ts-react-directives.d.ts +2 -24
  39. package/dist/ts-react-directives.es.js +232 -119
  40. package/dist/ts-react-directives.umd.js +3 -2
  41. package/dist/types/index.d.ts +51 -0
  42. package/dist/utils/config.d.ts +76 -0
  43. package/dist/utils/helpers.d.ts +34 -0
  44. package/dist/utils/index.d.ts +3 -0
  45. package/dist/utils/validators.d.ts +7 -0
  46. package/dist/vite-env.d.ts +1 -0
  47. package/package.json +43 -36
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openbytes/ts-react-directives",
3
3
  "description": "A collection of React directives to simplify conditional rendering and loops.",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "type": "module",
6
6
  "author": {
7
7
  "name": "SkyCodr (aka: Dulan Sudasinghe)",
@@ -47,43 +47,46 @@
47
47
  }
48
48
  },
49
49
  "dependencies": {
50
- "react": "^19.0.0",
51
- "react-dom": "^19.0.0"
50
+ "react": "^19.3.0",
51
+ "react-dom": "^19.3.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@commitlint/cli": "^19.7.1",
55
- "@commitlint/config-conventional": "^19.7.1",
56
- "@eslint/js": "^9.20.0",
57
- "@testing-library/jest-dom": "^6.6.3",
58
- "@testing-library/react": "^16.2.0",
59
- "@types/react": "^19.0.8",
60
- "@types/react-dom": "^19.0.3",
54
+ "@commitlint/cli": "^21.2.2",
55
+ "@commitlint/config-conventional": "^21.2.2",
56
+ "@eslint/js": "^10.0.1",
57
+ "@tailwindcss/vite": "^4.3.3",
58
+ "@testing-library/jest-dom": "^7.0.1",
59
+ "@testing-library/react": "^16.3.3",
60
+ "@types/react": "^19.3.0",
61
+ "@types/react-dom": "^19.3.0",
61
62
  "@types/react-syntax-highlighter": "^15.5.13",
62
- "@vitejs/plugin-react": "^4.3.4",
63
- "@vitest/coverage-v8": "^3.0.5",
64
- "@vitest/ui": "^3.0.5",
65
- "eslint": "^9.20.1",
66
- "eslint-config-prettier": "^10.0.1",
67
- "eslint-plugin-prettier": "^5.2.3",
68
- "eslint-plugin-react": "^7.37.4",
69
- "eslint-plugin-react-hooks": "^5.1.0",
70
- "eslint-plugin-react-refresh": "^0.4.19",
63
+ "@typescript/native": "npm:typescript@^7.0.2",
64
+ "@vitejs/plugin-react": "^6.1.1",
65
+ "@vitest/coverage-v8": "^5.0.0",
66
+ "@vitest/ui": "^5.0.0",
67
+ "commit-and-tag-version": "^13.2.0",
68
+ "eslint": "^10.10.0",
69
+ "eslint-config-prettier": "^10.1.8",
70
+ "eslint-plugin-prettier": "^5.5.6",
71
+ "eslint-plugin-react": "^7.37.5",
72
+ "eslint-plugin-react-hooks": "^7.1.1",
73
+ "eslint-plugin-react-refresh": "^0.5.6",
71
74
  "gh-pages": "^6.3.0",
72
- "globals": "^15.15.0",
75
+ "globals": "^17.12.0",
73
76
  "husky": "^9.1.7",
74
- "jsdom": "^26.0.0",
75
- "lint-staged": "^15.4.3",
76
- "prettier": "^3.5.1",
77
- "react-syntax-highlighter": "^15.6.1",
78
- "react-tabs": "^6.1.0",
79
- "rimraf": "^6.0.1",
80
- "typescript": "~5.7.3",
81
- "typescript-eslint": "^8.24.0",
82
- "vite": "^6.1.0",
83
- "vite-plugin-dts": "^4.5.0",
84
- "vite-plugin-lib-inject-css": "^2.2.1",
85
- "vite-tsconfig-paths": "^5.1.4",
86
- "vitest": "^3.0.5"
77
+ "jsdom": "^30.0.1",
78
+ "lint-staged": "^17.5.1",
79
+ "prettier": "^3.9.6",
80
+ "react-syntax-highlighter": "^16.1.1",
81
+ "rimraf": "^6.1.3",
82
+ "tailwindcss": "^4.3.3",
83
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
84
+ "typescript-eslint": "^8.70.0",
85
+ "vite": "^8.3.0",
86
+ "vite-plugin-dts": "^5.1.0",
87
+ "vite-plugin-lib-inject-css": "^2.2.2",
88
+ "vite-tsconfig-paths": "^6.1.1",
89
+ "vitest": "^5.0.0"
87
90
  },
88
91
  "peerDependencies": {
89
92
  "react": "^19.0.0",
@@ -103,9 +106,13 @@
103
106
  "lint:fix": "eslint --fix src/**/*.{ts,tsx}",
104
107
  "format": "prettier --check src/**/*.{ts,tsx}",
105
108
  "format:fix": "prettier --write src/**/*.{ts,tsx}",
106
- "test": "vitest",
107
- "test:ui": "vitest --ui",
108
- "test:coverage": "vitest --coverage",
109
+ "test": "vitest --run",
110
+ "test:ui": "vitest --ui --run",
111
+ "test:coverage": "vitest --coverage --run",
112
+ "release": "commit-and-tag-version",
113
+ "release:dry-run": "commit-and-tag-version --dry-run",
114
+ "release:minor": "commit-and-tag-version --release-as minor",
115
+ "release:major": "commit-and-tag-version --release-as major",
109
116
  "publish:registry": "pnpm publish",
110
117
  "publish:gh-pages": "pnpm build:examples && pnpm gh-pages -d dist/examples"
111
118
  }