@steveesamson/microform 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 CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from "./types.js";
2
2
  import type { MicroFormProps, MicroFormReturn } from './types.js';
3
- declare const useForm: (props?: MicroFormProps) => MicroFormReturn;
4
- export default useForm;
3
+ declare const microForm: (props?: MicroFormProps) => MicroFormReturn;
4
+ export default microForm;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export * from "./types.js";
2
2
  import { writable, derived, get } from 'svelte/store';
3
3
  import { formAction } from './form-action.js';
4
- const useForm = (props) => {
4
+ const microForm = (props) => {
5
5
  // form default values
6
6
  const data = props?.data || {};
7
7
  // form values
@@ -62,4 +62,4 @@ const useForm = (props) => {
62
62
  reset,
63
63
  };
64
64
  };
65
- export default useForm;
65
+ export default microForm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steveesamson/microform",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "postbuild": "touch ./docs/.nojekyll",
@@ -21,8 +21,7 @@
21
21
  "exports": {
22
22
  ".": {
23
23
  "types": "./dist/index.d.ts",
24
- "svelte": "./dist/index.js",
25
- "default": "./dist/index.js"
24
+ "svelte": "./dist/index.js"
26
25
  }
27
26
  },
28
27
  "author": "Steve S. Samson <stevee.samson@gmail.com> (http://github.com/steveesamson)",
@@ -59,7 +58,6 @@
59
58
  "vite": "^5.0.3"
60
59
  },
61
60
  "default": "./dist/index.js",
62
- "svelte": "./dist/index.js",
63
61
  "types": "./dist/index.d.ts",
64
62
  "type": "module",
65
63
  "keywords": [