@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.50
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes
8
+
9
+ ## 0.3.49
10
+
11
+ ### Patch Changes
12
+
13
+ - bug fixes
14
+
3
15
  ## 0.3.48
4
16
 
5
17
  ### Patch Changes
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-lg font-medium" }, storeHelpers.formatPrice((_f = finalItem === null || finalItem === void 0 ? void 0 : finalItem.priceInCents) !== null && _f !== void 0 ? _f : 0, currency, exchangeRate))))));
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-lg font-medium" }, storeHelpers.formatPrice((_f = finalItem === null || finalItem === void 0 ? void 0 : finalItem.priceInCents) !== null && _f !== void 0 ? _f : 0, currency, exchangeRate))))));
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, }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/react",
3
- "version": "0.3.48",
3
+ "version": "0.3.50",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {