@propeller-commerce/propeller-v2-react-ui 0.19.1 → 0.20.0
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 +107 -0
- package/dist/index.cjs +67 -78
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -27
- package/dist/index.d.ts +46 -27
- package/dist/index.js +68 -79
- package/dist/index.js.map +1 -1
- package/dist/pure.cjs +3 -2
- package/dist/pure.cjs.map +1 -1
- package/dist/pure.d.cts +6 -4
- package/dist/pure.d.ts +6 -4
- package/dist/pure.js +3 -2
- package/dist/pure.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +6 -2
- package/dist/shared.d.cts +0 -24
- package/dist/shared.d.ts +0 -24
package/dist/pure.d.cts
CHANGED
|
@@ -484,9 +484,10 @@ declare function ProductBulkPrices(props: ProductBulkPricesProps): React.JSX.Ele
|
|
|
484
484
|
interface ProductDownloadsProps {
|
|
485
485
|
/**
|
|
486
486
|
* Media documents for the product.
|
|
487
|
-
* Obtain from `product.media
|
|
487
|
+
* Obtain from `product.media?.documents`. The API answers `null` rather than
|
|
488
|
+
* an empty page when a product has none, so this may be absent.
|
|
488
489
|
*/
|
|
489
|
-
downloads
|
|
490
|
+
downloads?: PaginatedMediaDocumentResponse | null;
|
|
490
491
|
/**
|
|
491
492
|
* Language code used to resolve the correct localised document URL and label.
|
|
492
493
|
*/
|
|
@@ -606,9 +607,10 @@ declare function ProductShortDescription(props: ProductShortDescriptionProps): R
|
|
|
606
607
|
interface ProductVideosProps {
|
|
607
608
|
/**
|
|
608
609
|
* Media videos for the product.
|
|
609
|
-
* Obtain from `product.media
|
|
610
|
+
* Obtain from `product.media?.videos`. The API answers `null` rather than an
|
|
611
|
+
* empty page when a product has none, so this may be absent.
|
|
610
612
|
*/
|
|
611
|
-
videos
|
|
613
|
+
videos?: PaginatedMediaVideoResponse | null;
|
|
612
614
|
/**
|
|
613
615
|
* Language code used to resolve the correct localised video URI.
|
|
614
616
|
*/
|
package/dist/pure.d.ts
CHANGED
|
@@ -484,9 +484,10 @@ declare function ProductBulkPrices(props: ProductBulkPricesProps): React.JSX.Ele
|
|
|
484
484
|
interface ProductDownloadsProps {
|
|
485
485
|
/**
|
|
486
486
|
* Media documents for the product.
|
|
487
|
-
* Obtain from `product.media
|
|
487
|
+
* Obtain from `product.media?.documents`. The API answers `null` rather than
|
|
488
|
+
* an empty page when a product has none, so this may be absent.
|
|
488
489
|
*/
|
|
489
|
-
downloads
|
|
490
|
+
downloads?: PaginatedMediaDocumentResponse | null;
|
|
490
491
|
/**
|
|
491
492
|
* Language code used to resolve the correct localised document URL and label.
|
|
492
493
|
*/
|
|
@@ -606,9 +607,10 @@ declare function ProductShortDescription(props: ProductShortDescriptionProps): R
|
|
|
606
607
|
interface ProductVideosProps {
|
|
607
608
|
/**
|
|
608
609
|
* Media videos for the product.
|
|
609
|
-
* Obtain from `product.media
|
|
610
|
+
* Obtain from `product.media?.videos`. The API answers `null` rather than an
|
|
611
|
+
* empty page when a product has none, so this may be absent.
|
|
610
612
|
*/
|
|
611
|
-
videos
|
|
613
|
+
videos?: PaginatedMediaVideoResponse | null;
|
|
612
614
|
/**
|
|
613
615
|
* Language code used to resolve the correct localised video URI.
|
|
614
616
|
*/
|
package/dist/pure.js
CHANGED
|
@@ -150,7 +150,7 @@ function CategoryShortDescription(props) {
|
|
|
150
150
|
return /* @__PURE__ */ jsx(Fragment, { children: !!html ? /* @__PURE__ */ jsx("div", { className: cn(`propeller-category-short-description mb-6 ${props.className || ""}`), children: /* @__PURE__ */ jsx(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
153
|
-
className: "propeller-category-short-description__content
|
|
153
|
+
className: "propeller-category-short-description__content text-muted-foreground",
|
|
154
154
|
dangerouslySetInnerHTML: { __html: html }
|
|
155
155
|
}
|
|
156
156
|
) }) : null });
|
|
@@ -233,6 +233,7 @@ function ItemStock(props) {
|
|
|
233
233
|
getTotalQuantity() > 0 ? /* @__PURE__ */ jsxs("span", { className: "propeller-item-stock__count opacity-70", children: [
|
|
234
234
|
"(",
|
|
235
235
|
getTotalQuantity(),
|
|
236
|
+
" ",
|
|
236
237
|
getLabel(props.labels, "pieces", "pcs"),
|
|
237
238
|
")"
|
|
238
239
|
] }) : null
|
|
@@ -860,7 +861,7 @@ function ProductShortDescription(props) {
|
|
|
860
861
|
"div",
|
|
861
862
|
{
|
|
862
863
|
dangerouslySetInnerHTML: { __html: html },
|
|
863
|
-
className: cn(`propeller-product-short-description
|
|
864
|
+
className: cn(`propeller-product-short-description text-muted-foreground ${props.className || ""}`)
|
|
864
865
|
}
|
|
865
866
|
) : null });
|
|
866
867
|
}
|