@fluid-app/portal-sdk 0.1.652 → 0.1.654

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.
@@ -35,7 +35,7 @@ import "./BulletListWidget-C1p3kEa6.mjs";
35
35
  import "./preview-context-BoUtk7ah.mjs";
36
36
  import "./CalendarWidget-DykW8PIM.mjs";
37
37
  import "./error-state-Ba-Ib1ki.mjs";
38
- import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-DjkZ2Aqa.mjs";
38
+ import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-pOQVeYsv.mjs";
39
39
  import "./WidgetLoadingSkeleton-BfPMNUJp.mjs";
40
40
  import "./CardWidget-qCvFbabx.mjs";
41
41
  import "./purify.es-CUuPyFYH.mjs";
@@ -5587,9 +5587,10 @@ const PAUSE_MONTH_OPTIONS = [
5587
5587
  2,
5588
5588
  3
5589
5589
  ];
5590
- function CancelSubscriptionDialog({ open, onOpenChange, onConfirm, onPauseInstead, errorMessage, presentation = "dialog" }) {
5590
+ function CancelSubscriptionDialog({ open, onOpenChange, onConfirm, onPauseInstead, errorMessage, isPending: isPendingProp = false, presentation = "dialog" }) {
5591
5591
  const { t } = useSubscriptionsTranslation();
5592
- const [isPending, setIsPending] = (0, react.useState)(false);
5592
+ const [isConfirming, setIsConfirming] = (0, react.useState)(false);
5593
+ const isPending = isConfirming || isPendingProp;
5593
5594
  const [selectedMonths, setSelectedMonths] = (0, react.useState)(null);
5594
5595
  (0, react.useEffect)(() => {
5595
5596
  if (!open) setSelectedMonths(null);
@@ -5600,14 +5601,14 @@ function CancelSubscriptionDialog({ open, onOpenChange, onConfirm, onPauseInstea
5600
5601
  onOpenChange(false);
5601
5602
  return;
5602
5603
  }
5603
- setIsPending(true);
5604
+ setIsConfirming(true);
5604
5605
  try {
5605
5606
  await result;
5606
5607
  onOpenChange(false);
5607
5608
  } catch (error) {
5608
5609
  console.error("CancelSubscriptionDialog: action rejected", error);
5609
5610
  } finally {
5610
- setIsPending(false);
5611
+ setIsConfirming(false);
5611
5612
  }
5612
5613
  };
5613
5614
  const handlePause = () => {
@@ -9586,4 +9587,4 @@ Object.defineProperty(exports, "subscriptionsScreenPropertySchema", {
9586
9587
  }
9587
9588
  });
9588
9589
 
9589
- //# sourceMappingURL=SubscriptionsScreen-ZLeoEq6T.cjs.map
9590
+ //# sourceMappingURL=SubscriptionsScreen-CJ1-LEYE.cjs.map