react-state-monad 1.0.13 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/index.ts +7 -7
package/dist/index.cjs
CHANGED
@@ -17,7 +17,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
17
17
|
};
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
|
20
|
-
// index.ts
|
20
|
+
// src/index.ts
|
21
21
|
var index_exports = {};
|
22
22
|
__export(index_exports, {
|
23
23
|
default: () => index_default,
|
@@ -156,7 +156,7 @@ function useArrayState(states) {
|
|
156
156
|
return useStateObject(states.filter((state) => state.hasValue).map((state) => state.value));
|
157
157
|
}
|
158
158
|
|
159
|
-
// index.ts
|
159
|
+
// src/index.ts
|
160
160
|
var index_default = void 0;
|
161
161
|
// Annotate the CommonJS export names for ESM import in node:
|
162
162
|
0 && (module.exports = {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-state-monad",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.0.
|
4
|
+
"version": "1.0.15",
|
5
5
|
"description": "A set of hooks to manage/transform/filter states with monads in React",
|
6
6
|
"keywords": [
|
7
7
|
"maybe",
|
@@ -14,7 +14,7 @@
|
|
14
14
|
],
|
15
15
|
"scripts": {
|
16
16
|
"validateTypes": "tsc --noEmit",
|
17
|
-
"build": "tsup index.ts --format cjs,esm --dts --dts-resolve",
|
17
|
+
"build": "tsup src/index.ts --format cjs,esm --dts --dts-resolve",
|
18
18
|
"cleanBuild": "rm -rf dist"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
package/src/index.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
export * from "./
|
2
|
-
export * from "./
|
3
|
-
export * from "./
|
4
|
-
export * from "./
|
5
|
-
export * from "./
|
6
|
-
export * from "./
|
7
|
-
export * from "./
|
1
|
+
export * from "./hooks/useFieldState";
|
2
|
+
export * from "./hooks/useElementState";
|
3
|
+
export * from "./hooks/useEmptyState";
|
4
|
+
export * from "./hooks/useFieldState";
|
5
|
+
export * from "./hooks/useRemapArray";
|
6
|
+
export * from "./hooks/useStateObject";
|
7
|
+
export * from "./stateObject";
|
8
8
|
|
9
9
|
export default this;
|