@fluid-app/portal-sdk 0.1.705 → 0.1.706
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/{ContactsScreen-GI0QB5QP.mjs → ContactsScreen-Cre2lA8y.mjs} +1 -0
- package/dist/{MessagingScreen-BwaiU8I-.mjs → MessagingScreen-DjABjJ_2.mjs} +1 -0
- package/dist/{MySiteScreen-kbns_7BH.mjs → MySiteScreen-G8X_qw_D.mjs} +1 -0
- package/dist/{OrdersScreen-BcgLbHiG.mjs → OrdersScreen-B7iqzG6x.mjs} +1 -0
- package/dist/{ProfileScreen-B1VI3mOv.mjs → ProfileScreen-B134rW0O.mjs} +1 -0
- package/dist/{ShareablesScreen-CfsD3lsC.mjs → ShareablesScreen-CnAomjO9.mjs} +1 -0
- package/dist/{ShopScreen-CFiIRrBI.cjs → ShopScreen-Bg11Pzqj.cjs} +16 -3
- package/dist/{ShopScreen-CFiIRrBI.cjs.map → ShopScreen-Bg11Pzqj.cjs.map} +1 -1
- package/dist/{ShopScreen-Cu174AqD.mjs → ShopScreen-CGy-H0hl.mjs} +2 -1
- package/dist/{ShopScreen-CKf7BcYe.cjs → ShopScreen-DuiV5D9p.cjs} +1 -1
- package/dist/{ShopScreen-xKZmcAPv.mjs → ShopScreen-DwgCHg3y.mjs} +16 -3
- package/dist/{ShopScreen-xKZmcAPv.mjs.map → ShopScreen-DwgCHg3y.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-Cmd62x7H.mjs → SubscriptionsScreen-Cg_pCZFm.mjs} +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +17 -17
- package/dist/utils/build-remote-widget-plugin-manifests.mjs +1 -0
- package/dist/utils/build-remote-widget-plugin-manifests.mjs.map +1 -1
- package/dist/utils/build-widget-registry.mjs +1 -0
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import "./translation-api-context-factory-C0EbePkl.mjs";
|
|
|
9
9
|
import "./task-composer-form-FDgYq9Wy.mjs";
|
|
10
10
|
import "./MobileActionSheet-BX46ka_3.mjs";
|
|
11
11
|
import "./ResponsiveDialog-BQUSJK28.mjs";
|
|
12
|
+
import "./AppNavigationContext-1YW3Do-w.mjs";
|
|
12
13
|
import "./sidebar-Bcsk7lSB.mjs";
|
|
13
14
|
import "./ScreenHeaderContext-B1sDg6tY.mjs";
|
|
14
15
|
import "./dist-DfW-EeJM.mjs";
|
|
@@ -66,6 +66,7 @@ import "./ShopWidget-BFmIcCE2.mjs";
|
|
|
66
66
|
import "./translation-adapter-BdA2vQP1.mjs";
|
|
67
67
|
import "./translation-adapter-D_lfnopC.mjs";
|
|
68
68
|
import "./translation-adapter-CSRhDfJE.mjs";
|
|
69
|
+
import "./AppNavigationContext-1YW3Do-w.mjs";
|
|
69
70
|
import "./sidebar-Bcsk7lSB.mjs";
|
|
70
71
|
import { n as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-DcXPirhF.mjs";
|
|
71
72
|
import "./ScreenHeaderContext-B1sDg6tY.mjs";
|
|
@@ -6,6 +6,7 @@ import "./static-dict-adapter-NEMVT_Ws.mjs";
|
|
|
6
6
|
import "./translation-api-context-factory-C0EbePkl.mjs";
|
|
7
7
|
import "./ResponsiveDialog-BQUSJK28.mjs";
|
|
8
8
|
import "./translation-adapter-CSRhDfJE.mjs";
|
|
9
|
+
import "./AppNavigationContext-1YW3Do-w.mjs";
|
|
9
10
|
import "./sidebar-Bcsk7lSB.mjs";
|
|
10
11
|
import "./ScreenHeaderContext-B1sDg6tY.mjs";
|
|
11
12
|
import { n as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-CjCBJ0aL.mjs";
|
|
@@ -66,6 +66,7 @@ import "./ShopWidget-BFmIcCE2.mjs";
|
|
|
66
66
|
import "./translation-adapter-BdA2vQP1.mjs";
|
|
67
67
|
import "./translation-adapter-D_lfnopC.mjs";
|
|
68
68
|
import "./translation-adapter-CSRhDfJE.mjs";
|
|
69
|
+
import "./AppNavigationContext-1YW3Do-w.mjs";
|
|
69
70
|
import "./ScreenHeaderContext-B1sDg6tY.mjs";
|
|
70
71
|
import { n as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-CvmYNngV.mjs";
|
|
71
72
|
export { OrdersScreen, ordersScreenPropertySchema };
|
|
@@ -66,6 +66,7 @@ import "./ShopWidget-BFmIcCE2.mjs";
|
|
|
66
66
|
import "./translation-adapter-BdA2vQP1.mjs";
|
|
67
67
|
import "./translation-adapter-D_lfnopC.mjs";
|
|
68
68
|
import "./translation-adapter-CSRhDfJE.mjs";
|
|
69
|
+
import "./AppNavigationContext-1YW3Do-w.mjs";
|
|
69
70
|
import "./sidebar-Bcsk7lSB.mjs";
|
|
70
71
|
import "./ScreenHeaderContext-B1sDg6tY.mjs";
|
|
71
72
|
import "./use-portal-card-add-3ds-flow-BxoozcEQ.mjs";
|
|
@@ -13,6 +13,7 @@ import "./purify.es-DuSaeDMW.mjs";
|
|
|
13
13
|
import "./MobileActionSheet-BX46ka_3.mjs";
|
|
14
14
|
import "./ResponsiveDialog-BQUSJK28.mjs";
|
|
15
15
|
import "./translation-adapter-BdA2vQP1.mjs";
|
|
16
|
+
import "./AppNavigationContext-1YW3Do-w.mjs";
|
|
16
17
|
import "./ScreenHeaderContext-B1sDg6tY.mjs";
|
|
17
18
|
import "./dist-DfW-EeJM.mjs";
|
|
18
19
|
import "./es-CN5svoYN.mjs";
|
|
@@ -1439,6 +1439,18 @@ function findVariantBySelections(variants, selections) {
|
|
|
1439
1439
|
return matchingVariants.find((v) => v.is_master !== true) ?? matchingVariants[0];
|
|
1440
1440
|
}
|
|
1441
1441
|
/**
|
|
1442
|
+
* Whether some variant carries `valueId` for `optionId` together with every
|
|
1443
|
+
* other current selection. A value that does not combine is dimmed but stays
|
|
1444
|
+
* pickable: where options move together (30 servings in 1 bottle, 90 in 3),
|
|
1445
|
+
* the variant is reached only through a combination that does not exist.
|
|
1446
|
+
*/
|
|
1447
|
+
function isOptionValueCombinable(variants, selections, optionId, valueId) {
|
|
1448
|
+
return findVariantBySelections(variants, {
|
|
1449
|
+
...selections,
|
|
1450
|
+
[optionId]: valueId
|
|
1451
|
+
}) != null;
|
|
1452
|
+
}
|
|
1453
|
+
/**
|
|
1442
1454
|
* Map BFF flat subscription plans to the legacy ProductSubscriptionPlan shape
|
|
1443
1455
|
* expected by the PurchaseOptions component.
|
|
1444
1456
|
*/
|
|
@@ -1504,8 +1516,8 @@ function ProductDetail({ companyLogoUrl, canShowVolume = false, productId, rende
|
|
|
1504
1516
|
]);
|
|
1505
1517
|
const selectedVariant = (0, react.useMemo)(() => {
|
|
1506
1518
|
if (showVariantChoices) return variants.find((v) => v.id === selectedVariantId) ?? masterVariant;
|
|
1507
|
-
if (optionGroups.length === 0) return masterVariant;
|
|
1508
|
-
return findVariantBySelections(variants, selections)
|
|
1519
|
+
if (optionGroups.length === 0 || Object.keys(selections).length === 0) return masterVariant;
|
|
1520
|
+
return findVariantBySelections(variants, selections);
|
|
1509
1521
|
}, [
|
|
1510
1522
|
variants,
|
|
1511
1523
|
optionGroups,
|
|
@@ -1809,6 +1821,7 @@ function ProductDetail({ companyLogoUrl, canShowVolume = false, productId, rende
|
|
|
1809
1821
|
className: "max-h-60",
|
|
1810
1822
|
children: group.values.map((v) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_src.SelectItem, {
|
|
1811
1823
|
value: String(v.id),
|
|
1824
|
+
className: isOptionValueCombinable(variants, selections, group.optionId, v.id) ? void 0 : "opacity-50",
|
|
1812
1825
|
children: v.name
|
|
1813
1826
|
}, v.id))
|
|
1814
1827
|
})]
|
|
@@ -1993,4 +2006,4 @@ Object.defineProperty(exports, "shopScreenPropertySchema", {
|
|
|
1993
2006
|
}
|
|
1994
2007
|
});
|
|
1995
2008
|
|
|
1996
|
-
//# sourceMappingURL=ShopScreen-
|
|
2009
|
+
//# sourceMappingURL=ShopScreen-Bg11Pzqj.cjs.map
|