@trackunit/react-form-wizard 1.21.24 → 1.21.26

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/index.cjs.js CHANGED
@@ -277,7 +277,7 @@ const FormWizardStepWrapper = ({ stepKey, onCancel, description, title, componen
277
277
  submitHandlerInternal?.(fullFormState);
278
278
  }
279
279
  else if (nextStepPath) {
280
- navigate({ to: basePath, params: { stepPath: nextStepPath } });
280
+ void navigate({ to: basePath, params: { stepPath: nextStepPath } });
281
281
  }
282
282
  }, [basePath, beforeSubmitInternal, fullFormState, isLastStep, navigate, nextStepPath, submitHandlerInternal]);
283
283
  const stepSubmitHandler = react.useMemo(() => form.handleSubmit(async (data) => {
@@ -289,7 +289,7 @@ const FormWizardStepWrapper = ({ stepKey, onCancel, description, title, componen
289
289
  await submitHandlerInternal?.({ ...fullFormState, [stepKey]: data });
290
290
  }
291
291
  else if (nextStepPath) {
292
- navigate({ to: basePath, params: { stepPath: nextStepPath } });
292
+ void navigate({ to: basePath, params: { stepPath: nextStepPath } });
293
293
  }
294
294
  }), [
295
295
  basePath,
@@ -311,7 +311,7 @@ const FormWizardStepWrapper = ({ stepKey, onCancel, description, title, componen
311
311
  const handleKeyDown = (event) => {
312
312
  if (event.key === "Enter" && (event.ctrlKey || event.metaKey)) {
313
313
  event.preventDefault();
314
- stepSubmitHandler();
314
+ void stepSubmitHandler();
315
315
  }
316
316
  };
317
317
  document.addEventListener("keydown", handleKeyDown);
@@ -331,7 +331,7 @@ const FormWizardStepWrapper = ({ stepKey, onCancel, description, title, componen
331
331
  catch {
332
332
  sharedUtils.doNothing();
333
333
  }
334
- handleSubmit();
334
+ void handleSubmit();
335
335
  }, children: [jsxRuntime.jsx(FormWizardHeader, { title, description }), jsxRuntime.jsx("div", { className: cvaFormWizardComponentContainer({ className: containerClassName }), children: jsxRuntime.jsx(reactHookForm.FormProvider, { ...form, children: component({
336
336
  form,
337
337
  fullForm,
@@ -482,7 +482,7 @@ const FormWizard = ({ lastStepPrimaryActionLabel, isEdit = false, steps, fullFor
482
482
  // Move navigation to useEffect to avoid setState during render
483
483
  react.useEffect(() => {
484
484
  if (fullFormSchema.shape[keyToCheck] === undefined) {
485
- navigate({ to: basePath, params: { stepPath: firstSchemaKey } });
485
+ void navigate({ to: basePath, params: { stepPath: firstSchemaKey } });
486
486
  }
487
487
  }, [fullFormSchema.shape, keyToCheck, navigate, basePath, firstSchemaKey]);
488
488
  /**
package/index.esm.js CHANGED
@@ -275,7 +275,7 @@ const FormWizardStepWrapper = ({ stepKey, onCancel, description, title, componen
275
275
  submitHandlerInternal?.(fullFormState);
276
276
  }
277
277
  else if (nextStepPath) {
278
- navigate({ to: basePath, params: { stepPath: nextStepPath } });
278
+ void navigate({ to: basePath, params: { stepPath: nextStepPath } });
279
279
  }
280
280
  }, [basePath, beforeSubmitInternal, fullFormState, isLastStep, navigate, nextStepPath, submitHandlerInternal]);
281
281
  const stepSubmitHandler = useMemo(() => form.handleSubmit(async (data) => {
@@ -287,7 +287,7 @@ const FormWizardStepWrapper = ({ stepKey, onCancel, description, title, componen
287
287
  await submitHandlerInternal?.({ ...fullFormState, [stepKey]: data });
288
288
  }
289
289
  else if (nextStepPath) {
290
- navigate({ to: basePath, params: { stepPath: nextStepPath } });
290
+ void navigate({ to: basePath, params: { stepPath: nextStepPath } });
291
291
  }
292
292
  }), [
293
293
  basePath,
@@ -309,7 +309,7 @@ const FormWizardStepWrapper = ({ stepKey, onCancel, description, title, componen
309
309
  const handleKeyDown = (event) => {
310
310
  if (event.key === "Enter" && (event.ctrlKey || event.metaKey)) {
311
311
  event.preventDefault();
312
- stepSubmitHandler();
312
+ void stepSubmitHandler();
313
313
  }
314
314
  };
315
315
  document.addEventListener("keydown", handleKeyDown);
@@ -329,7 +329,7 @@ const FormWizardStepWrapper = ({ stepKey, onCancel, description, title, componen
329
329
  catch {
330
330
  doNothing();
331
331
  }
332
- handleSubmit();
332
+ void handleSubmit();
333
333
  }, children: [jsx(FormWizardHeader, { title, description }), jsx("div", { className: cvaFormWizardComponentContainer({ className: containerClassName }), children: jsx(FormProvider, { ...form, children: component({
334
334
  form,
335
335
  fullForm,
@@ -480,7 +480,7 @@ const FormWizard = ({ lastStepPrimaryActionLabel, isEdit = false, steps, fullFor
480
480
  // Move navigation to useEffect to avoid setState during render
481
481
  useEffect(() => {
482
482
  if (fullFormSchema.shape[keyToCheck] === undefined) {
483
- navigate({ to: basePath, params: { stepPath: firstSchemaKey } });
483
+ void navigate({ to: basePath, params: { stepPath: firstSchemaKey } });
484
484
  }
485
485
  }, [fullFormSchema.shape, keyToCheck, navigate, basePath, firstSchemaKey]);
486
486
  /**
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@trackunit/react-form-wizard",
3
- "version": "1.21.24",
3
+ "version": "1.21.26",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {
7
7
  "zod": "^3.25.76",
8
8
  "@hookform/resolvers": "^3.3.4",
9
9
  "@tanstack/router-core": "1.114.29",
10
- "@trackunit/shared-utils": "1.13.113",
11
- "@trackunit/css-class-variance-utilities": "1.11.113",
12
- "@trackunit/react-components": "1.22.20",
13
- "@trackunit/i18n-library-translation": "1.18.20"
10
+ "@trackunit/shared-utils": "1.13.115",
11
+ "@trackunit/css-class-variance-utilities": "1.11.115",
12
+ "@trackunit/react-components": "1.22.22",
13
+ "@trackunit/i18n-library-translation": "1.18.22"
14
14
  },
15
15
  "engines": {
16
16
  "node": ">=24.x",