@ikas/bp-storefront 0.15.0 → 0.17.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/dist/{storefront/src/analytics → analytics}/analytics-functions/addToCart.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/analytics-functions/completeRegistration.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/analytics-functions/contactForm.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/analytics-functions/helpers.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/analytics-functions/pageView.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/analytics-functions/productView.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/analytics-functions/removeFromCart.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/analytics-functions/viewBrand.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/analytics-functions/viewCart.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/analytics-functions/viewCategory.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/analytics-functions/viewListing.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/analytics-functions/viewSearchResults.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/analytics-functions/viewStorefrontPopup.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/facebook/addToCart.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/facebook/productView.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/facebook/purchase.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/facebook/viewCart.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/google-analytics/addToCart.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/google-analytics/productView.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/google-analytics/removeFromCart.d.ts +1 -1
- package/dist/analytics/google-analytics/viewCart.d.ts +2 -0
- package/dist/{storefront/src/analytics → analytics}/google-tag-manager/addToCart.d.ts +2 -2
- package/dist/{storefront/src/analytics → analytics}/google-tag-manager/completeRegistration.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/google-tag-manager/productView.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/google-tag-manager/removeFromCart.d.ts +2 -2
- package/dist/{storefront/src/analytics → analytics}/google-tag-manager/viewCart.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/google-tag-manager/viewCategory.d.ts +3 -3
- package/dist/{storefront/src/analytics → analytics}/ikas/analytics.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/tiktok/addToCart.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/tiktok/productView.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/tiktok/viewCategory.d.ts +1 -1
- package/dist/{storefront/src/analytics → analytics}/utils.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/api/blog/index.d.ts +5 -5
- package/dist/{storefront/src/functions → functions}/api/brand/index.d.ts +3 -3
- package/dist/{storefront/src/functions → functions}/api/cart/index.d.ts +9 -9
- package/dist/{storefront/src/functions → functions}/api/category/index.d.ts +3 -3
- package/dist/functions/api/checkout/index.d.ts +32 -0
- package/dist/functions/api/customer/index.d.ts +204 -0
- package/dist/{storefront/src/functions → functions}/api/file/index.d.ts +3 -3
- package/dist/functions/api/html-meta-data/index.d.ts +4 -0
- package/dist/{storefront/src/functions → functions}/api/location/index.d.ts +7 -7
- package/dist/{storefront/src/functions → functions}/api/loyalty/index.d.ts +7 -7
- package/dist/functions/api/masterpass/index.d.ts +2 -0
- package/dist/functions/api/merchant/index.d.ts +4 -0
- package/dist/functions/api/popup/index.d.ts +4 -0
- package/dist/{storefront/src/functions → functions}/api/product/index.d.ts +21 -21
- package/dist/{storefront/src/functions → functions}/api/raffle/index.d.ts +5 -5
- package/dist/functions/api/storefront/index.d.ts +3 -0
- package/dist/{storefront/src/functions → functions}/models/attribute-detail/index.d.ts +2 -2
- package/dist/{storefront/src/functions → functions}/models/attribute-list/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/base/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/blog/category/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/blog/category/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/blog/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/blog/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/blog-category-list/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/blog-category-list/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/blog-list/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/blog-list/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/brand/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/brand/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/brand-list/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/brand-list/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/campaign-offer/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/category/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/category/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/category/path-item/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/category/path-item/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/category-list/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/category-list/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/checkout/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/country/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/customer/address/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/customer/attribute/index.d.ts +3 -3
- package/dist/{storefront/src/functions → functions}/models/customer/attribute/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/customer/index.d.ts +2 -2
- package/dist/{storefront/src/functions → functions}/models/customer/review/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/customer/review/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/customer-review-list/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/customer-review-list/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/customer-review-summary-list/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/customer-review-summary-list/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/filter-category/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/html-meta-data/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/ikas-theme/date-picker.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/image/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/merchant-settings/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/order/address/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/order/adjustment/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/order/gift-package/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/order/index.d.ts +7 -7
- package/dist/{storefront/src/functions → functions}/models/order/line-item/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/order/line-item/option/value/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/order/line-item/variant/bundle-product/bundle-variant/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/order/line-item/variant/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/order/line-item/variant/value/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/order/package/index.d.ts +2 -2
- package/dist/{storefront/src/functions → functions}/models/order/transaction/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/payment-gateway/index.d.ts +2 -2
- package/dist/{storefront/src/functions → functions}/models/payment-gateway/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/attribute/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/attribute-value/index.d.ts +2 -2
- package/dist/{storefront/src/functions → functions}/models/product/attribute-value/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/campaign-offer/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/campaign-offer/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/campaign-offer/product/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/filter/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/filter/settings/init.d.ts +2 -2
- package/dist/{storefront/src/functions → functions}/models/product/group/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/image/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/index.d.ts +47 -47
- package/dist/{storefront/src/functions → functions}/models/product/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/option-set/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/option-set/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/option-set/option/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/option-set/option/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/stock-location/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/variant/index.d.ts +34 -34
- package/dist/{storefront/src/functions → functions}/models/product/variant/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/variant/price/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product/variant-type/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/product-list/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/raffle/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/raffle/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/state/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/validator/account-info/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/validator/address/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/validator/back-in-stock-notification/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/validator/contact-form/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/validator/coupon-code-form/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/validator/customer-review/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/validator/forgot-password/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/validator/login/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/validator/newsletter-subscription/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/validator/order-tracking/index.d.ts +2 -2
- package/dist/{storefront/src/functions → functions}/models/validator/recover-password/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/validator/register/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/validator/sms-login/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/validator/verify-phone-number/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/variant-type/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/variant-type/init.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/models/variant-type/variant-value/index.d.ts +1 -1
- package/dist/{storefront/src/functions → functions}/stores/base/index.d.ts +2 -2
- package/dist/{storefront/src/functions → functions}/stores/cart/index.d.ts +9 -9
- package/dist/{storefront/src/functions → functions}/stores/customer/index.d.ts +9 -9
- package/dist/{storefront/src/index.d.ts → index.d.ts} +4 -4
- package/dist/{storefront/src/router → router}/index.d.ts +1 -1
- package/dist/{storefront/src/stores → stores}/base/index.d.ts +1 -1
- package/dist/{storefront/src/stores → stores}/cart/index.d.ts +1 -1
- package/dist/{storefront/src/stores → stores}/customer/index.d.ts +3 -3
- package/dist/{storefront/src/theme → theme}/styles/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/storefront/src/analytics/google-analytics/viewCart.d.ts +0 -2
- package/dist/storefront/src/functions/api/checkout/index.d.ts +0 -32
- package/dist/storefront/src/functions/api/customer/index.d.ts +0 -204
- package/dist/storefront/src/functions/api/html-meta-data/index.d.ts +0 -4
- package/dist/storefront/src/functions/api/masterpass/index.d.ts +0 -2
- package/dist/storefront/src/functions/api/merchant/index.d.ts +0 -4
- package/dist/storefront/src/functions/api/popup/index.d.ts +0 -4
- package/dist/storefront/src/functions/api/storefront/index.d.ts +0 -3
- /package/dist/{storefront/src/analytics → analytics}/analytics-functions/addToWishlist.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/analytics-functions/createEmailSubscription.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/analytics-functions/customerLogin.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/analytics-functions/customerLogout.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/analytics-functions/customerVisit.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/analytics-functions/index.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/analytics-functions/search.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/analytics.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/events.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/facebook/addToWishlist.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/facebook/completeRegistration.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/facebook/contactForm.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/facebook/pageView.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/facebook/search.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/facebook/utils.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/facebook/viewCategory.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/google-analytics/search.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/google-analytics/utils.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/google-tag-manager/customerLogin.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/google-tag-manager/customerLogout.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/google-tag-manager/customerVisit.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/google-tag-manager/disableHTML.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/google-tag-manager/pageView.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/google-tag-manager/search.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/google-tag-manager/utils.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/tiktok/addToWishlist.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/tiktok/completeRegistration.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/tiktok/contactForm.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/tiktok/identify.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/tiktok/pageView.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/tiktok/search.d.ts +0 -0
- /package/dist/{storefront/src/analytics → analytics}/tiktok/utils.d.ts +0 -0
- /package/dist/{storefront/src/externals → externals}/index.d.ts +0 -0
- /package/dist/{storefront/src/functions → functions}/models/index.d.ts +0 -0
- /package/dist/{storefront/src/functions → functions}/models/validator/index.d.ts +0 -0
- /package/dist/{storefront/src/functions → functions}/others/index.d.ts +0 -0
- /package/dist/{storefront/src/functions → functions}/stores/index.d.ts +0 -0
- /package/dist/{storefront/src/i18n → i18n}/index.d.ts +0 -0
- /package/dist/{storefront/src/theme → theme}/infinite-scroller/index.d.ts +0 -0
- /package/dist/{storefront/src/theme → theme}/overlay/index.d.ts +0 -0
- /package/dist/{storefront/src/theme → theme}/slider/index.d.ts +0 -0
- /package/dist/{storefront/src/utils → utils}/blueprint.d.ts +0 -0
- /package/dist/{storefront/src/utils → utils}/currency.d.ts +0 -0
- /package/dist/{storefront/src/utils → utils}/fetch.d.ts +0 -0
- /package/dist/{storefront/src/utils → utils}/helper.d.ts +0 -0
- /package/dist/{storefront/src/utils → utils}/object-wrapper.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasPaymentGateway } from "
|
|
1
|
+
import { IkasPaymentGateway } from "../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Initializes an IkasPaymentGateway by applying locale-specific translations to its name and description, then removing raw translation data.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasProductAttribute } from "
|
|
1
|
+
import { IkasProductAttribute } from "../../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Initializes a product attribute by applying locale-specific translations for name, description, and options, then removes the raw translations data.
|
|
4
4
|
*
|
package/dist/{storefront/src/functions → functions}/models/product/attribute-value/index.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasAttributeTableCellValue, IkasProductAttributeValue } from "
|
|
1
|
+
import { IkasAttributeTableCellValue, IkasProductAttributeValue } from "../../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Parses and returns the table cell values from a product attribute value's JSON string.
|
|
4
4
|
*
|
|
@@ -49,4 +49,4 @@ export declare function getIkasProductAttrributeProductIds(value: IkasProductAtt
|
|
|
49
49
|
* products.forEach(product => console.log(product.name));
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
|
-
export declare function getIkasProductAttributeProducts(value: IkasProductAttributeValue): Promise<import("
|
|
52
|
+
export declare function getIkasProductAttributeProducts(value: IkasProductAttributeValue): Promise<import("../../../../storefront-models/src").IkasProduct[]>;
|
package/dist/{storefront/src/functions → functions}/models/product/attribute-value/init.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasProductAttributeValue } from "
|
|
1
|
+
import { IkasProductAttributeValue } from "../../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Initializes a product attribute value by converting its image IDs into image objects with default non-video flags.
|
|
4
4
|
*
|
package/dist/{storefront/src/functions → functions}/models/product/campaign-offer/index.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasProductOffer } from "
|
|
1
|
+
import { IkasProductOffer } from "../../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Checks whether a product campaign offer has been accepted in the current cart by matching offer and product IDs with a PRODUCT target page type and ACCEPTED status.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasCampaignOffer } from "
|
|
1
|
+
import { IkasCampaignOffer } from "../../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Initializes a campaign offer by delegating initialization of each individual offer product with locale-specific translations.
|
|
4
4
|
*
|
package/dist/{storefront/src/functions → functions}/models/product/campaign-offer/product/init.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasCampaignOfferProduct } from "
|
|
1
|
+
import { IkasCampaignOfferProduct } from "../../../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Initializes a campaign offer product by applying locale-specific translations for title and description, then removes the raw translations data.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasApplicableProductFilterValue, IkasFilterRangeValue, IkasImage, IkasProductFilter, IkasProductFilterDisplayType, IkasProductFilterNumberRangeListOption, IkasProductFilterType } from "
|
|
1
|
+
import { IkasApplicableProductFilterValue, IkasFilterRangeValue, IkasImage, IkasProductFilter, IkasProductFilterDisplayType, IkasProductFilterNumberRangeListOption, IkasProductFilterType } from "../../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Initializes a product filter by resetting all selected states and parsing custom range values.
|
|
4
4
|
*
|
package/dist/{storefront/src/functions → functions}/models/product/filter/settings/init.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasProductFilterSettings } from "
|
|
1
|
+
import { IkasProductFilterSettings } from "../../../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Initializes product filter settings by creating a shallow copy of the provided partial settings data.
|
|
4
4
|
*
|
|
@@ -17,6 +17,6 @@ export declare function initProductFilterSettings(data: Partial<IkasProductFilte
|
|
|
17
17
|
useAndFilter?: (boolean | null) | undefined;
|
|
18
18
|
showCollapsedOnDesktop?: boolean | undefined;
|
|
19
19
|
showCollapsedOnMobile?: boolean | undefined;
|
|
20
|
-
sortType?: import("
|
|
20
|
+
sortType?: import("../../../../../storefront-models/src").IkasProductFilterSortType | undefined;
|
|
21
21
|
customSortedValues?: string[] | null | undefined;
|
|
22
22
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasProductGroup } from "
|
|
1
|
+
import { IkasProductGroup } from "../../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Initializes a product group by applying locale-specific translations to group values and then removing the raw translations data.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasProductImage } from "
|
|
1
|
+
import { IkasProductImage } from "../../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Initializes a product image by converting its image ID into an image object with a video flag, or setting it to null if no image ID exists.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomerReviewForm, IkasBundleProduct, IkasDisplayedProductGroup, IkasDisplayedVariantType, IkasProduct, IkasProductAttributeMap, IkasProductVariant, IkasVariantValue } from "
|
|
1
|
+
import { CustomerReviewForm, IkasBundleProduct, IkasDisplayedProductGroup, IkasDisplayedVariantType, IkasProduct, IkasProductAttributeMap, IkasProductVariant, IkasVariantValue } from "../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Initialize product state on the browser by reading variant selections from URL parameters.
|
|
4
4
|
* Sets the selected variant values based on `vid` query param or variant type slugs in the URL.
|
|
@@ -11,7 +11,7 @@ import { CustomerReviewForm, IkasBundleProduct, IkasDisplayedProductGroup, IkasD
|
|
|
11
11
|
* @example
|
|
12
12
|
* ```typescript
|
|
13
13
|
* import { initProductOnBrowser } from "@ikas/bp-storefront";
|
|
14
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
14
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
15
15
|
*
|
|
16
16
|
* function initProduct(product: IkasProduct) {
|
|
17
17
|
* initProductOnBrowser(product);
|
|
@@ -33,7 +33,7 @@ export declare function initProductOnBrowser(product: IkasProduct): void;
|
|
|
33
33
|
* @example
|
|
34
34
|
* ```typescript
|
|
35
35
|
* import { hasProductVariant } from "@ikas/bp-storefront";
|
|
36
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
36
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
37
37
|
*
|
|
38
38
|
* function ProductCard({ product }: { product: IkasProduct }) {
|
|
39
39
|
* const hasVariants = hasProductVariant(product);
|
|
@@ -59,7 +59,7 @@ export declare function hasProductVariant(product: IkasProduct, showVariantsInGr
|
|
|
59
59
|
* @example
|
|
60
60
|
* ```typescript
|
|
61
61
|
* import { hasProductStock } from "@ikas/bp-storefront";
|
|
62
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
62
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
63
63
|
*
|
|
64
64
|
* function ProductCard({ product }: { product: IkasProduct }) {
|
|
65
65
|
* const inStock = hasProductStock(product);
|
|
@@ -86,7 +86,7 @@ export declare function hasProductStock(product: IkasProduct): boolean;
|
|
|
86
86
|
* @example
|
|
87
87
|
* ```typescript
|
|
88
88
|
* import { hasProductValidOptionValues, addItemToCart, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
89
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
89
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
90
90
|
*
|
|
91
91
|
* async function handleAddToCart(product: IkasProduct) {
|
|
92
92
|
* if (!hasProductValidOptionValues(product)) {
|
|
@@ -117,7 +117,7 @@ export declare function hasProductValidOptionValues(product: IkasProduct): boole
|
|
|
117
117
|
* hasProductVariantStock,
|
|
118
118
|
* getProductVariantFormattedFinalPrice
|
|
119
119
|
* } from "@ikas/bp-storefront";
|
|
120
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
120
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
121
121
|
*
|
|
122
122
|
* function ProductDetail({ product }: { product: IkasProduct }) {
|
|
123
123
|
* const selectedVariant = getSelectedProductVariant(product);
|
|
@@ -145,7 +145,7 @@ export declare function getSelectedProductVariant(product: IkasProduct): IkasPro
|
|
|
145
145
|
* @example
|
|
146
146
|
* ```typescript
|
|
147
147
|
* import { getMainProductVariantValue } from "@ikas/bp-storefront";
|
|
148
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
148
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
149
149
|
*
|
|
150
150
|
* function ProductCard({ product }: { product: IkasProduct }) {
|
|
151
151
|
* const mainValue = getMainProductVariantValue(product);
|
|
@@ -167,7 +167,7 @@ export declare function getMainProductVariantValue(product: IkasProduct): IkasVa
|
|
|
167
167
|
* @example
|
|
168
168
|
* ```typescript
|
|
169
169
|
* import { getMainProductVariantType } from "@ikas/bp-storefront";
|
|
170
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
170
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
171
171
|
*
|
|
172
172
|
* function ProductCard({ product }: { product: IkasProduct }) {
|
|
173
173
|
* const mainType = getMainProductVariantType(product);
|
|
@@ -178,7 +178,7 @@ export declare function getMainProductVariantValue(product: IkasProduct): IkasVa
|
|
|
178
178
|
* }
|
|
179
179
|
* ```
|
|
180
180
|
*/
|
|
181
|
-
export declare function getMainProductVariantType(product: IkasProduct): import("
|
|
181
|
+
export declare function getMainProductVariantType(product: IkasProduct): import("../../../storefront-models/src").IkasVariantType | undefined;
|
|
182
182
|
/**
|
|
183
183
|
* Get the URL for the currently selected product variant.
|
|
184
184
|
* Includes variant selection parameters in the URL.
|
|
@@ -192,7 +192,7 @@ export declare function getMainProductVariantType(product: IkasProduct): import(
|
|
|
192
192
|
* @example
|
|
193
193
|
* ```typescript
|
|
194
194
|
* import { getSelectedProductVariantHref } from "@ikas/bp-storefront";
|
|
195
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
195
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
196
196
|
*
|
|
197
197
|
* function ProductLink({ product }: { product: IkasProduct }) {
|
|
198
198
|
* const href = getSelectedProductVariantHref(product);
|
|
@@ -213,7 +213,7 @@ export declare function getSelectedProductVariantHref(product: IkasProduct): str
|
|
|
213
213
|
* @example
|
|
214
214
|
* ```typescript
|
|
215
215
|
* import { getProductHref } from "@ikas/bp-storefront";
|
|
216
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
216
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
217
217
|
*
|
|
218
218
|
* function ProductCard({ product }: { product: IkasProduct }) {
|
|
219
219
|
* return (
|
|
@@ -239,7 +239,7 @@ export declare function getProductHref(product: IkasProduct): string;
|
|
|
239
239
|
* @example
|
|
240
240
|
* ```typescript
|
|
241
241
|
* import { getDisplayedProductVariantTypes, selectVariantValue } from "@ikas/bp-storefront";
|
|
242
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
242
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
243
243
|
*
|
|
244
244
|
* function VariantSelector({ product }: { product: IkasProduct }) {
|
|
245
245
|
* const variantTypes = getDisplayedProductVariantTypes(product);
|
|
@@ -283,7 +283,7 @@ export declare function getDisplayedProductVariantTypes(product: IkasProduct): I
|
|
|
283
283
|
* @example
|
|
284
284
|
* ```typescript
|
|
285
285
|
* import { isAddToCartEnabled } from "@ikas/bp-storefront";
|
|
286
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
286
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
287
287
|
*
|
|
288
288
|
* function AddToCartButton({ product }: { product: IkasProduct }) {
|
|
289
289
|
* const enabled = isAddToCartEnabled(product);
|
|
@@ -308,7 +308,7 @@ export declare function isAddToCartEnabled(product: IkasProduct): boolean;
|
|
|
308
308
|
* @example
|
|
309
309
|
* ```typescript
|
|
310
310
|
* import { isCustomerReviewEnabled } from "@ikas/bp-storefront";
|
|
311
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
311
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
312
312
|
*
|
|
313
313
|
* function ProductReviews({ product }: { product: IkasProduct }) {
|
|
314
314
|
* if (!isCustomerReviewEnabled(product)) return null;
|
|
@@ -329,7 +329,7 @@ export declare function isCustomerReviewEnabled(product: IkasProduct): boolean;
|
|
|
329
329
|
* @example
|
|
330
330
|
* ```typescript
|
|
331
331
|
* import { isCustomerReviewLoginRequired, isCustomerReviewEnabled, customerStore } from "@ikas/bp-storefront";
|
|
332
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
332
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
333
333
|
*
|
|
334
334
|
* function ReviewForm({ product }: { product: IkasProduct }) {
|
|
335
335
|
* if (!isCustomerReviewEnabled(product)) return null;
|
|
@@ -354,7 +354,7 @@ export declare function isCustomerReviewLoginRequired(product: IkasProduct): boo
|
|
|
354
354
|
* @example
|
|
355
355
|
* ```typescript
|
|
356
356
|
* import { getGroupedAttributeValues } from "@ikas/bp-storefront";
|
|
357
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
357
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
358
358
|
*
|
|
359
359
|
* function ProductAttributes({ product }: { product: IkasProduct }) {
|
|
360
360
|
* const attributes = getGroupedAttributeValues(product);
|
|
@@ -384,7 +384,7 @@ export declare function getGroupedAttributeValues(product: IkasProduct): IkasPro
|
|
|
384
384
|
* @example
|
|
385
385
|
* ```typescript
|
|
386
386
|
* import { getDisplayedProductGroups } from "@ikas/bp-storefront";
|
|
387
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
387
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
388
388
|
*
|
|
389
389
|
* function ProductGroupSelector({ product }: { product: IkasProduct }) {
|
|
390
390
|
* const groups = getDisplayedProductGroups(product);
|
|
@@ -424,7 +424,7 @@ export declare function getDisplayedProductGroups(product: IkasProduct): IkasDis
|
|
|
424
424
|
* @example
|
|
425
425
|
* ```typescript
|
|
426
426
|
* import { selectVariantValue, getDisplayedProductVariantTypes } from "@ikas/bp-storefront";
|
|
427
|
-
* import { IkasProduct, IkasVariantValue } from "@ikas/bp-storefront
|
|
427
|
+
* import { IkasProduct, IkasVariantValue } from "@ikas/bp-storefront";
|
|
428
428
|
*
|
|
429
429
|
* function SizeSelector({ product }: { product: IkasProduct }) {
|
|
430
430
|
* const variantTypes = getDisplayedProductVariantTypes(product);
|
|
@@ -464,7 +464,7 @@ export declare function selectVariantValue(product: IkasProduct, variantValue: I
|
|
|
464
464
|
* @example
|
|
465
465
|
* ```typescript
|
|
466
466
|
* import { getProductCampaigns } from "@ikas/bp-storefront";
|
|
467
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
467
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
468
468
|
*
|
|
469
469
|
* async function loadCampaigns(product: IkasProduct) {
|
|
470
470
|
* const campaigns = await getProductCampaigns(product);
|
|
@@ -474,7 +474,7 @@ export declare function selectVariantValue(product: IkasProduct, variantValue: I
|
|
|
474
474
|
* }
|
|
475
475
|
* ```
|
|
476
476
|
*/
|
|
477
|
-
export declare function getProductCampaigns(product: IkasProduct): Promise<import("
|
|
477
|
+
export declare function getProductCampaigns(product: IkasProduct): Promise<import("../../../storefront-models/src").IkasProductCampaign[] | undefined>;
|
|
478
478
|
/**
|
|
479
479
|
* Fetch available stock locations for a product's variants.
|
|
480
480
|
* Queries the API using configured pickup stock location IDs and the product's variant IDs.
|
|
@@ -488,7 +488,7 @@ export declare function getProductCampaigns(product: IkasProduct): Promise<impor
|
|
|
488
488
|
* @example
|
|
489
489
|
* ```typescript
|
|
490
490
|
* import { getProductAvailableStockLocations } from "@ikas/bp-storefront";
|
|
491
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
491
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
492
492
|
*
|
|
493
493
|
* async function showPickupLocations(product: IkasProduct) {
|
|
494
494
|
* const locations = await getProductAvailableStockLocations(product);
|
|
@@ -498,7 +498,7 @@ export declare function getProductCampaigns(product: IkasProduct): Promise<impor
|
|
|
498
498
|
* }
|
|
499
499
|
* ```
|
|
500
500
|
*/
|
|
501
|
-
export declare function getProductAvailableStockLocations(product: IkasProduct): Promise<import("
|
|
501
|
+
export declare function getProductAvailableStockLocations(product: IkasProduct): Promise<import("../../../storefront-models/src").IkasProductStockLocations[]>;
|
|
502
502
|
/**
|
|
503
503
|
* Fetch and attach the product option set if not already loaded.
|
|
504
504
|
* Loads option set data from the API and sets currency-specific prices for each option.
|
|
@@ -512,7 +512,7 @@ export declare function getProductAvailableStockLocations(product: IkasProduct):
|
|
|
512
512
|
* @example
|
|
513
513
|
* ```typescript
|
|
514
514
|
* import { getProductOptionSet } from "@ikas/bp-storefront";
|
|
515
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
515
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
516
516
|
*
|
|
517
517
|
* async function loadProductOptions(product: IkasProduct) {
|
|
518
518
|
* const hasOptions = await getProductOptionSet(product);
|
|
@@ -536,7 +536,7 @@ export declare function getProductOptionSet(product: IkasProduct): Promise<boole
|
|
|
536
536
|
* @example
|
|
537
537
|
* ```typescript
|
|
538
538
|
* import { initBundleProducts } from "@ikas/bp-storefront";
|
|
539
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
539
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
540
540
|
*
|
|
541
541
|
* async function loadProduct(product: IkasProduct) {
|
|
542
542
|
* await initBundleProducts(product);
|
|
@@ -558,7 +558,7 @@ export declare function initBundleProducts(product: IkasProduct): Promise<void>;
|
|
|
558
558
|
* @example
|
|
559
559
|
* ```typescript
|
|
560
560
|
* import { getBundleProductsOfVariant, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
561
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
561
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
562
562
|
*
|
|
563
563
|
* async function refreshBundleProducts(product: IkasProduct) {
|
|
564
564
|
* const variant = getSelectedProductVariant(product);
|
|
@@ -580,7 +580,7 @@ export declare function getBundleProductsOfVariant(product: IkasProduct, variant
|
|
|
580
580
|
* @example
|
|
581
581
|
* ```typescript
|
|
582
582
|
* import { isBundleProductQuantityEditable, setBundleProductQuantity } from "@ikas/bp-storefront";
|
|
583
|
-
* import { IkasBundleProduct } from "@ikas/bp-storefront
|
|
583
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront";
|
|
584
584
|
*
|
|
585
585
|
* function BundleItem({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
586
586
|
* const editable = isBundleProductQuantityEditable(bundleProduct);
|
|
@@ -610,7 +610,7 @@ export declare function isBundleProductQuantityEditable(bundleProduct: IkasBundl
|
|
|
610
610
|
* @example
|
|
611
611
|
* ```typescript
|
|
612
612
|
* import { shouldDisplayBundleProductPrice, getBundleProductFormattedFinalPrice } from "@ikas/bp-storefront";
|
|
613
|
-
* import { IkasBundleProduct } from "@ikas/bp-storefront
|
|
613
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront";
|
|
614
614
|
*
|
|
615
615
|
* function BundleItem({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
616
616
|
* return (
|
|
@@ -638,7 +638,7 @@ export declare function shouldDisplayBundleProductPrice(bundleProduct: IkasBundl
|
|
|
638
638
|
* @example
|
|
639
639
|
* ```typescript
|
|
640
640
|
* import { getBundleProductFinalPrice } from "@ikas/bp-storefront";
|
|
641
|
-
* import { IkasBundleProduct } from "@ikas/bp-storefront
|
|
641
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront";
|
|
642
642
|
*
|
|
643
643
|
* function BundlePrice({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
644
644
|
* const price = getBundleProductFinalPrice(bundleProduct);
|
|
@@ -659,7 +659,7 @@ export declare function getBundleProductFinalPrice(bundleProduct: IkasBundleProd
|
|
|
659
659
|
* @example
|
|
660
660
|
* ```typescript
|
|
661
661
|
* import { getBundleProductFormattedFinalPrice, shouldDisplayBundleProductPrice } from "@ikas/bp-storefront";
|
|
662
|
-
* import { IkasBundleProduct } from "@ikas/bp-storefront
|
|
662
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront";
|
|
663
663
|
*
|
|
664
664
|
* function BundleItemPrice({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
665
665
|
* if (!shouldDisplayBundleProductPrice(bundleProduct)) return null;
|
|
@@ -680,7 +680,7 @@ export declare function getBundleProductFormattedFinalPrice(bundleProduct: IkasB
|
|
|
680
680
|
* @example
|
|
681
681
|
* ```typescript
|
|
682
682
|
* import { getBundleProductFinalPriceWithQuantity } from "@ikas/bp-storefront";
|
|
683
|
-
* import { IkasBundleProduct } from "@ikas/bp-storefront
|
|
683
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront";
|
|
684
684
|
*
|
|
685
685
|
* function BundleTotal({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
686
686
|
* const total = getBundleProductFinalPriceWithQuantity(bundleProduct);
|
|
@@ -701,7 +701,7 @@ export declare function getBundleProductFinalPriceWithQuantity(bundleProduct: Ik
|
|
|
701
701
|
* @example
|
|
702
702
|
* ```typescript
|
|
703
703
|
* import { getBundleProductFormattedFinalPriceWithQuantity } from "@ikas/bp-storefront";
|
|
704
|
-
* import { IkasBundleProduct } from "@ikas/bp-storefront
|
|
704
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront";
|
|
705
705
|
*
|
|
706
706
|
* function BundleItemTotal({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
707
707
|
* return <span>{getBundleProductFormattedFinalPriceWithQuantity(bundleProduct)}</span>;
|
|
@@ -721,7 +721,7 @@ export declare function getBundleProductFormattedFinalPriceWithQuantity(bundlePr
|
|
|
721
721
|
* @example
|
|
722
722
|
* ```typescript
|
|
723
723
|
* import { getBundleProductSellPrice, getBundleProductFinalPrice } from "@ikas/bp-storefront";
|
|
724
|
-
* import { IkasBundleProduct } from "@ikas/bp-storefront
|
|
724
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront";
|
|
725
725
|
*
|
|
726
726
|
* function BundleDiscount({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
727
727
|
* const sell = getBundleProductSellPrice(bundleProduct);
|
|
@@ -744,7 +744,7 @@ export declare function getBundleProductSellPrice(bundleProduct: IkasBundleProdu
|
|
|
744
744
|
* @example
|
|
745
745
|
* ```typescript
|
|
746
746
|
* import { getBundleProductFormattedSellPrice } from "@ikas/bp-storefront";
|
|
747
|
-
* import { IkasBundleProduct } from "@ikas/bp-storefront
|
|
747
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront";
|
|
748
748
|
*
|
|
749
749
|
* function BundleOriginalPrice({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
750
750
|
* return <span className="original-price">{getBundleProductFormattedSellPrice(bundleProduct)}</span>;
|
|
@@ -764,7 +764,7 @@ export declare function getBundleProductFormattedSellPrice(bundleProduct: IkasBu
|
|
|
764
764
|
* @example
|
|
765
765
|
* ```typescript
|
|
766
766
|
* import { getBundleProductSellPriceWithQuantity } from "@ikas/bp-storefront";
|
|
767
|
-
* import { IkasBundleProduct } from "@ikas/bp-storefront
|
|
767
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront";
|
|
768
768
|
*
|
|
769
769
|
* function BundleOriginalTotal({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
770
770
|
* const total = getBundleProductSellPriceWithQuantity(bundleProduct);
|
|
@@ -785,7 +785,7 @@ export declare function getBundleProductSellPriceWithQuantity(bundleProduct: Ika
|
|
|
785
785
|
* @example
|
|
786
786
|
* ```typescript
|
|
787
787
|
* import { getBundleProductFormattedSellPriceWithQuantity } from "@ikas/bp-storefront";
|
|
788
|
-
* import { IkasBundleProduct } from "@ikas/bp-storefront
|
|
788
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront";
|
|
789
789
|
*
|
|
790
790
|
* function BundleOriginalTotal({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
791
791
|
* return (
|
|
@@ -810,7 +810,7 @@ export declare function getBundleProductFormattedSellPriceWithQuantity(bundlePro
|
|
|
810
810
|
* @example
|
|
811
811
|
* ```typescript
|
|
812
812
|
* import { setProductOfBundleProduct } from "@ikas/bp-storefront";
|
|
813
|
-
* import { IkasBundleProduct, IkasProduct } from "@ikas/bp-storefront
|
|
813
|
+
* import { IkasBundleProduct, IkasProduct } from "@ikas/bp-storefront";
|
|
814
814
|
*
|
|
815
815
|
* function attachProduct(bundleProduct: IkasBundleProduct, product: IkasProduct) {
|
|
816
816
|
* setProductOfBundleProduct(bundleProduct, product);
|
|
@@ -832,7 +832,7 @@ export declare function setProductOfBundleProduct(bundleProduct: IkasBundleProdu
|
|
|
832
832
|
* @example
|
|
833
833
|
* ```typescript
|
|
834
834
|
* import { setBundleProductQuantity, isBundleProductQuantityEditable } from "@ikas/bp-storefront";
|
|
835
|
-
* import { IkasBundleProduct } from "@ikas/bp-storefront
|
|
835
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront";
|
|
836
836
|
*
|
|
837
837
|
* function QuantityControl({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
838
838
|
* if (!isBundleProductQuantityEditable(bundleProduct)) return null;
|
|
@@ -860,7 +860,7 @@ export declare function setBundleProductQuantity(bundleProduct: IkasBundleProduc
|
|
|
860
860
|
* @example
|
|
861
861
|
* ```typescript
|
|
862
862
|
* import { setOptionRealPrices } from "@ikas/bp-storefront";
|
|
863
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
863
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
864
864
|
*
|
|
865
865
|
* function recalculateOptions(product: IkasProduct) {
|
|
866
866
|
* setOptionRealPrices(product);
|
|
@@ -882,7 +882,7 @@ export declare function setOptionRealPrices(product: IkasProduct): void;
|
|
|
882
882
|
* @example
|
|
883
883
|
* ```typescript
|
|
884
884
|
* import { getProductCategoryPath } from "@ikas/bp-storefront";
|
|
885
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
885
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
886
886
|
*
|
|
887
887
|
* function Breadcrumb({ product }: { product: IkasProduct }) {
|
|
888
888
|
* const path = getProductCategoryPath(product);
|
|
@@ -899,7 +899,7 @@ export declare function setOptionRealPrices(product: IkasProduct): void;
|
|
|
899
899
|
* }
|
|
900
900
|
* ```
|
|
901
901
|
*/
|
|
902
|
-
export declare function getProductCategoryPath(product: IkasProduct): import("
|
|
902
|
+
export declare function getProductCategoryPath(product: IkasProduct): import("../../../storefront-models/src").IkasCategoryPathItem[];
|
|
903
903
|
/**
|
|
904
904
|
* Get the first category assigned to a product.
|
|
905
905
|
* Returns null if the product has no categories.
|
|
@@ -913,7 +913,7 @@ export declare function getProductCategoryPath(product: IkasProduct): import("..
|
|
|
913
913
|
* @example
|
|
914
914
|
* ```typescript
|
|
915
915
|
* import { getProductFirstCategory } from "@ikas/bp-storefront";
|
|
916
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
916
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
917
917
|
*
|
|
918
918
|
* function ProductCategory({ product }: { product: IkasProduct }) {
|
|
919
919
|
* const category = getProductFirstCategory(product);
|
|
@@ -921,7 +921,7 @@ export declare function getProductCategoryPath(product: IkasProduct): import("..
|
|
|
921
921
|
* }
|
|
922
922
|
* ```
|
|
923
923
|
*/
|
|
924
|
-
export declare function getProductFirstCategory(product: IkasProduct): import("
|
|
924
|
+
export declare function getProductFirstCategory(product: IkasProduct): import("../../../storefront-models/src").IkasCategory | null;
|
|
925
925
|
/**
|
|
926
926
|
* Get or create the customer review form for a product.
|
|
927
927
|
* Lazily initializes the form on first access and caches it in the customer store.
|
|
@@ -935,7 +935,7 @@ export declare function getProductFirstCategory(product: IkasProduct): import(".
|
|
|
935
935
|
* @example
|
|
936
936
|
* ```typescript
|
|
937
937
|
* import { getIkasProductCustomerReviewForm, isCustomerReviewEnabled } from "@ikas/bp-storefront";
|
|
938
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
938
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
939
939
|
*
|
|
940
940
|
* function ReviewForm({ product }: { product: IkasProduct }) {
|
|
941
941
|
* if (!isCustomerReviewEnabled(product)) return null;
|
|
@@ -961,7 +961,7 @@ export declare function getIkasProductCustomerReviewForm(product: IkasProduct):
|
|
|
961
961
|
* @example
|
|
962
962
|
* ```typescript
|
|
963
963
|
* import { clearIkasProductCustomerReviewForm } from "@ikas/bp-storefront";
|
|
964
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
964
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
965
965
|
*
|
|
966
966
|
* function handleReviewSubmitted(product: IkasProduct) {
|
|
967
967
|
* clearIkasProductCustomerReviewForm(product);
|
|
@@ -982,7 +982,7 @@ export declare function clearIkasProductCustomerReviewForm(product: IkasProduct)
|
|
|
982
982
|
* @example
|
|
983
983
|
* ```typescript
|
|
984
984
|
* import { isFavoriteIkasProduct, addIkasProductToFavorites, removeIkasProductFromFavorites } from "@ikas/bp-storefront";
|
|
985
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
985
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
986
986
|
*
|
|
987
987
|
* function FavoriteButton({ product }: { product: IkasProduct }) {
|
|
988
988
|
* const isFavorite = isFavoriteIkasProduct(product);
|
|
@@ -1017,7 +1017,7 @@ export declare function isFavoriteIkasProduct(product: IkasProduct): boolean;
|
|
|
1017
1017
|
* @example
|
|
1018
1018
|
* ```typescript
|
|
1019
1019
|
* import { addIkasProductToFavorites, customerStore } from "@ikas/bp-storefront";
|
|
1020
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
1020
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
1021
1021
|
*
|
|
1022
1022
|
* async function handleAddToFavorites(product: IkasProduct) {
|
|
1023
1023
|
* if (!customerStore.customer) {
|
|
@@ -1044,7 +1044,7 @@ export declare function addIkasProductToFavorites(product: IkasProduct): Promise
|
|
|
1044
1044
|
* @example
|
|
1045
1045
|
* ```typescript
|
|
1046
1046
|
* import { removeIkasProductFromFavorites } from "@ikas/bp-storefront";
|
|
1047
|
-
* import { IkasProduct } from "@ikas/bp-storefront
|
|
1047
|
+
* import { IkasProduct } from "@ikas/bp-storefront";
|
|
1048
1048
|
*
|
|
1049
1049
|
* async function handleRemoveFromFavorites(product: IkasProduct) {
|
|
1050
1050
|
* await removeIkasProductFromFavorites(product);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasProductOption, IkasProductOptionSet } from "
|
|
1
|
+
import { IkasProductOption, IkasProductOptionSet } from "../../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Sets child options for each option in the option set by linking options that have a required parent option.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasProduct, IkasProductOptionSet } from "
|
|
1
|
+
import { IkasProduct, IkasProductOptionSet } from "../../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Initializes a product option set by linking each option to its parent set, initializing individual options, applying locale-specific translations, setting up child options, and initializing option values.
|
|
4
4
|
*
|
package/dist/{storefront/src/functions → functions}/models/product/option-set/option/index.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasProductOption, IkasProductOptionSelectValue } from "
|
|
1
|
+
import { IkasProductOption, IkasProductOptionSelectValue } from "../../../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Returns the visible child options of a product option, filtered by selection state and sorted by order.
|
|
4
4
|
*
|
package/dist/{storefront/src/functions → functions}/models/product/option-set/option/init.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasProduct, IkasProductOption } from "
|
|
1
|
+
import { IkasProduct, IkasProductOption } from "../../../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Initializes a product option by setting its currency and currency symbol from the first variant's price, and sorting select settings values by order.
|
|
4
4
|
*
|
package/dist/{storefront/src/functions → functions}/models/product/stock-location/index.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasProductStockLocations } from "
|
|
1
|
+
import { IkasProductStockLocations } from "../../../../storefront-models/src";
|
|
2
2
|
/**
|
|
3
3
|
* Builds a comma-separated full address string from a stock location's address components including street address, postal code, district, city, state, and country.
|
|
4
4
|
*
|