@obosbbl/grunnmuren-react 1.14.1 → 1.14.2-beta.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.
@@ -11,8 +11,8 @@ export declare function useFormStepContext<FormStepData extends FieldValues>(for
11
11
  setActiveStep: (step: number) => void;
12
12
  previousFormStep: () => Promise<void>;
13
13
  nextFormStep: () => void;
14
- submitAndNextFormStep: (formValues: FormStepData) => void;
15
- setFormData: (formValues: FormStepData) => void;
14
+ submitAndNextFormStep: (formValues: FormStepData) => Promise<void>;
15
+ setFormData: (formValues: FormStepData) => Promise<void>;
16
16
  formData: any;
17
17
  };
18
18
  export declare function FormStepProvider({ children }: {
@@ -648,7 +648,7 @@ function Xe(e) {
648
648
  const [r, t] = A(Q), n = N(async () => {
649
649
  t({ type: "PREV_STEP" });
650
650
  }, [t]), a = N(
651
- (d) => {
651
+ async (d) => {
652
652
  t({
653
653
  type: "SET_FORM_STEP_DATA",
654
654
  formId: `form${e}`,
@@ -659,8 +659,8 @@ function Xe(e) {
659
659
  ), s = N(() => {
660
660
  t({ type: "NEXT_STEP" });
661
661
  }, [t]), i = N(
662
- (d) => {
663
- a(d), s();
662
+ async (d) => {
663
+ await a(d), s();
664
664
  },
665
665
  [s, a]
666
666
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obosbbl/grunnmuren-react",
3
- "version": "1.14.1",
3
+ "version": "1.14.2-beta.0",
4
4
  "description": "OBOS Grunnmuren design system React components",
5
5
  "license": "MIT",
6
6
  "repository": {