@openbytes/ts-react-directives 1.0.1 → 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.
- package/LICENSE.md +21 -21
- package/README.md +40 -27
- package/dist/__tests__/Check.test.d.ts +5 -0
- package/dist/__tests__/Config.test.d.ts +5 -0
- package/dist/__tests__/Funcs.test.d.ts +6 -0
- package/dist/__tests__/Loop.test.d.ts +1 -0
- package/dist/components/Errors.d.ts +12 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/directives/check/Check.d.ts +10 -0
- package/dist/directives/check/Else.d.ts +10 -0
- package/dist/directives/check/ElseIf.d.ts +10 -0
- package/dist/directives/check/If.d.ts +10 -0
- package/dist/directives/check/index.d.ts +4 -0
- package/dist/directives/index.d.ts +2 -0
- package/dist/directives/loop/Loop.d.ts +13 -0
- package/dist/directives/loop/Template.d.ts +14 -0
- package/dist/directives/loop/index.d.ts +2 -0
- package/dist/examples/App.d.ts +2 -0
- package/dist/examples/example1.d.ts +10 -0
- package/dist/examples/example2.d.ts +5 -0
- package/dist/examples/example3.d.ts +11 -0
- package/dist/examples/example4.d.ts +10 -0
- package/dist/examples/example5.d.ts +10 -0
- package/dist/examples/example6.d.ts +8 -0
- package/dist/examples/example7.d.ts +19 -0
- package/dist/examples/example8.d.ts +9 -0
- package/dist/fixtures/constants.d.ts +2 -0
- package/dist/fixtures/enums.d.ts +33 -0
- package/dist/fixtures/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/useCheck.d.ts +39 -0
- package/dist/hooks/useLoop.d.ts +9 -0
- package/dist/hooks/useValidationFactory.d.ts +15 -0
- package/dist/index.css +2 -1
- package/dist/index.d.ts +3 -0
- package/dist/main.d.ts +1 -0
- package/dist/ts-react-directives.cjs.js +1 -1
- package/dist/ts-react-directives.d.ts +2 -24
- package/dist/ts-react-directives.es.js +231 -94
- package/dist/ts-react-directives.umd.js +3 -2
- package/dist/types/index.d.ts +51 -0
- package/dist/utils/config.d.ts +76 -0
- package/dist/utils/helpers.d.ts +34 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/validators.d.ts +7 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +44 -37
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.
|
|
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.
|
|
51
|
-
"react-dom": "^19.
|
|
50
|
+
"react": "^19.3.0",
|
|
51
|
+
"react-dom": "^19.3.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@commitlint/cli": "^
|
|
55
|
-
"@commitlint/config-conventional": "^
|
|
56
|
-
"@eslint/js": "^
|
|
57
|
-
"@
|
|
58
|
-
"@testing-library/
|
|
59
|
-
"@
|
|
60
|
-
"@types/react
|
|
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
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@vitest/
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"eslint
|
|
68
|
-
"eslint-
|
|
69
|
-
"eslint-plugin-
|
|
70
|
-
"eslint-plugin-react
|
|
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": "^
|
|
75
|
+
"globals": "^17.12.0",
|
|
73
76
|
"husky": "^9.1.7",
|
|
74
|
-
"jsdom": "^
|
|
75
|
-
"lint-staged": "^
|
|
76
|
-
"prettier": "^3.
|
|
77
|
-
"react-syntax-highlighter": "^
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"typescript": "
|
|
81
|
-
"typescript-eslint": "^8.
|
|
82
|
-
"vite": "^
|
|
83
|
-
"vite-plugin-dts": "^
|
|
84
|
-
"vite-plugin-lib-inject-css": "^2.2.
|
|
85
|
-
"vite-tsconfig-paths": "^
|
|
86
|
-
"vitest": "^
|
|
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",
|
|
@@ -98,14 +101,18 @@
|
|
|
98
101
|
"preview": "vite preview --config vite.config.examples.ts",
|
|
99
102
|
"build:lib": "tsc -b && vite build",
|
|
100
103
|
"build:examples": "tsc -b && vite build --config vite.config.examples.ts",
|
|
101
|
-
"build": "
|
|
104
|
+
"build": "pnpm build:lib && pnpm build:examples",
|
|
102
105
|
"lint": "eslint src/**/*.{ts,tsx}",
|
|
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
|
}
|