@arcote.tech/arc-react 0.0.9 → 0.0.11
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/dist/index.d.ts +3 -2
- package/dist/index.js +11 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from "./form.ts";
|
|
2
|
+
export * from "./idb.ts";
|
|
3
|
+
export * from "./reactModel.tsx";
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
// form.ts
|
|
2
|
+
function formResolver(schema) {
|
|
3
|
+
return async (data) => {
|
|
4
|
+
return {
|
|
5
|
+
values: data,
|
|
6
|
+
errors: {}
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
}
|
|
1
10
|
// idb.ts
|
|
2
11
|
import {
|
|
3
12
|
ArcIndexedCollection
|
|
@@ -176,5 +185,6 @@ var reactModel = (context, dependecies) => {
|
|
|
176
185
|
};
|
|
177
186
|
export {
|
|
178
187
|
reactModel,
|
|
179
|
-
idbAdapterFactory
|
|
188
|
+
idbAdapterFactory,
|
|
189
|
+
formResolver
|
|
180
190
|
};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "0.0.
|
|
7
|
+
"version": "0.0.11",
|
|
8
8
|
"private": false,
|
|
9
9
|
"author": "Przemysław Krasiński [arcote.tech]",
|
|
10
10
|
"description": "React client for the Arc framework, providing utilities for querying data and executing commands, enhancing the development of reactive and efficient user interfaces.",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"publish": "bun run build && npm publish --access=public"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@arcote.tech/arc": "
|
|
19
|
+
"@arcote.tech/arc": "latest",
|
|
20
20
|
"react": "^18.3.1",
|
|
21
21
|
"rxjs": "^7.8.1"
|
|
22
22
|
},
|