@betterstore/react 0.3.9 → 0.3.10

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,11 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.10
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fix
8
+
3
9
  ## 0.3.9
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -35776,11 +35776,9 @@ function CheckoutSummary({ appliedDiscounts, lineItems, shipping, tax, currency,
35776
35776
  React.createElement("div", { className: "absolute -top-2 -right-2 w-6 h-6 bg-primary rounded-full flex items-center text-background justify-center text-sm" }, item.quantity)),
35777
35777
  React.createElement("div", { className: "ml-4 flex-1" },
35778
35778
  React.createElement("h3", { className: "text-lg font-medium" }, (_e = item.productData) === null || _e === void 0 ? void 0 : _e.title),
35779
- React.createElement("p", { className: "text-muted-foreground text-ellipsis line-clamp-1 md:max-w-[75%] text-sm" }, item.variantOptions.map((option) => (React.createElement("span", { key: option.name },
35780
- option.name,
35781
- ": ",
35782
- option.value,
35783
- " "))))),
35779
+ React.createElement("p", { className: "text-muted-foreground text-ellipsis line-clamp-1 md:max-w-[75%] text-sm" }, item.variantOptions
35780
+ .map((option) => `${option.name}: ${option.value}`)
35781
+ .join(", "))),
35784
35782
  React.createElement("div", { className: "text-right" }, isDiscounted ? (React.createElement("div", { className: "flex flex-col" },
35785
35783
  React.createElement("p", { className: "text-sm font-medium -mb-0.5 line-through text-muted-foreground" }, storeHelpers.formatPrice((_f = productItem === null || productItem === void 0 ? void 0 : productItem.priceInCents) !== null && _f !== void 0 ? _f : 0, currency, exchangeRate)),
35786
35784
  React.createElement("p", { className: "text-lg font-medium" }, discountedPrice <= 0
package/dist/index.mjs CHANGED
@@ -35753,11 +35753,9 @@ function CheckoutSummary({ appliedDiscounts, lineItems, shipping, tax, currency,
35753
35753
  React__default.createElement("div", { className: "absolute -top-2 -right-2 w-6 h-6 bg-primary rounded-full flex items-center text-background justify-center text-sm" }, item.quantity)),
35754
35754
  React__default.createElement("div", { className: "ml-4 flex-1" },
35755
35755
  React__default.createElement("h3", { className: "text-lg font-medium" }, (_e = item.productData) === null || _e === void 0 ? void 0 : _e.title),
35756
- React__default.createElement("p", { className: "text-muted-foreground text-ellipsis line-clamp-1 md:max-w-[75%] text-sm" }, item.variantOptions.map((option) => (React__default.createElement("span", { key: option.name },
35757
- option.name,
35758
- ": ",
35759
- option.value,
35760
- " "))))),
35756
+ React__default.createElement("p", { className: "text-muted-foreground text-ellipsis line-clamp-1 md:max-w-[75%] text-sm" }, item.variantOptions
35757
+ .map((option) => `${option.name}: ${option.value}`)
35758
+ .join(", "))),
35761
35759
  React__default.createElement("div", { className: "text-right" }, isDiscounted ? (React__default.createElement("div", { className: "flex flex-col" },
35762
35760
  React__default.createElement("p", { className: "text-sm font-medium -mb-0.5 line-through text-muted-foreground" }, storeHelpers.formatPrice((_f = productItem === null || productItem === void 0 ? void 0 : productItem.priceInCents) !== null && _f !== void 0 ? _f : 0, currency, exchangeRate)),
35763
35761
  React__default.createElement("p", { className: "text-lg font-medium" }, discountedPrice <= 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/react",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {