@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.
- package/dist/{SubscriptionsScreen-BcqROCUq.mjs → SubscriptionsScreen-BeqW_wMd.mjs} +1 -1
- package/dist/{SubscriptionsScreen-ZLeoEq6T.cjs → SubscriptionsScreen-CJ1-LEYE.cjs} +6 -5
- package/dist/SubscriptionsScreen-CJ1-LEYE.cjs.map +1 -0
- package/dist/{SubscriptionsScreen-DZdO_Puf.cjs → SubscriptionsScreen-ZmHVkf6Y.cjs} +1 -1
- package/dist/{SubscriptionsScreen-DjkZ2Aqa.mjs → SubscriptionsScreen-pOQVeYsv.mjs} +6 -5
- package/dist/SubscriptionsScreen-pOQVeYsv.mjs.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
- package/dist/SubscriptionsScreen-DjkZ2Aqa.mjs.map +0 -1
- package/dist/SubscriptionsScreen-ZLeoEq6T.cjs.map +0 -1
|
@@ -70,6 +70,6 @@ require("./translation-adapter-BDl8kuMB.cjs");
|
|
|
70
70
|
require("./sidebar-Dk7RHqlR.cjs");
|
|
71
71
|
require("./ScreenHeaderContext-Dar1JG7O.cjs");
|
|
72
72
|
require("./use-portal-card-add-3ds-flow-D3GLdTIE.cjs");
|
|
73
|
-
const require_SubscriptionsScreen = require("./SubscriptionsScreen-
|
|
73
|
+
const require_SubscriptionsScreen = require("./SubscriptionsScreen-CJ1-LEYE.cjs");
|
|
74
74
|
exports.SubscriptionsScreen = require_SubscriptionsScreen.SubscriptionsScreen;
|
|
75
75
|
exports.subscriptionsScreenPropertySchema = require_SubscriptionsScreen.subscriptionsScreenPropertySchema;
|
|
@@ -5525,9 +5525,10 @@ const PAUSE_MONTH_OPTIONS = [
|
|
|
5525
5525
|
2,
|
|
5526
5526
|
3
|
|
5527
5527
|
];
|
|
5528
|
-
function CancelSubscriptionDialog({ open, onOpenChange, onConfirm, onPauseInstead, errorMessage, presentation = "dialog" }) {
|
|
5528
|
+
function CancelSubscriptionDialog({ open, onOpenChange, onConfirm, onPauseInstead, errorMessage, isPending: isPendingProp = false, presentation = "dialog" }) {
|
|
5529
5529
|
const { t } = useSubscriptionsTranslation();
|
|
5530
|
-
const [
|
|
5530
|
+
const [isConfirming, setIsConfirming] = useState(false);
|
|
5531
|
+
const isPending = isConfirming || isPendingProp;
|
|
5531
5532
|
const [selectedMonths, setSelectedMonths] = useState(null);
|
|
5532
5533
|
useEffect(() => {
|
|
5533
5534
|
if (!open) setSelectedMonths(null);
|
|
@@ -5538,14 +5539,14 @@ function CancelSubscriptionDialog({ open, onOpenChange, onConfirm, onPauseInstea
|
|
|
5538
5539
|
onOpenChange(false);
|
|
5539
5540
|
return;
|
|
5540
5541
|
}
|
|
5541
|
-
|
|
5542
|
+
setIsConfirming(true);
|
|
5542
5543
|
try {
|
|
5543
5544
|
await result;
|
|
5544
5545
|
onOpenChange(false);
|
|
5545
5546
|
} catch (error) {
|
|
5546
5547
|
console.error("CancelSubscriptionDialog: action rejected", error);
|
|
5547
5548
|
} finally {
|
|
5548
|
-
|
|
5549
|
+
setIsConfirming(false);
|
|
5549
5550
|
}
|
|
5550
5551
|
};
|
|
5551
5552
|
const handlePause = () => {
|
|
@@ -9513,4 +9514,4 @@ const subscriptionsScreenPropertySchema = {
|
|
|
9513
9514
|
//#endregion
|
|
9514
9515
|
export { subscriptionsScreenPropertySchema as n, SubscriptionsScreen as t };
|
|
9515
9516
|
|
|
9516
|
-
//# sourceMappingURL=SubscriptionsScreen-
|
|
9517
|
+
//# sourceMappingURL=SubscriptionsScreen-pOQVeYsv.mjs.map
|