@fluid-app/portal-sdk 0.1.394 → 0.1.395
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-D73rtFkC.mjs → SubscriptionsScreen-BN2n4Elu.mjs} +23 -10
- package/dist/{SubscriptionsScreen-D73rtFkC.mjs.map → SubscriptionsScreen-BN2n4Elu.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-O2fF6ZPV.mjs → SubscriptionsScreen-Bop6Bans.mjs} +1 -1
- package/dist/{SubscriptionsScreen-DUZE2Jur.cjs → SubscriptionsScreen-DBL7_xI5.cjs} +22 -9
- package/dist/SubscriptionsScreen-DBL7_xI5.cjs.map +1 -0
- package/dist/{SubscriptionsScreen-DDzvb-kH.cjs → SubscriptionsScreen-DhlAqLG7.cjs} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +14 -14
- package/dist/SubscriptionsScreen-DUZE2Jur.cjs.map +0 -1
|
@@ -33,7 +33,7 @@ import "./MediaRenderer-BydUiy9x.mjs";
|
|
|
33
33
|
import "./CarouselWidget-CFqgy5uW.mjs";
|
|
34
34
|
import "./CatchUpWidget-B_hq7S18.mjs";
|
|
35
35
|
import "./src-DX_SrMKJ.mjs";
|
|
36
|
-
import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-
|
|
36
|
+
import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-BN2n4Elu.mjs";
|
|
37
37
|
import "./ChartWidget-Bf7dLwLt.mjs";
|
|
38
38
|
import "./ContainerWidget-LbcYW_t6.mjs";
|
|
39
39
|
import "./EmbedWidget-OUVO-0QR.mjs";
|
|
@@ -6012,15 +6012,27 @@ function QuantityInput({ inputId, quantity, maxQuantity, isUpdatingQuantity, onQ
|
|
|
6012
6012
|
]
|
|
6013
6013
|
});
|
|
6014
6014
|
}
|
|
6015
|
-
/**
|
|
6016
|
-
|
|
6015
|
+
/**
|
|
6016
|
+
* One itemized discount row in the pricing summary: label, optional code
|
|
6017
|
+
* pill(s), and a negative amount. Codes render as pills on the line rather than
|
|
6018
|
+
* baked into the label text. `code` accepts a single code or a list so stacked
|
|
6019
|
+
* codes are supported if the pricing model ever exposes more than one.
|
|
6020
|
+
*/
|
|
6021
|
+
function DiscountLine({ label, amount, code }) {
|
|
6022
|
+
const codes = (Array.isArray(code) ? code : code ? [code] : []).filter(Boolean);
|
|
6017
6023
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6018
|
-
className: "mt-2 flex justify-between text-sm",
|
|
6019
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
6020
|
-
className: "
|
|
6021
|
-
children:
|
|
6024
|
+
className: "mt-2 flex items-start justify-between gap-2 text-sm",
|
|
6025
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6026
|
+
className: "flex flex-wrap items-center gap-x-2 gap-y-1",
|
|
6027
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
6028
|
+
className: "text-muted-foreground text-sm font-medium",
|
|
6029
|
+
children: label
|
|
6030
|
+
}), codes.map((c, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_src.Badge, {
|
|
6031
|
+
variant: "secondary",
|
|
6032
|
+
children: c
|
|
6033
|
+
}, `${c}-${i}`))]
|
|
6022
6034
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
6023
|
-
className: "text-muted-foreground text-sm font-medium",
|
|
6035
|
+
className: "text-muted-foreground text-sm font-medium whitespace-nowrap",
|
|
6024
6036
|
children: ["-", amount]
|
|
6025
6037
|
})]
|
|
6026
6038
|
});
|
|
@@ -6177,7 +6189,8 @@ function SubscriptionItemsSection({ subscription, displayQuantity, displayNextBi
|
|
|
6177
6189
|
amount: formatCurrency(pricing.legacyDiscountUnit * quantity)
|
|
6178
6190
|
}),
|
|
6179
6191
|
pricing.attachedDiscountUnit > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DiscountLine, {
|
|
6180
|
-
label:
|
|
6192
|
+
label: t("discount"),
|
|
6193
|
+
code: pricing.attachedDiscountCode,
|
|
6181
6194
|
amount: formatCurrency(pricing.attachedDiscountUnit * quantity)
|
|
6182
6195
|
})
|
|
6183
6196
|
] }),
|
|
@@ -7740,4 +7753,4 @@ Object.defineProperty(exports, "subscriptionsScreenPropertySchema", {
|
|
|
7740
7753
|
}
|
|
7741
7754
|
});
|
|
7742
7755
|
|
|
7743
|
-
//# sourceMappingURL=SubscriptionsScreen-
|
|
7756
|
+
//# sourceMappingURL=SubscriptionsScreen-DBL7_xI5.cjs.map
|