@okyrychenko-dev/react-action-guard 1.0.4 → 2.0.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.
- package/CHANGELOG.md +451 -0
- package/README.md +171 -1026
- package/dist/index.cjs +796 -589
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +172 -1225
- package/dist/index.d.ts +172 -1225
- package/dist/index.js +795 -595
- package/dist/index.js.map +1 -1
- package/package.json +47 -53
package/package.json
CHANGED
|
@@ -1,43 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okyrychenko-dev/react-action-guard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "
|
|
6
|
-
"
|
|
7
|
-
|
|
5
|
+
"description": "Coordinate shared UI interaction locks across complex React forms and workflows",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=20"
|
|
8
|
+
},
|
|
9
|
+
"main": "./dist/index.cjs",
|
|
10
|
+
"module": "./dist/index.js",
|
|
8
11
|
"types": "./dist/index.d.ts",
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
"import": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"types": "./dist/index.d.cts",
|
|
20
|
+
"default": "./dist/index.cjs"
|
|
21
|
+
}
|
|
14
22
|
}
|
|
15
23
|
},
|
|
16
24
|
"sideEffects": false,
|
|
17
25
|
"files": [
|
|
18
26
|
"dist",
|
|
19
27
|
"README.md",
|
|
28
|
+
"CHANGELOG.md",
|
|
20
29
|
"LICENSE"
|
|
21
30
|
],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"build": "tsup",
|
|
24
|
-
"dev": "tsup --watch",
|
|
25
|
-
"clean": "rm -rf dist",
|
|
26
|
-
"prepublishOnly": "npm run clean && npm run build",
|
|
27
|
-
"typecheck": "tsc --noEmit",
|
|
28
|
-
"lint": "eslint src --ext .ts,.tsx",
|
|
29
|
-
"lint:fix": "eslint src --ext .ts,.tsx --fix",
|
|
30
|
-
"check": "npm run lint && npm run typecheck && npm run test:run && npm run build",
|
|
31
|
-
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
32
|
-
"format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
|
|
33
|
-
"test": "vitest",
|
|
34
|
-
"test:ui": "vitest --ui",
|
|
35
|
-
"test:run": "vitest run",
|
|
36
|
-
"test:coverage": "vitest run --coverage",
|
|
37
|
-
"prepare": "husky",
|
|
38
|
-
"storybook": "storybook dev -p 6006",
|
|
39
|
-
"build-storybook": "storybook build"
|
|
40
|
-
},
|
|
41
31
|
"keywords": [
|
|
42
32
|
"react",
|
|
43
33
|
"ui-blocking",
|
|
@@ -51,12 +41,13 @@
|
|
|
51
41
|
"license": "MIT",
|
|
52
42
|
"repository": {
|
|
53
43
|
"type": "git",
|
|
54
|
-
"url": "https://github.com/okyrychenko-dev/react-action-guard"
|
|
44
|
+
"url": "git+https://github.com/okyrychenko-dev/react-action-guard.git",
|
|
45
|
+
"directory": "packages/core"
|
|
55
46
|
},
|
|
56
47
|
"bugs": {
|
|
57
48
|
"url": "https://github.com/okyrychenko-dev/react-action-guard/issues"
|
|
58
49
|
},
|
|
59
|
-
"homepage": "https://github.com/okyrychenko-dev/react-action-guard#readme",
|
|
50
|
+
"homepage": "https://github.com/okyrychenko-dev/react-action-guard/tree/main/packages/core#readme",
|
|
60
51
|
"publishConfig": {
|
|
61
52
|
"access": "public"
|
|
62
53
|
},
|
|
@@ -65,44 +56,47 @@
|
|
|
65
56
|
"zustand": "^5.0.0"
|
|
66
57
|
},
|
|
67
58
|
"dependencies": {
|
|
68
|
-
"@okyrychenko-dev/react-zustand-toolkit": "^0.
|
|
69
|
-
"
|
|
59
|
+
"@okyrychenko-dev/react-zustand-toolkit": "^1.0.0",
|
|
60
|
+
"@okyrychenko-dev/type-utils": "^0.1.2"
|
|
70
61
|
},
|
|
71
62
|
"devDependencies": {
|
|
72
|
-
"@
|
|
73
|
-
"@storybook/addon-
|
|
74
|
-
"@storybook/
|
|
75
|
-
"@storybook/react-vite": "^10.1.10",
|
|
63
|
+
"@storybook/addon-a11y": "^10.3.6",
|
|
64
|
+
"@storybook/addon-docs": "^10.3.6",
|
|
65
|
+
"@storybook/react-vite": "^10.3.6",
|
|
76
66
|
"@testing-library/dom": "^10.4.1",
|
|
77
67
|
"@testing-library/jest-dom": "^6.9.1",
|
|
78
68
|
"@testing-library/react": "^16.3.0",
|
|
79
69
|
"@testing-library/user-event": "^14.6.1",
|
|
80
70
|
"@types/node": "^24.10.4",
|
|
81
71
|
"@types/react": "^19.2.5",
|
|
82
|
-
"@typescript-eslint/eslint-plugin": "^8.46.4",
|
|
83
|
-
"@typescript-eslint/parser": "^8.46.4",
|
|
84
|
-
"@vitest/coverage-v8": "^4.0.9",
|
|
85
|
-
"@vitest/ui": "^4.0.9",
|
|
86
72
|
"baseline-browser-mapping": "^2.10.0",
|
|
87
73
|
"clsx": "^2.1.1",
|
|
88
|
-
"eslint": "^
|
|
89
|
-
"eslint-config-prettier": "^10.1.8",
|
|
90
|
-
"eslint-plugin-import": "^2.32.0",
|
|
91
|
-
"eslint-plugin-react": "^7.37.5",
|
|
92
|
-
"eslint-plugin-react-hooks": "^7.0.1",
|
|
93
|
-
"eslint-plugin-storybook": "^10.1.10",
|
|
94
|
-
"happy-dom": "^20.0.10",
|
|
95
|
-
"husky": "^9.1.7",
|
|
74
|
+
"eslint-plugin-storybook": "^10.3.6",
|
|
96
75
|
"jsdom": "^27.2.0",
|
|
97
|
-
"prettier": "^3.6.2",
|
|
98
76
|
"react": "^19.2.0",
|
|
99
77
|
"react-dom": "^19.2.0",
|
|
100
78
|
"remark-gfm": "^4.0.1",
|
|
101
|
-
"storybook": "^10.
|
|
102
|
-
"tsup": "^8.5.1",
|
|
103
|
-
"typescript": "^5.3.3",
|
|
104
|
-
"typescript-eslint": "^8.46.4",
|
|
105
|
-
"vitest": "^4.0.9",
|
|
79
|
+
"storybook": "^10.3.6",
|
|
106
80
|
"zustand": "^5.0.8"
|
|
81
|
+
},
|
|
82
|
+
"allowScripts": {
|
|
83
|
+
"esbuild@0.27.0": true
|
|
84
|
+
},
|
|
85
|
+
"scripts": {
|
|
86
|
+
"build": "tsup",
|
|
87
|
+
"dev": "tsup --watch",
|
|
88
|
+
"clean": "rm -rf dist",
|
|
89
|
+
"typecheck": "tsc --noEmit",
|
|
90
|
+
"lint": "eslint src --ext .ts,.tsx",
|
|
91
|
+
"lint:fix": "eslint src --ext .ts,.tsx --fix",
|
|
92
|
+
"check": "pnpm run lint && pnpm run typecheck && pnpm run test:run && pnpm run build",
|
|
93
|
+
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
94
|
+
"format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
|
|
95
|
+
"test": "vitest",
|
|
96
|
+
"test:ui": "vitest --ui",
|
|
97
|
+
"test:run": "vitest run",
|
|
98
|
+
"test:coverage": "vitest run --coverage",
|
|
99
|
+
"storybook": "storybook dev -p 6006",
|
|
100
|
+
"build-storybook": "storybook build"
|
|
107
101
|
}
|
|
108
|
-
}
|
|
102
|
+
}
|