@krak-stack/registry 0.1.4 → 0.1.5

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.
@@ -1733,7 +1733,7 @@ var SubmitButton = ({
1733
1733
  const isDirty = useAtomValue(form.isDirty);
1734
1734
  const hasChangedSinceSubmit = useAtomValue(form.hasChangedSinceSubmit);
1735
1735
  const lastSubmittedValues = useAtomValue(form.lastSubmittedValues);
1736
- const hasPendingChanges = isDirty && (Option.isNone(lastSubmittedValues) || hasChangedSinceSubmit);
1736
+ const hasPendingChanges = Option.isNone(lastSubmittedValues) ? isDirty : hasChangedSinceSubmit;
1737
1737
  return /* @__PURE__ */ jsxs6(Button, {
1738
1738
  type: "button",
1739
1739
  disabled: !hasPendingChanges || submitResult.waiting,
@@ -2409,7 +2409,7 @@ var FormBlockNavigation = ({ form }) => {
2409
2409
  const isDirty = useAtomValue(form.isDirty);
2410
2410
  const hasChangedSinceSubmit = useAtomValue(form.hasChangedSinceSubmit);
2411
2411
  const lastSubmittedValues = useAtomValue(form.lastSubmittedValues);
2412
- const shouldBlock = !submitResult.waiting && isDirty && (Option.isNone(lastSubmittedValues) || hasChangedSinceSubmit);
2412
+ const shouldBlock = !submitResult.waiting && (Option.isNone(lastSubmittedValues) ? isDirty : hasChangedSinceSubmit);
2413
2413
  return /* @__PURE__ */ jsx14(NavigationBlock, {
2414
2414
  shouldBlock
2415
2415
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krak-stack/registry",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Tree-shakable KrakStack components and Effect services.",
5
5
  "license": "MIT",
6
6
  "repository": {