@steveesamson/microform 0.0.7 → 0.0.8

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.
@@ -1,4 +1,4 @@
1
1
  /// <reference types="svelte" />
2
2
  import { type Writable } from "svelte/store";
3
- import type { ActionOptions, FormErrors, FormOptions, FormValues, FormReturn, Params } from "./types.js";
4
- export declare const formAction: (values: FormValues, errors: FormErrors, unfits: Writable<Params>, isdirty: Writable<boolean>, options: FormOptions, validationMap: Params) => (node: HTMLElement, eventProps?: ActionOptions) => FormReturn;
3
+ import type { FormErrors, FormOptions, FormValues, Params, FormAction } from "./types.js";
4
+ export declare const formAction: (values: FormValues, errors: FormErrors, unfits: Writable<Params>, isdirty: Writable<boolean>, options: FormOptions, validationMap: Params) => FormAction;
package/dist/types.d.ts CHANGED
@@ -26,9 +26,7 @@ export type ActionOptions = {
26
26
  node?: HTMLElement;
27
27
  html?: boolean;
28
28
  };
29
- export type FormAction = (node: HTMLElement, eventProps?: ActionOptions) => {
30
- destroy: () => void;
31
- };
29
+ export type FormAction = (node: HTMLElement, eventProps?: ActionOptions) => FormReturn;
32
30
  export type FormSubmitEvent = SubmitEvent & {
33
31
  currentTarget: EventTarget & HTMLFormElement;
34
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steveesamson/microform",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "postbuild": "touch ./docs/.nojekyll",