@fluid-app/portal-sdk 0.1.105 → 0.1.106
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/{ShopScreen-D1-TjlDV.mjs → ShopScreen-BwNZxqnT.mjs} +18 -1
- package/dist/{ShopScreen-D1-TjlDV.mjs.map → ShopScreen-BwNZxqnT.mjs.map} +1 -1
- package/dist/{ShopScreen-56tH1PoX.cjs → ShopScreen-Cbv-zrHK.cjs} +18 -1
- package/dist/{ShopScreen-56tH1PoX.cjs.map → ShopScreen-Cbv-zrHK.cjs.map} +1 -1
- package/dist/{ShopScreen-Xa2wyDe4.cjs → ShopScreen-M2hCxrwQ.cjs} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -3
- package/package.json +13 -13
|
@@ -1759,6 +1759,23 @@ function ShopScreen({ background, textColor, accentColor, padding, borderRadius,
|
|
|
1759
1759
|
className: "flex items-center gap-4",
|
|
1760
1760
|
children: /* @__PURE__ */ jsx(CartButton, {})
|
|
1761
1761
|
}), []));
|
|
1762
|
+
useEffect(() => {
|
|
1763
|
+
if (!countryCode) return;
|
|
1764
|
+
const sdk = () => window.FairShareSDK;
|
|
1765
|
+
if (sdk()) {
|
|
1766
|
+
sdk().updateLocaleSettings({ country: countryCode });
|
|
1767
|
+
return;
|
|
1768
|
+
}
|
|
1769
|
+
let attempts = 0;
|
|
1770
|
+
const id = setInterval(() => {
|
|
1771
|
+
attempts++;
|
|
1772
|
+
if (sdk()) {
|
|
1773
|
+
sdk().updateLocaleSettings({ country: countryCode });
|
|
1774
|
+
clearInterval(id);
|
|
1775
|
+
} else if (attempts >= 50) clearInterval(id);
|
|
1776
|
+
}, 100);
|
|
1777
|
+
return () => clearInterval(id);
|
|
1778
|
+
}, [countryCode]);
|
|
1762
1779
|
const productId = currentSlug.split("/")[1] ?? null;
|
|
1763
1780
|
return /* @__PURE__ */ jsx("div", {
|
|
1764
1781
|
...divProps,
|
|
@@ -1795,4 +1812,4 @@ const shopScreenPropertySchema = {
|
|
|
1795
1812
|
//#endregion
|
|
1796
1813
|
export { ShopScreen_exports as n, shopScreenPropertySchema as r, ShopScreen as t };
|
|
1797
1814
|
|
|
1798
|
-
//# sourceMappingURL=ShopScreen-
|
|
1815
|
+
//# sourceMappingURL=ShopScreen-BwNZxqnT.mjs.map
|