@openbytes/ts-react-directives 0.1.2 → 0.1.3
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/README.md +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/directives/if/index.d.ts +4 -0
- package/dist/directives/index.d.ts +1 -0
- package/dist/fixtures/constants.d.ts +2 -0
- package/dist/fixtures/enums.d.ts +11 -0
- package/dist/fixtures/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useValidate.d.ts +2 -0
- package/dist/index.d.ts +5 -0
- package/dist/ts-react-directives.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/validators.d.ts +3 -0
- package/package.json +3 -4
- package/dist/ts-react-directives.d.d.ts +0 -1
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## About
|
|
4
4
|
|
|
5
|
-
**ts-react-directives** is small React/Typescript library designed to mimic 'Angular' directives. This is not static library. It's meant to be used as declarative component. Also, it alleviates the limitations and cognitive complexity created by the ternary operations when using conditional rendering.
|
|
5
|
+
**ts-react-directives** is a small React/Typescript library designed to mimic 'Angular' directives. This is not static library. It's meant to be used as declarative component. Also, it alleviates the limitations and cognitive complexity created by the ternary operations when using conditional rendering.
|
|
6
6
|
|
|
7
7
|
## Authors
|
|
8
8
|
|
|
9
|
-
[AUTHORS](AUTHORS.md)
|
|
9
|
+
[AUTHORS](./AUTHORS.md)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Errors } from './Errors';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './if';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum LogicErrors {
|
|
2
|
+
IfBlockExpected = 2001,
|
|
3
|
+
OnlyOneIfBlockExpected = 2002,
|
|
4
|
+
OnlyOneElseBlockExpected = 2003,
|
|
5
|
+
SwitchBlockExpected = 2005,
|
|
6
|
+
InvalidIfBlockOrdinal = 2004,
|
|
7
|
+
InvalidElseBlockOrdinal = 2006,
|
|
8
|
+
InvalidElseIfBlockOrdinal = 2007,
|
|
9
|
+
InvalidElement = 3002,
|
|
10
|
+
ChildrenExpected = 3003
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useValidate } from './useValidate';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ValidationFactory } from './validators';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openbytes/ts-react-directives",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SkyCodr (aka: Dulan Sudasinghe)",
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
],
|
|
12
12
|
"main": "dist/ts-react-directives.umd.js",
|
|
13
13
|
"module": "dist/ts-react-directives.es.js",
|
|
14
|
+
"types": "./dist/ts-react-directives.d.ts",
|
|
14
15
|
"exports": {
|
|
15
16
|
".": {
|
|
16
17
|
"import": "./dist/ts-react-directives.es.js",
|
|
17
18
|
"require": "./dist/ts-react-directives.umd.js"
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
|
-
"types": "dist/ts-react-directives.d.js",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"react": "^19.0.0",
|
|
23
23
|
"react-dom": "^19.0.0"
|
|
@@ -60,16 +60,15 @@
|
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"dev": "vite",
|
|
63
|
+
"preview": "vite preview",
|
|
63
64
|
"build": "tsc -b && vite build",
|
|
64
65
|
"lint": "eslint src/**/*.{ts,tsx}",
|
|
65
66
|
"lint:fix": "eslint --fix src/**/*.{ts,tsx}",
|
|
66
67
|
"format:fix": "prettier --write src/**/*.{ts,tsx}",
|
|
67
68
|
"format:check": "prettier --check src/**/*.{ts,tsx}",
|
|
68
|
-
"preview": "vite preview",
|
|
69
69
|
"test": "vitest",
|
|
70
70
|
"test:ui": "vitest --ui",
|
|
71
71
|
"test:coverage": "vitest --coverage",
|
|
72
|
-
"prepublish": "pnpm run build",
|
|
73
72
|
"publish:registry": "pnpm publish --access public"
|
|
74
73
|
}
|
|
75
74
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|