@betterstore/react 0.3.48 → 0.3.50
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/CHANGELOG.md +12 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -560,7 +560,7 @@ const IframeWrapper = ({ children, iframeRef, }) => {
|
|
|
560
560
|
height: "100%",
|
|
561
561
|
border: "none",
|
|
562
562
|
minHeight: "100vh",
|
|
563
|
-
}, sandbox: "allow-same-origin allow-scripts" }),
|
|
563
|
+
}, sandbox: "allow-same-origin allow-scripts allow-forms" }),
|
|
564
564
|
iframeBody && ReactDOM.createPortal(children, iframeBody)));
|
|
565
565
|
};
|
|
566
566
|
|
|
@@ -11967,7 +11967,7 @@ function CheckoutSummary({ appliedDiscounts, lineItems, shipping, tax, currency,
|
|
|
11967
11967
|
React.createElement("p", { className: "text-sm font-medium -mb-0.5 line-through text-muted-foreground" }, storeHelpers.formatPrice((_e = finalItem === null || finalItem === void 0 ? void 0 : finalItem.priceInCents) !== null && _e !== void 0 ? _e : 0, currency, exchangeRate)),
|
|
11968
11968
|
React.createElement("p", { className: "text-lg font-medium" }, discountedPrice <= 0
|
|
11969
11969
|
? t("CheckoutEmbed.Summary.free")
|
|
11970
|
-
: storeHelpers.formatPrice(discountedPrice, currency, exchangeRate)))) : (React.createElement("p", { className: "text-
|
|
11970
|
+
: storeHelpers.formatPrice(discountedPrice, currency, exchangeRate)))) : (React.createElement("p", { className: "text-base font-medium" }, storeHelpers.formatPrice((_f = finalItem === null || finalItem === void 0 ? void 0 : finalItem.priceInCents) !== null && _f !== void 0 ? _f : 0, currency, exchangeRate))))));
|
|
11971
11971
|
}))));
|
|
11972
11972
|
}
|
|
11973
11973
|
function DiscountItem({ id, removeDiscount, label, canRemove, }) {
|
package/dist/index.mjs
CHANGED
|
@@ -537,7 +537,7 @@ const IframeWrapper = ({ children, iframeRef, }) => {
|
|
|
537
537
|
height: "100%",
|
|
538
538
|
border: "none",
|
|
539
539
|
minHeight: "100vh",
|
|
540
|
-
}, sandbox: "allow-same-origin allow-scripts" }),
|
|
540
|
+
}, sandbox: "allow-same-origin allow-scripts allow-forms" }),
|
|
541
541
|
iframeBody && ReactDOM.createPortal(children, iframeBody)));
|
|
542
542
|
};
|
|
543
543
|
|
|
@@ -11944,7 +11944,7 @@ function CheckoutSummary({ appliedDiscounts, lineItems, shipping, tax, currency,
|
|
|
11944
11944
|
React__default.createElement("p", { className: "text-sm font-medium -mb-0.5 line-through text-muted-foreground" }, storeHelpers.formatPrice((_e = finalItem === null || finalItem === void 0 ? void 0 : finalItem.priceInCents) !== null && _e !== void 0 ? _e : 0, currency, exchangeRate)),
|
|
11945
11945
|
React__default.createElement("p", { className: "text-lg font-medium" }, discountedPrice <= 0
|
|
11946
11946
|
? t("CheckoutEmbed.Summary.free")
|
|
11947
|
-
: storeHelpers.formatPrice(discountedPrice, currency, exchangeRate)))) : (React__default.createElement("p", { className: "text-
|
|
11947
|
+
: storeHelpers.formatPrice(discountedPrice, currency, exchangeRate)))) : (React__default.createElement("p", { className: "text-base font-medium" }, storeHelpers.formatPrice((_f = finalItem === null || finalItem === void 0 ? void 0 : finalItem.priceInCents) !== null && _f !== void 0 ? _f : 0, currency, exchangeRate))))));
|
|
11948
11948
|
}))));
|
|
11949
11949
|
}
|
|
11950
11950
|
function DiscountItem({ id, removeDiscount, label, canRemove, }) {
|