@lightspeed/ecom-headless 1.1.5-rc.0 → 1.2.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 +8 -3
- package/README.md +8 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/plugin-visualizer/bundle.html +1 -1
- package/dist/shared/ecom-headless.BF4ITfQc.cjs +2 -0
- package/dist/shared/ecom-headless.BF4ITfQc.cjs.map +1 -0
- package/dist/shared/{ecom-headless.C9ivNZI7.d.cts → ecom-headless.BeJeXdSY.d.mts} +99 -24
- package/dist/shared/{ecom-headless.DU9eDsgV.d.ts → ecom-headless.CmRks5zy.d.cts} +99 -24
- package/dist/shared/ecom-headless.CyyXXtdO.mjs +2 -0
- package/dist/shared/ecom-headless.CyyXXtdO.mjs.map +1 -0
- package/dist/shared/{ecom-headless.DGDJogyS.d.ts → ecom-headless.UNkw31Vf.d.cts} +311 -2
- package/dist/shared/{ecom-headless.DGDJogyS.d.cts → ecom-headless.UNkw31Vf.d.mts} +311 -2
- package/dist/shared/{ecom-headless.DGDJogyS.d.mts → ecom-headless.UNkw31Vf.d.ts} +311 -2
- package/dist/shared/{ecom-headless.BhIymLsJ.d.mts → ecom-headless.vv_Pbr6W.d.ts} +99 -24
- package/dist/storefront/index.cjs +1 -1
- package/dist/storefront/index.cjs.map +1 -1
- package/dist/storefront/index.d.cts +2 -2
- package/dist/storefront/index.d.mts +2 -2
- package/dist/storefront/index.d.ts +2 -2
- package/dist/storefront/index.mjs +1 -1
- package/dist/storefront/index.mjs.map +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +11 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 1.
|
|
3
|
+
## 1.2.0 - 2026-09-02
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Add session-aware Catalog, Products, and Favorites APIs for custom Storefront pages.
|
|
4
8
|
|
|
5
9
|
### Changed
|
|
6
10
|
|
|
7
|
-
-
|
|
11
|
+
- Expose native product-grid media and domain-specific change subscriptions for custom Storefront layouts.
|
|
12
|
+
- Align Cart and Customer callback and multi-select product option types with the Storefront runtime contract; see `packages/ecom-headless/UPGRADE.md`.
|
|
8
13
|
- Increase the main ESM gzip budget from 3 KB to 3.3 KB for callback-aware Cart and Customer operations.
|
|
9
14
|
|
|
10
15
|
### Fixed
|
|
11
16
|
|
|
12
|
-
-
|
|
17
|
+
- Await Storefront Cart and Customer operation callbacks before resolving.
|
|
13
18
|
|
|
14
19
|
## 1.1.4 - 2026-05-21
|
|
15
20
|
|
package/README.md
CHANGED
|
@@ -10,7 +10,8 @@ This library is designed for both browser and Node.js environments.
|
|
|
10
10
|
|
|
11
11
|
- **TypeScript First:** Strong typing for a better developer experience.
|
|
12
12
|
- **npm Package:** Easy to integrate via `@lightspeed/ecom-headless`.
|
|
13
|
-
- **
|
|
13
|
+
- **Session-Aware Storefront Data:** Render custom Catalog, Product, and Favorites UI with native Storefront pricing and state.
|
|
14
|
+
- **Portable REST Data Access:** Securely access Products, Categories, Store Profile, etc.
|
|
14
15
|
- **Modern JS:** ESM, tree-shakable, using native `fetch` for HTTP requests.
|
|
15
16
|
- **Cross-Platform:** Works in modern browsers and Node.js.
|
|
16
17
|
|
|
@@ -52,6 +53,11 @@ The underlying HTTP client is native `fetch`. The library focuses on fetching fr
|
|
|
52
53
|
- `searchProducts(params?: SearchProductsParams): Promise<SearchProductsResponse>` – Searches for products based on various criteria.
|
|
53
54
|
- `getProduct(params: GetProductParams): Promise<GetProductResponse>` – Fetches a single product by its ID.
|
|
54
55
|
- *(Other product-related methods are available and exported from `src/api/products/` as implemented.)*
|
|
56
|
+
- **Custom Storefront pages (browser only):**
|
|
57
|
+
- `Catalog.getPage()`, `Catalog.getFilters()`, and `Catalog.getCategoryMenu()` use the active Storefront session.
|
|
58
|
+
- `Products.get()`, `Products.resolveConfiguration()`, and `Products.getRelated()` expose native Product behavior.
|
|
59
|
+
- `Favorites` provides guest/authenticated state, mutations, and subscriptions.
|
|
60
|
+
- `Catalog.subscribeChanges()` and `Products.subscribeChanges()` notify custom UI when their data must be fetched again.
|
|
55
61
|
- **Shared Types:**
|
|
56
62
|
- `PaginatedResponse<T>` – Generic type for API responses that include pagination details.
|
|
57
63
|
- `SearchParams` – Basic type for search parameter objects.
|
|
@@ -70,7 +76,7 @@ Methods that return Promises will reject in case of errors (e.g., network issues
|
|
|
70
76
|
|
|
71
77
|
## Security
|
|
72
78
|
|
|
73
|
-
|
|
79
|
+
REST methods use the configured public token and are read-only. Browser-only Storefront methods delegate to the loaded Ecwid Storefront, which owns the active session and validates commerce mutations. The package does not expose Storefront session tokens. All data transmission is performed over HTTPS.
|
|
74
80
|
|
|
75
81
|
## Platform Compatibility
|
|
76
82
|
|
|
@@ -81,4 +87,3 @@ All API methods provided by this library are public and read-only. Access requir
|
|
|
81
87
|
|
|
82
88
|
This library adheres to [Semantic Versioning (SemVer)](https://semver.org/).
|
|
83
89
|
A `CHANGELOG.md` file is maintained in the package root to document changes, additions, and fixes for each version.
|
|
84
|
-
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const api_index=require("./api/index.cjs"),storefront_index=require("./
|
|
1
|
+
"use strict";const api_index=require("./api/index.cjs"),storefront_index=require("./shared/ecom-headless.BF4ITfQc.cjs"),getStoreId=require("./shared/ecom-headless.CiGkSfL9.cjs"),CustomerCookieConsentValues={UNDEFINED:"UNDEFINED",ACCEPTED:"ACCEPTED",DECLINED:"DECLINED",ANALYTICS_ONLY:"ANALYTICS_ONLY",PERSONALIZATION_ONLY:"PERSONALIZATION_ONLY"},EcwidWidgetValues={MINICART:"Minicart",SEARCH_PANEL:"SearchPanel",PRODUCT_BROWSER:"ProductBrowser",CATEGORIES:"Categories",PRODUCT:"Product"},JsApiPageValues={ACCOUNT_REGISTRATION:"ACCOUNT_REGISTRATION",ACCOUNT_RESET_PASSWORD:"ACCOUNT_RESET_PASSWORD",ACCOUNT_REVIEWS:"ACCOUNT_REVIEWS",ACCOUNT_ROOT:"ACCOUNT_ROOT",ACCOUNT_SUBSCRIPTION:"ACCOUNT_SUBSCRIPTION",CART:"CART",CATEGORY:"CATEGORY",CHECKOUT_ADDRESS:"CHECKOUT_ADDRESS",CHECKOUT_DELIVERY:"CHECKOUT_DELIVERY",CHECKOUT_ORDER_CONFIRMATION:"ORDER_CONFIRMATION",CHECKOUT_ORDER_FAILURE:"ORDER_FAILURE",CHECKOUT_PAYMENT:"CHECKOUT_PAYMENT_DETAILS",CHECKOUT_RESULT:"CHECKOUT_RESULT",CHECKOUT_TAX_INFORMATION:"CHECKOUT_TAX_INFORMATION",DOWNLOAD_ERROR:"DOWNLOAD_ERROR",FAVORITES:"FAVORITES",MISSING:"MISSING",PRODUCT:"PRODUCT",SEARCH:"SEARCH",SIGN_IN:"SIGN_IN",SUBSCRIBE:"SUBSCRIBE_PAGE",TERMS:"TERMS",UNSUBSCRIBE:"UNSUBSCRIBE_PAGE"},LegalPageTypeValues={ABOUT:"about",PRIVACY_POLICY:"privacy-policy",RETURNS:"returns",SHIPPING_PAYMENT:"shipping-payment",TERMS:"terms"},SortByValues={RELEVANCE:"RELEVANCE",DEFINED_BY_STORE_OWNER:"DEFINED_BY_STORE_OWNER",ADDED_TIME_DESC:"ADDED_TIME_DESC",ADDED_TIME_ASC:"ADDED_TIME_ASC",NAME_ASC:"NAME_ASC",NAME_DESC:"NAME_DESC",PRICE_ASC:"PRICE_ASC",PRICE_DESC:"PRICE_DESC",UPDATED_TIME_ASC:"UPDATED_TIME_ASC",UPDATED_TIME_DESC:"UPDATED_TIME_DESC"},VisitorLocationSourceValues={SHIPPING_ADDRESS:"SHIPPING_ADDRESS",BILLING_ADDRESS:"BILLING_ADDRESS",IP_ADDRESS:"IP_ADDRESS"};exports.downloadProductFile=api_index.downloadProductFile;exports.getApiConfig=api_index.getApiConfig;exports.getProduct=api_index.getProduct;exports.getProductType=api_index.getProductType;exports.getProductVariation=api_index.getProductVariation;exports.getReviews=api_index.getReviews;exports.getStoreProfile=api_index.getStoreProfile;exports.initStorefrontApi=api_index.initStorefrontApi;exports.searchCategories=api_index.searchCategories;exports.searchCategoriesByPath=api_index.searchCategoriesByPath;exports.searchProductBrands=api_index.searchProductBrands;exports.searchProductTypes=api_index.searchProductTypes;exports.searchProductVariations=api_index.searchProductVariations;exports.searchProducts=api_index.searchProducts;exports.Cart=storefront_index.index;exports.Catalog=storefront_index.index$1;exports.Customer=storefront_index.index$2;exports.Favorites=storefront_index.index$3;exports.OnCartChanged=storefront_index.OnCartChanged;exports.OnConsentChanged=storefront_index.OnConsentChanged;exports.OnPageLoad=storefront_index.OnPageLoad;exports.OnPageLoaded=storefront_index.OnPageLoaded;exports.OnPageSwitch=storefront_index.OnPageSwitch;exports.OnSetProfile=storefront_index.OnSetProfile;exports.Products=storefront_index.index$4;exports.StorefrontRuntimeBridgeVersion=storefront_index.StorefrontRuntimeBridgeVersion;exports.StorefrontRuntimeCapabilityValues=storefront_index.StorefrontRuntimeCapabilityValues;exports.StorefrontRuntimeError=storefront_index.StorefrontRuntimeError;exports.formatCurrency=storefront_index.formatCurrency;exports.getAppPublicConfig=storefront_index.getAppPublicConfig;exports.getAppPublicToken=storefront_index.getAppPublicToken;exports.getInitializedWidgets=storefront_index.getInitializedWidgets;exports.getStorefrontLang=storefront_index.getStorefrontLang;exports.getTrackingConsent=storefront_index.getTrackingConsent;exports.getVisitorLocation=storefront_index.getVisitorLocation;exports.isStorefrontV3=storefront_index.isStorefrontV3;exports.openPage=storefront_index.openPage;exports.setTrackingConsent=storefront_index.setTrackingConsent;exports.getOwnerId=getStoreId.getOwnerId;exports.getStoreId=getStoreId.getStoreId;exports.CustomerCookieConsentValues=CustomerCookieConsentValues;exports.EcwidWidgetValues=EcwidWidgetValues;exports.JsApiPageValues=JsApiPageValues;exports.LegalPageTypeValues=LegalPageTypeValues;exports.SortByValues=SortByValues;exports.VisitorLocationSourceValues=VisitorLocationSourceValues;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/constants/customer-cookie-consent.ts","../src/constants/ecwid-widget.ts","../src/constants/js-api-page.ts","../src/constants/legal-page-type.ts","../src/constants/sort-by.ts","../src/constants/visitor-location-source.ts"],"sourcesContent":["export const CustomerCookieConsentValues = {\n /** Customer hasn't given their consent yet. */\n UNDEFINED: 'UNDEFINED',\n /** Collect all types of cookies. */\n ACCEPTED: 'ACCEPTED',\n /** Collect only essential cookies. */\n DECLINED: 'DECLINED',\n /** Collect essential and analytics cookies only. */\n ANALYTICS_ONLY: 'ANALYTICS_ONLY',\n /** Collect essential and personalization cookies. */\n PERSONALIZATION_ONLY: 'PERSONALIZATION_ONLY',\n} as const;\n\nexport type CustomerCookieConsentType = typeof CustomerCookieConsentValues[keyof typeof CustomerCookieConsentValues];\n","export const EcwidWidgetValues = {\n /** Minicart widget */\n MINICART: 'Minicart',\n /** Search widget */\n SEARCH_PANEL: 'SearchPanel',\n /** Main storefront widget, contains full Ecwid store */\n PRODUCT_BROWSER: 'ProductBrowser',\n /** Horizontal categories menu widget */\n CATEGORIES: 'Categories',\n /** Widget with an embedded product page */\n PRODUCT: 'Product',\n} as const;\n\nexport type EcwidWidgetType = typeof EcwidWidgetValues[keyof typeof EcwidWidgetValues];\n","export const JsApiPageValues = {\n ACCOUNT_REGISTRATION: 'ACCOUNT_REGISTRATION',\n ACCOUNT_RESET_PASSWORD: 'ACCOUNT_RESET_PASSWORD',\n ACCOUNT_REVIEWS: 'ACCOUNT_REVIEWS',\n ACCOUNT_ROOT: 'ACCOUNT_ROOT',\n ACCOUNT_SUBSCRIPTION: 'ACCOUNT_SUBSCRIPTION',\n CART: 'CART',\n CATEGORY: 'CATEGORY',\n CHECKOUT_ADDRESS: 'CHECKOUT_ADDRESS',\n CHECKOUT_DELIVERY: 'CHECKOUT_DELIVERY',\n CHECKOUT_ORDER_CONFIRMATION: 'ORDER_CONFIRMATION',\n CHECKOUT_ORDER_FAILURE: 'ORDER_FAILURE',\n CHECKOUT_PAYMENT: 'CHECKOUT_PAYMENT_DETAILS',\n CHECKOUT_RESULT: 'CHECKOUT_RESULT',\n CHECKOUT_TAX_INFORMATION: 'CHECKOUT_TAX_INFORMATION',\n DOWNLOAD_ERROR: 'DOWNLOAD_ERROR',\n FAVORITES: 'FAVORITES',\n MISSING: 'MISSING',\n PRODUCT: 'PRODUCT',\n SEARCH: 'SEARCH',\n SIGN_IN: 'SIGN_IN',\n SUBSCRIBE: 'SUBSCRIBE_PAGE',\n TERMS: 'TERMS',\n UNSUBSCRIBE: 'UNSUBSCRIBE_PAGE',\n} as const;\n\nexport type JsApiPageType = typeof JsApiPageValues[keyof typeof JsApiPageValues];\n","export const LegalPageTypeValues = {\n ABOUT: 'about',\n PRIVACY_POLICY: 'privacy-policy',\n RETURNS: 'returns',\n SHIPPING_PAYMENT: 'shipping-payment',\n TERMS: 'terms',\n} as const;\n\nexport type LegalPageType = typeof LegalPageTypeValues[keyof typeof LegalPageTypeValues];\n","export const SortByValues = {\n RELEVANCE: 'RELEVANCE',\n DEFINED_BY_STORE_OWNER: 'DEFINED_BY_STORE_OWNER',\n ADDED_TIME_DESC: 'ADDED_TIME_DESC',\n ADDED_TIME_ASC: 'ADDED_TIME_ASC',\n NAME_ASC: 'NAME_ASC',\n NAME_DESC: 'NAME_DESC',\n PRICE_ASC: 'PRICE_ASC',\n PRICE_DESC: 'PRICE_DESC',\n UPDATED_TIME_ASC: 'UPDATED_TIME_ASC',\n UPDATED_TIME_DESC: 'UPDATED_TIME_DESC',\n} as const;\n\nexport type SortByType = typeof SortByValues[keyof typeof SortByValues];\n","export const VisitorLocationSourceValues = {\n SHIPPING_ADDRESS: 'SHIPPING_ADDRESS',\n BILLING_ADDRESS: 'BILLING_ADDRESS',\n IP_ADDRESS: 'IP_ADDRESS',\n} as const;\n\nexport type VisitorLocationSourceType = typeof VisitorLocationSourceValues[keyof typeof VisitorLocationSourceValues];\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/constants/customer-cookie-consent.ts","../src/constants/ecwid-widget.ts","../src/constants/js-api-page.ts","../src/constants/legal-page-type.ts","../src/constants/sort-by.ts","../src/constants/visitor-location-source.ts"],"sourcesContent":["export const CustomerCookieConsentValues = {\n /** Customer hasn't given their consent yet. */\n UNDEFINED: 'UNDEFINED',\n /** Collect all types of cookies. */\n ACCEPTED: 'ACCEPTED',\n /** Collect only essential cookies. */\n DECLINED: 'DECLINED',\n /** Collect essential and analytics cookies only. */\n ANALYTICS_ONLY: 'ANALYTICS_ONLY',\n /** Collect essential and personalization cookies. */\n PERSONALIZATION_ONLY: 'PERSONALIZATION_ONLY',\n} as const;\n\nexport type CustomerCookieConsentType = typeof CustomerCookieConsentValues[keyof typeof CustomerCookieConsentValues];\n","export const EcwidWidgetValues = {\n /** Minicart widget */\n MINICART: 'Minicart',\n /** Search widget */\n SEARCH_PANEL: 'SearchPanel',\n /** Main storefront widget, contains full Ecwid store */\n PRODUCT_BROWSER: 'ProductBrowser',\n /** Horizontal categories menu widget */\n CATEGORIES: 'Categories',\n /** Widget with an embedded product page */\n PRODUCT: 'Product',\n} as const;\n\nexport type EcwidWidgetType = typeof EcwidWidgetValues[keyof typeof EcwidWidgetValues];\n","export const JsApiPageValues = {\n ACCOUNT_REGISTRATION: 'ACCOUNT_REGISTRATION',\n ACCOUNT_RESET_PASSWORD: 'ACCOUNT_RESET_PASSWORD',\n ACCOUNT_REVIEWS: 'ACCOUNT_REVIEWS',\n ACCOUNT_ROOT: 'ACCOUNT_ROOT',\n ACCOUNT_SUBSCRIPTION: 'ACCOUNT_SUBSCRIPTION',\n CART: 'CART',\n CATEGORY: 'CATEGORY',\n CHECKOUT_ADDRESS: 'CHECKOUT_ADDRESS',\n CHECKOUT_DELIVERY: 'CHECKOUT_DELIVERY',\n CHECKOUT_ORDER_CONFIRMATION: 'ORDER_CONFIRMATION',\n CHECKOUT_ORDER_FAILURE: 'ORDER_FAILURE',\n CHECKOUT_PAYMENT: 'CHECKOUT_PAYMENT_DETAILS',\n CHECKOUT_RESULT: 'CHECKOUT_RESULT',\n CHECKOUT_TAX_INFORMATION: 'CHECKOUT_TAX_INFORMATION',\n DOWNLOAD_ERROR: 'DOWNLOAD_ERROR',\n FAVORITES: 'FAVORITES',\n MISSING: 'MISSING',\n PRODUCT: 'PRODUCT',\n SEARCH: 'SEARCH',\n SIGN_IN: 'SIGN_IN',\n SUBSCRIBE: 'SUBSCRIBE_PAGE',\n TERMS: 'TERMS',\n UNSUBSCRIBE: 'UNSUBSCRIBE_PAGE',\n} as const;\n\nexport type JsApiPageType = typeof JsApiPageValues[keyof typeof JsApiPageValues];\n","export const LegalPageTypeValues = {\n ABOUT: 'about',\n PRIVACY_POLICY: 'privacy-policy',\n RETURNS: 'returns',\n SHIPPING_PAYMENT: 'shipping-payment',\n TERMS: 'terms',\n} as const;\n\nexport type LegalPageType = typeof LegalPageTypeValues[keyof typeof LegalPageTypeValues];\n","export const SortByValues = {\n RELEVANCE: 'RELEVANCE',\n DEFINED_BY_STORE_OWNER: 'DEFINED_BY_STORE_OWNER',\n ADDED_TIME_DESC: 'ADDED_TIME_DESC',\n ADDED_TIME_ASC: 'ADDED_TIME_ASC',\n NAME_ASC: 'NAME_ASC',\n NAME_DESC: 'NAME_DESC',\n PRICE_ASC: 'PRICE_ASC',\n PRICE_DESC: 'PRICE_DESC',\n UPDATED_TIME_ASC: 'UPDATED_TIME_ASC',\n UPDATED_TIME_DESC: 'UPDATED_TIME_DESC',\n} as const;\n\nexport type SortByType = typeof SortByValues[keyof typeof SortByValues];\n","export const VisitorLocationSourceValues = {\n SHIPPING_ADDRESS: 'SHIPPING_ADDRESS',\n BILLING_ADDRESS: 'BILLING_ADDRESS',\n IP_ADDRESS: 'IP_ADDRESS',\n} as const;\n\nexport type VisitorLocationSourceType = typeof VisitorLocationSourceValues[keyof typeof VisitorLocationSourceValues];\n"],"names":[],"mappings":"kLAAa,4BAA8B,CAEzC,UAAW,YAEX,SAAU,WAEV,SAAU,WAEV,eAAgB,iBAEhB,qBAAsB,sBACxB,ECXa,kBAAoB,CAE/B,SAAU,WAEV,aAAc,cAEd,gBAAiB,iBAEjB,WAAY,aAEZ,QAAS,SACX,ECXa,gBAAkB,CAC7B,qBAAsB,uBACtB,uBAAwB,yBACxB,gBAAiB,kBACjB,aAAc,eACd,qBAAsB,uBACtB,KAAM,OACN,SAAU,WACV,iBAAkB,mBAClB,kBAAmB,oBACnB,4BAA6B,qBAC7B,uBAAwB,gBACxB,iBAAkB,2BAClB,gBAAiB,kBACjB,yBAA0B,2BAC1B,eAAgB,iBAChB,UAAW,YACX,QAAS,UACT,QAAS,UACT,OAAQ,SACR,QAAS,UACT,UAAW,iBACX,MAAO,QACP,YAAa,kBACf,ECxBa,oBAAsB,CACjC,MAAO,QACP,eAAgB,iBAChB,QAAS,UACT,iBAAkB,mBAClB,MAAO,OACT,ECNa,aAAe,CAC1B,UAAW,YACX,uBAAwB,yBACxB,gBAAiB,kBACjB,eAAgB,iBAChB,SAAU,WACV,UAAW,YACX,UAAW,YACX,WAAY,aACZ,iBAAkB,mBAClB,kBAAmB,mBACrB,ECXa,4BAA8B,CACzC,iBAAkB,mBAClB,gBAAiB,kBACjB,WAAY,YACd"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { downloadProductFile, getApiConfig, getProduct, getProductType, getProductVariation, getReviews, getStoreProfile, initStorefrontApi, searchCategories, searchCategoriesByPath, searchProductBrands, searchProductTypes, searchProductVariations, searchProducts } from './api/index.cjs';
|
|
2
|
-
export { i as Cart, a as Customer, E as EcwidWidgetValues, O as OnCartChanged,
|
|
3
|
-
export { A as AddProductData, a as AddProductParameter, b as AddProductRecurringChargeSettings, B as BaseJsApiPage, c as BillingPerson, C as CartAddProductCallback, d as CartApi, e as CartCalculateTotalCallback, f as CartClearCallback, g as CartData, h as CartDominatingColor, i as CartGetCallback, j as CartGoToCheckoutCallback, k as CartImageBorderInfo, l as CartItem, m as CartMediaItem, n as CartProduct, o as CartRemoveProductCallback, p as CartRemoveProductsCallback, q as CartVideoInfo, r as CustomerApi, s as CustomerCookieConsentValues, t as CustomerData, u as CustomerGetCallback, v as CustomerSignOutCallback, E as EcwidApiPromise, J as JsApiFilterParams, w as JsApiPage, x as JsApiPageValues, L as LegalPageTypeValues, O as Order, R as RecurringChargeSettings, S as ShippingAddress, T as
|
|
2
|
+
export { i as Cart, a as Catalog, b as Customer, E as EcwidWidgetValues, c as Favorites, O as OnCartChanged, d as OnConsentChanged, e as OnPageLoad, f as OnPageLoaded, g as OnPageSwitch, h as OnSetProfile, j as Products, S as StorefrontRuntimeError, k as formatCurrency, l as getAppPublicConfig, m as getAppPublicToken, n as getInitializedWidgets, o as getOwnerId, p as getStoreId, q as getStorefrontLang, r as getTrackingConsent, s as getVisitorLocation, t as isStorefrontV3, u as openPage, v as setTrackingConsent } from './shared/ecom-headless.CmRks5zy.cjs';
|
|
3
|
+
export { A as AddProductData, a as AddProductParameter, b as AddProductRecurringChargeSettings, B as BaseJsApiPage, c as BillingPerson, C as CartAddProductCallback, d as CartApi, e as CartCalculateTotalCallback, f as CartClearCallback, g as CartData, h as CartDominatingColor, i as CartGetCallback, j as CartGoToCheckoutCallback, k as CartImageBorderInfo, l as CartItem, m as CartMediaItem, n as CartProduct, o as CartRemoveProductCallback, p as CartRemoveProductsCallback, q as CartVideoInfo, r as CustomerApi, s as CustomerCookieConsentValues, t as CustomerData, u as CustomerGetCallback, v as CustomerSignOutCallback, E as EcwidApiPromise, J as JsApiFilterParams, w as JsApiPage, x as JsApiPageValues, L as LegalPageTypeValues, O as Order, R as RecurringChargeSettings, S as ShippingAddress, y as StorefrontAppliedTax, z as StorefrontCatalogAttributeFilter, D as StorefrontCatalogFilter, F as StorefrontCatalogFilters, G as StorefrontCatalogFiltersRequest, H as StorefrontCatalogMarkerFilter, I as StorefrontCatalogOptionFilter, K as StorefrontCatalogPage, M as StorefrontCatalogPageRequest, N as StorefrontCatalogPriceFilter, P as StorefrontCatalogProductSortOrder, Q as StorefrontCatalogValuesFilter, T as StorefrontCategoryDetails, U as StorefrontCategoryMenu, V as StorefrontCategoryMenuItem, W as StorefrontCategoryMenuRequest, X as StorefrontCategorySummary, Y as StorefrontExpandedCategory, Z as StorefrontFavoritesState, _ as StorefrontFilterValue, $ as StorefrontListingRequest, a0 as StorefrontOptionChoice, a1 as StorefrontPagination, a2 as StorefrontPicture, a3 as StorefrontPriceRange, a4 as StorefrontProduct, a5 as StorefrontProductAttribute, a6 as StorefrontProductConfiguration, a7 as StorefrontProductConfigurationRequest, a8 as StorefrontProductFilters, a9 as StorefrontProductInventory, aa as StorefrontProductMedia, ab as StorefrontProductOption, ac as StorefrontProductPrice, ad as StorefrontProductRequest, ae as StorefrontPurchaseKind, af as StorefrontRelatedProductsRequest, ag as StorefrontRuntimeBridgeVersion, ah as StorefrontRuntimeCapability, ai as StorefrontRuntimeCapabilityValues, aj as StorefrontSelectedOptions, ak as StorefrontWholesalePrice, al as TrackingConsent, am as VisitorLocation, an as VisitorLocationSourceValues } from './shared/ecom-headless.UNkw31Vf.cjs';
|
|
4
4
|
export { A as AbandonedSales, a as Account, b as AccountBilling, c as AddressFormat, d as AdminMessages, e as ApiConfig, f as ApplePay, g as ApplePayOptions, h as AsQueryParams, B as BlackoutDates, i as BusinessHours, j as BusinessRegistrationID, C as CarrierMethod, k as CarrierSettings, l as Category, m as CategoryImage, n as CategoryImageAlt, o as Company, p as CustomTipSettings, q as CustomerMarketingMessages, r as CustomerOrderMessages, D as DesignSettings, s as DownloadProductFileParams, t as DownloadProductFileResponse, F as FbMessengerSettings, u as FeatureToggle, v as FilterSection, w as FlatRate, x as FormatsAndUnits, G as GeneralInfo, y as GeoPolygon, z as GetProductParams, E as GetProductResponse, H as GetProductTypeParams, I as GetProductTypeResponse, J as GetProductVariationParams, K as GetProductVariationResponse, L as GetReviewsParams, M as GetReviewsResponse, N as GetStoreProfileParams, O as GetStoreProfileResponse, P as GiftCardProduct, Q as GiftCardSettings, R as HandlingFee, S as InstructionsForCustomer, T as Languages, U as LegalPage, V as LegalPagesSettings, W as LimitsAndRestrictions, X as LowestPriceSettings, Y as MailNotifications, Z as MailNotificationsSettings, _ as MailchimpSettings, $ as OrderInvoiceSettings, a0 as PaginatedResponse, a1 as Payment, a2 as PaymentOption, a3 as PaymentShippingSettings, a4 as PaymentSurcharge, a5 as PhoneNotifications, a6 as PostageDimensions, a7 as Product, a8 as ProductAttribute, a9 as ProductAttributeType, aa as ProductAttributeVisibility, ab as ProductBorderInfo, ac as ProductBrand, ad as ProductCategory, ae as ProductCombination, af as ProductCombinationOption, ag as ProductCompositeComponent, ah as ProductDimensions, ai as ProductDominatingColor, aj as ProductFavorites, ak as ProductFile, al as ProductFiltersSettings, am as ProductGalleryImage, an as ProductImage, ao as ProductImageAlt, ap as ProductMedia, aq as ProductMediaImage, ar as ProductMediaVideo, as as ProductOption, at as ProductOptionChoice, au as ProductRecurringChargeSettings, av as ProductRelatedCategory, aw as ProductRelatedProducts, ax as ProductShipping, ay as ProductSubscriptionSettings, az as ProductTax, aA as ProductType, aB as QueryParams, aC as Rate, aD as RateCondition, aE as Rates, aF as RatesTable, aG as RecurringSubscriptionsSettings, aH as RegistrationAnswers, aI as SalePrice, aJ as SearchCategoriesByPathParams, aK as SearchCategoriesByPathResponse, aL as SearchCategoriesParams, aM as SearchCategoriesResponse, aN as SearchProductBrandsParams, aO as SearchProductBrandsResponse, aP as SearchProductTypesResponse, aQ as SearchProductVariationsParams, aR as SearchProductVariationsResponse, aS as SearchProductsParams, aT as SearchProductsResponse, aU as Shipping, aV as ShippingOption, aW as SocialLink, aX as SocialLinksSettings, aY as SortByValues, aZ as StarterSite, a_ as StoreProfile, a$ as StoreSettings, b0 as StoreZone, b1 as SupportedPaymentMethodsStatuses, b2 as Tax, b3 as TaxRule, b4 as TaxSettings, b5 as TipsSettings, b6 as Translations, b7 as WholesalePrice } from './shared/ecom-headless.Bm1MKC5K.cjs';
|
|
5
5
|
import 'buffer';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { downloadProductFile, getApiConfig, getProduct, getProductType, getProductVariation, getReviews, getStoreProfile, initStorefrontApi, searchCategories, searchCategoriesByPath, searchProductBrands, searchProductTypes, searchProductVariations, searchProducts } from './api/index.mjs';
|
|
2
|
-
export { i as Cart, a as Customer, E as EcwidWidgetValues, O as OnCartChanged,
|
|
3
|
-
export { A as AddProductData, a as AddProductParameter, b as AddProductRecurringChargeSettings, B as BaseJsApiPage, c as BillingPerson, C as CartAddProductCallback, d as CartApi, e as CartCalculateTotalCallback, f as CartClearCallback, g as CartData, h as CartDominatingColor, i as CartGetCallback, j as CartGoToCheckoutCallback, k as CartImageBorderInfo, l as CartItem, m as CartMediaItem, n as CartProduct, o as CartRemoveProductCallback, p as CartRemoveProductsCallback, q as CartVideoInfo, r as CustomerApi, s as CustomerCookieConsentValues, t as CustomerData, u as CustomerGetCallback, v as CustomerSignOutCallback, E as EcwidApiPromise, J as JsApiFilterParams, w as JsApiPage, x as JsApiPageValues, L as LegalPageTypeValues, O as Order, R as RecurringChargeSettings, S as ShippingAddress, T as
|
|
2
|
+
export { i as Cart, a as Catalog, b as Customer, E as EcwidWidgetValues, c as Favorites, O as OnCartChanged, d as OnConsentChanged, e as OnPageLoad, f as OnPageLoaded, g as OnPageSwitch, h as OnSetProfile, j as Products, S as StorefrontRuntimeError, k as formatCurrency, l as getAppPublicConfig, m as getAppPublicToken, n as getInitializedWidgets, o as getOwnerId, p as getStoreId, q as getStorefrontLang, r as getTrackingConsent, s as getVisitorLocation, t as isStorefrontV3, u as openPage, v as setTrackingConsent } from './shared/ecom-headless.BeJeXdSY.mjs';
|
|
3
|
+
export { A as AddProductData, a as AddProductParameter, b as AddProductRecurringChargeSettings, B as BaseJsApiPage, c as BillingPerson, C as CartAddProductCallback, d as CartApi, e as CartCalculateTotalCallback, f as CartClearCallback, g as CartData, h as CartDominatingColor, i as CartGetCallback, j as CartGoToCheckoutCallback, k as CartImageBorderInfo, l as CartItem, m as CartMediaItem, n as CartProduct, o as CartRemoveProductCallback, p as CartRemoveProductsCallback, q as CartVideoInfo, r as CustomerApi, s as CustomerCookieConsentValues, t as CustomerData, u as CustomerGetCallback, v as CustomerSignOutCallback, E as EcwidApiPromise, J as JsApiFilterParams, w as JsApiPage, x as JsApiPageValues, L as LegalPageTypeValues, O as Order, R as RecurringChargeSettings, S as ShippingAddress, y as StorefrontAppliedTax, z as StorefrontCatalogAttributeFilter, D as StorefrontCatalogFilter, F as StorefrontCatalogFilters, G as StorefrontCatalogFiltersRequest, H as StorefrontCatalogMarkerFilter, I as StorefrontCatalogOptionFilter, K as StorefrontCatalogPage, M as StorefrontCatalogPageRequest, N as StorefrontCatalogPriceFilter, P as StorefrontCatalogProductSortOrder, Q as StorefrontCatalogValuesFilter, T as StorefrontCategoryDetails, U as StorefrontCategoryMenu, V as StorefrontCategoryMenuItem, W as StorefrontCategoryMenuRequest, X as StorefrontCategorySummary, Y as StorefrontExpandedCategory, Z as StorefrontFavoritesState, _ as StorefrontFilterValue, $ as StorefrontListingRequest, a0 as StorefrontOptionChoice, a1 as StorefrontPagination, a2 as StorefrontPicture, a3 as StorefrontPriceRange, a4 as StorefrontProduct, a5 as StorefrontProductAttribute, a6 as StorefrontProductConfiguration, a7 as StorefrontProductConfigurationRequest, a8 as StorefrontProductFilters, a9 as StorefrontProductInventory, aa as StorefrontProductMedia, ab as StorefrontProductOption, ac as StorefrontProductPrice, ad as StorefrontProductRequest, ae as StorefrontPurchaseKind, af as StorefrontRelatedProductsRequest, ag as StorefrontRuntimeBridgeVersion, ah as StorefrontRuntimeCapability, ai as StorefrontRuntimeCapabilityValues, aj as StorefrontSelectedOptions, ak as StorefrontWholesalePrice, al as TrackingConsent, am as VisitorLocation, an as VisitorLocationSourceValues } from './shared/ecom-headless.UNkw31Vf.mjs';
|
|
4
4
|
export { A as AbandonedSales, a as Account, b as AccountBilling, c as AddressFormat, d as AdminMessages, e as ApiConfig, f as ApplePay, g as ApplePayOptions, h as AsQueryParams, B as BlackoutDates, i as BusinessHours, j as BusinessRegistrationID, C as CarrierMethod, k as CarrierSettings, l as Category, m as CategoryImage, n as CategoryImageAlt, o as Company, p as CustomTipSettings, q as CustomerMarketingMessages, r as CustomerOrderMessages, D as DesignSettings, s as DownloadProductFileParams, t as DownloadProductFileResponse, F as FbMessengerSettings, u as FeatureToggle, v as FilterSection, w as FlatRate, x as FormatsAndUnits, G as GeneralInfo, y as GeoPolygon, z as GetProductParams, E as GetProductResponse, H as GetProductTypeParams, I as GetProductTypeResponse, J as GetProductVariationParams, K as GetProductVariationResponse, L as GetReviewsParams, M as GetReviewsResponse, N as GetStoreProfileParams, O as GetStoreProfileResponse, P as GiftCardProduct, Q as GiftCardSettings, R as HandlingFee, S as InstructionsForCustomer, T as Languages, U as LegalPage, V as LegalPagesSettings, W as LimitsAndRestrictions, X as LowestPriceSettings, Y as MailNotifications, Z as MailNotificationsSettings, _ as MailchimpSettings, $ as OrderInvoiceSettings, a0 as PaginatedResponse, a1 as Payment, a2 as PaymentOption, a3 as PaymentShippingSettings, a4 as PaymentSurcharge, a5 as PhoneNotifications, a6 as PostageDimensions, a7 as Product, a8 as ProductAttribute, a9 as ProductAttributeType, aa as ProductAttributeVisibility, ab as ProductBorderInfo, ac as ProductBrand, ad as ProductCategory, ae as ProductCombination, af as ProductCombinationOption, ag as ProductCompositeComponent, ah as ProductDimensions, ai as ProductDominatingColor, aj as ProductFavorites, ak as ProductFile, al as ProductFiltersSettings, am as ProductGalleryImage, an as ProductImage, ao as ProductImageAlt, ap as ProductMedia, aq as ProductMediaImage, ar as ProductMediaVideo, as as ProductOption, at as ProductOptionChoice, au as ProductRecurringChargeSettings, av as ProductRelatedCategory, aw as ProductRelatedProducts, ax as ProductShipping, ay as ProductSubscriptionSettings, az as ProductTax, aA as ProductType, aB as QueryParams, aC as Rate, aD as RateCondition, aE as Rates, aF as RatesTable, aG as RecurringSubscriptionsSettings, aH as RegistrationAnswers, aI as SalePrice, aJ as SearchCategoriesByPathParams, aK as SearchCategoriesByPathResponse, aL as SearchCategoriesParams, aM as SearchCategoriesResponse, aN as SearchProductBrandsParams, aO as SearchProductBrandsResponse, aP as SearchProductTypesResponse, aQ as SearchProductVariationsParams, aR as SearchProductVariationsResponse, aS as SearchProductsParams, aT as SearchProductsResponse, aU as Shipping, aV as ShippingOption, aW as SocialLink, aX as SocialLinksSettings, aY as SortByValues, aZ as StarterSite, a_ as StoreProfile, a$ as StoreSettings, b0 as StoreZone, b1 as SupportedPaymentMethodsStatuses, b2 as Tax, b3 as TaxRule, b4 as TaxSettings, b5 as TipsSettings, b6 as Translations, b7 as WholesalePrice } from './shared/ecom-headless.Bm1MKC5K.mjs';
|
|
5
5
|
import 'buffer';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { downloadProductFile, getApiConfig, getProduct, getProductType, getProductVariation, getReviews, getStoreProfile, initStorefrontApi, searchCategories, searchCategoriesByPath, searchProductBrands, searchProductTypes, searchProductVariations, searchProducts } from './api/index.js';
|
|
2
|
-
export { i as Cart, a as Customer, E as EcwidWidgetValues, O as OnCartChanged,
|
|
3
|
-
export { A as AddProductData, a as AddProductParameter, b as AddProductRecurringChargeSettings, B as BaseJsApiPage, c as BillingPerson, C as CartAddProductCallback, d as CartApi, e as CartCalculateTotalCallback, f as CartClearCallback, g as CartData, h as CartDominatingColor, i as CartGetCallback, j as CartGoToCheckoutCallback, k as CartImageBorderInfo, l as CartItem, m as CartMediaItem, n as CartProduct, o as CartRemoveProductCallback, p as CartRemoveProductsCallback, q as CartVideoInfo, r as CustomerApi, s as CustomerCookieConsentValues, t as CustomerData, u as CustomerGetCallback, v as CustomerSignOutCallback, E as EcwidApiPromise, J as JsApiFilterParams, w as JsApiPage, x as JsApiPageValues, L as LegalPageTypeValues, O as Order, R as RecurringChargeSettings, S as ShippingAddress, T as
|
|
2
|
+
export { i as Cart, a as Catalog, b as Customer, E as EcwidWidgetValues, c as Favorites, O as OnCartChanged, d as OnConsentChanged, e as OnPageLoad, f as OnPageLoaded, g as OnPageSwitch, h as OnSetProfile, j as Products, S as StorefrontRuntimeError, k as formatCurrency, l as getAppPublicConfig, m as getAppPublicToken, n as getInitializedWidgets, o as getOwnerId, p as getStoreId, q as getStorefrontLang, r as getTrackingConsent, s as getVisitorLocation, t as isStorefrontV3, u as openPage, v as setTrackingConsent } from './shared/ecom-headless.vv_Pbr6W.js';
|
|
3
|
+
export { A as AddProductData, a as AddProductParameter, b as AddProductRecurringChargeSettings, B as BaseJsApiPage, c as BillingPerson, C as CartAddProductCallback, d as CartApi, e as CartCalculateTotalCallback, f as CartClearCallback, g as CartData, h as CartDominatingColor, i as CartGetCallback, j as CartGoToCheckoutCallback, k as CartImageBorderInfo, l as CartItem, m as CartMediaItem, n as CartProduct, o as CartRemoveProductCallback, p as CartRemoveProductsCallback, q as CartVideoInfo, r as CustomerApi, s as CustomerCookieConsentValues, t as CustomerData, u as CustomerGetCallback, v as CustomerSignOutCallback, E as EcwidApiPromise, J as JsApiFilterParams, w as JsApiPage, x as JsApiPageValues, L as LegalPageTypeValues, O as Order, R as RecurringChargeSettings, S as ShippingAddress, y as StorefrontAppliedTax, z as StorefrontCatalogAttributeFilter, D as StorefrontCatalogFilter, F as StorefrontCatalogFilters, G as StorefrontCatalogFiltersRequest, H as StorefrontCatalogMarkerFilter, I as StorefrontCatalogOptionFilter, K as StorefrontCatalogPage, M as StorefrontCatalogPageRequest, N as StorefrontCatalogPriceFilter, P as StorefrontCatalogProductSortOrder, Q as StorefrontCatalogValuesFilter, T as StorefrontCategoryDetails, U as StorefrontCategoryMenu, V as StorefrontCategoryMenuItem, W as StorefrontCategoryMenuRequest, X as StorefrontCategorySummary, Y as StorefrontExpandedCategory, Z as StorefrontFavoritesState, _ as StorefrontFilterValue, $ as StorefrontListingRequest, a0 as StorefrontOptionChoice, a1 as StorefrontPagination, a2 as StorefrontPicture, a3 as StorefrontPriceRange, a4 as StorefrontProduct, a5 as StorefrontProductAttribute, a6 as StorefrontProductConfiguration, a7 as StorefrontProductConfigurationRequest, a8 as StorefrontProductFilters, a9 as StorefrontProductInventory, aa as StorefrontProductMedia, ab as StorefrontProductOption, ac as StorefrontProductPrice, ad as StorefrontProductRequest, ae as StorefrontPurchaseKind, af as StorefrontRelatedProductsRequest, ag as StorefrontRuntimeBridgeVersion, ah as StorefrontRuntimeCapability, ai as StorefrontRuntimeCapabilityValues, aj as StorefrontSelectedOptions, ak as StorefrontWholesalePrice, al as TrackingConsent, am as VisitorLocation, an as VisitorLocationSourceValues } from './shared/ecom-headless.UNkw31Vf.js';
|
|
4
4
|
export { A as AbandonedSales, a as Account, b as AccountBilling, c as AddressFormat, d as AdminMessages, e as ApiConfig, f as ApplePay, g as ApplePayOptions, h as AsQueryParams, B as BlackoutDates, i as BusinessHours, j as BusinessRegistrationID, C as CarrierMethod, k as CarrierSettings, l as Category, m as CategoryImage, n as CategoryImageAlt, o as Company, p as CustomTipSettings, q as CustomerMarketingMessages, r as CustomerOrderMessages, D as DesignSettings, s as DownloadProductFileParams, t as DownloadProductFileResponse, F as FbMessengerSettings, u as FeatureToggle, v as FilterSection, w as FlatRate, x as FormatsAndUnits, G as GeneralInfo, y as GeoPolygon, z as GetProductParams, E as GetProductResponse, H as GetProductTypeParams, I as GetProductTypeResponse, J as GetProductVariationParams, K as GetProductVariationResponse, L as GetReviewsParams, M as GetReviewsResponse, N as GetStoreProfileParams, O as GetStoreProfileResponse, P as GiftCardProduct, Q as GiftCardSettings, R as HandlingFee, S as InstructionsForCustomer, T as Languages, U as LegalPage, V as LegalPagesSettings, W as LimitsAndRestrictions, X as LowestPriceSettings, Y as MailNotifications, Z as MailNotificationsSettings, _ as MailchimpSettings, $ as OrderInvoiceSettings, a0 as PaginatedResponse, a1 as Payment, a2 as PaymentOption, a3 as PaymentShippingSettings, a4 as PaymentSurcharge, a5 as PhoneNotifications, a6 as PostageDimensions, a7 as Product, a8 as ProductAttribute, a9 as ProductAttributeType, aa as ProductAttributeVisibility, ab as ProductBorderInfo, ac as ProductBrand, ad as ProductCategory, ae as ProductCombination, af as ProductCombinationOption, ag as ProductCompositeComponent, ah as ProductDimensions, ai as ProductDominatingColor, aj as ProductFavorites, ak as ProductFile, al as ProductFiltersSettings, am as ProductGalleryImage, an as ProductImage, ao as ProductImageAlt, ap as ProductMedia, aq as ProductMediaImage, ar as ProductMediaVideo, as as ProductOption, at as ProductOptionChoice, au as ProductRecurringChargeSettings, av as ProductRelatedCategory, aw as ProductRelatedProducts, ax as ProductShipping, ay as ProductSubscriptionSettings, az as ProductTax, aA as ProductType, aB as QueryParams, aC as Rate, aD as RateCondition, aE as Rates, aF as RatesTable, aG as RecurringSubscriptionsSettings, aH as RegistrationAnswers, aI as SalePrice, aJ as SearchCategoriesByPathParams, aK as SearchCategoriesByPathResponse, aL as SearchCategoriesParams, aM as SearchCategoriesResponse, aN as SearchProductBrandsParams, aO as SearchProductBrandsResponse, aP as SearchProductTypesResponse, aQ as SearchProductVariationsParams, aR as SearchProductVariationsResponse, aS as SearchProductsParams, aT as SearchProductsResponse, aU as Shipping, aV as ShippingOption, aW as SocialLink, aX as SocialLinksSettings, aY as SortByValues, aZ as StarterSite, a_ as StoreProfile, a$ as StoreSettings, b0 as StoreZone, b1 as SupportedPaymentMethodsStatuses, b2 as Tax, b3 as TaxRule, b4 as TaxSettings, b5 as TipsSettings, b6 as Translations, b7 as WholesalePrice } from './shared/ecom-headless.Bm1MKC5K.js';
|
|
5
5
|
import 'buffer';
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{downloadProductFile,getApiConfig,getProduct,getProductType,getProductVariation,getReviews,getStoreProfile,initStorefrontApi,searchCategories,searchCategoriesByPath,searchProductBrands,searchProductTypes,searchProductVariations,searchProducts}from"./api/index.mjs";export{Cart,Customer,OnCartChanged,OnConsentChanged,OnPageLoad,OnPageLoaded,OnPageSwitch,OnSetProfile,formatCurrency,getAppPublicConfig,getAppPublicToken,getInitializedWidgets,getStorefrontLang,getTrackingConsent,getVisitorLocation,isStorefrontV3,openPage,setTrackingConsent}from"./
|
|
1
|
+
export{downloadProductFile,getApiConfig,getProduct,getProductType,getProductVariation,getReviews,getStoreProfile,initStorefrontApi,searchCategories,searchCategoriesByPath,searchProductBrands,searchProductTypes,searchProductVariations,searchProducts}from"./api/index.mjs";export{i as Cart,a as Catalog,b as Customer,c as Favorites,O as OnCartChanged,d as OnConsentChanged,e as OnPageLoad,f as OnPageLoaded,g as OnPageSwitch,h as OnSetProfile,j as Products,S as StorefrontRuntimeBridgeVersion,k as StorefrontRuntimeCapabilityValues,l as StorefrontRuntimeError,m as formatCurrency,n as getAppPublicConfig,o as getAppPublicToken,p as getInitializedWidgets,q as getStorefrontLang,r as getTrackingConsent,s as getVisitorLocation,t as isStorefrontV3,u as openPage,v as setTrackingConsent}from"./shared/ecom-headless.CyyXXtdO.mjs";export{g as getOwnerId,a as getStoreId}from"./shared/ecom-headless.biFHUae1.mjs";const E={UNDEFINED:"UNDEFINED",ACCEPTED:"ACCEPTED",DECLINED:"DECLINED",ANALYTICS_ONLY:"ANALYTICS_ONLY",PERSONALIZATION_ONLY:"PERSONALIZATION_ONLY"},C={MINICART:"Minicart",SEARCH_PANEL:"SearchPanel",PRODUCT_BROWSER:"ProductBrowser",CATEGORIES:"Categories",PRODUCT:"Product"},S={ACCOUNT_REGISTRATION:"ACCOUNT_REGISTRATION",ACCOUNT_RESET_PASSWORD:"ACCOUNT_RESET_PASSWORD",ACCOUNT_REVIEWS:"ACCOUNT_REVIEWS",ACCOUNT_ROOT:"ACCOUNT_ROOT",ACCOUNT_SUBSCRIPTION:"ACCOUNT_SUBSCRIPTION",CART:"CART",CATEGORY:"CATEGORY",CHECKOUT_ADDRESS:"CHECKOUT_ADDRESS",CHECKOUT_DELIVERY:"CHECKOUT_DELIVERY",CHECKOUT_ORDER_CONFIRMATION:"ORDER_CONFIRMATION",CHECKOUT_ORDER_FAILURE:"ORDER_FAILURE",CHECKOUT_PAYMENT:"CHECKOUT_PAYMENT_DETAILS",CHECKOUT_RESULT:"CHECKOUT_RESULT",CHECKOUT_TAX_INFORMATION:"CHECKOUT_TAX_INFORMATION",DOWNLOAD_ERROR:"DOWNLOAD_ERROR",FAVORITES:"FAVORITES",MISSING:"MISSING",PRODUCT:"PRODUCT",SEARCH:"SEARCH",SIGN_IN:"SIGN_IN",SUBSCRIBE:"SUBSCRIBE_PAGE",TERMS:"TERMS",UNSUBSCRIBE:"UNSUBSCRIBE_PAGE"},e={ABOUT:"about",PRIVACY_POLICY:"privacy-policy",RETURNS:"returns",SHIPPING_PAYMENT:"shipping-payment",TERMS:"terms"},A={RELEVANCE:"RELEVANCE",DEFINED_BY_STORE_OWNER:"DEFINED_BY_STORE_OWNER",ADDED_TIME_DESC:"ADDED_TIME_DESC",ADDED_TIME_ASC:"ADDED_TIME_ASC",NAME_ASC:"NAME_ASC",NAME_DESC:"NAME_DESC",PRICE_ASC:"PRICE_ASC",PRICE_DESC:"PRICE_DESC",UPDATED_TIME_ASC:"UPDATED_TIME_ASC",UPDATED_TIME_DESC:"UPDATED_TIME_DESC"},R={SHIPPING_ADDRESS:"SHIPPING_ADDRESS",BILLING_ADDRESS:"BILLING_ADDRESS",IP_ADDRESS:"IP_ADDRESS"};export{E as CustomerCookieConsentValues,C as EcwidWidgetValues,S as JsApiPageValues,e as LegalPageTypeValues,A as SortByValues,R as VisitorLocationSourceValues};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/constants/customer-cookie-consent.ts","../src/constants/ecwid-widget.ts","../src/constants/js-api-page.ts","../src/constants/legal-page-type.ts","../src/constants/sort-by.ts","../src/constants/visitor-location-source.ts"],"sourcesContent":["export const CustomerCookieConsentValues = {\n /** Customer hasn't given their consent yet. */\n UNDEFINED: 'UNDEFINED',\n /** Collect all types of cookies. */\n ACCEPTED: 'ACCEPTED',\n /** Collect only essential cookies. */\n DECLINED: 'DECLINED',\n /** Collect essential and analytics cookies only. */\n ANALYTICS_ONLY: 'ANALYTICS_ONLY',\n /** Collect essential and personalization cookies. */\n PERSONALIZATION_ONLY: 'PERSONALIZATION_ONLY',\n} as const;\n\nexport type CustomerCookieConsentType = typeof CustomerCookieConsentValues[keyof typeof CustomerCookieConsentValues];\n","export const EcwidWidgetValues = {\n /** Minicart widget */\n MINICART: 'Minicart',\n /** Search widget */\n SEARCH_PANEL: 'SearchPanel',\n /** Main storefront widget, contains full Ecwid store */\n PRODUCT_BROWSER: 'ProductBrowser',\n /** Horizontal categories menu widget */\n CATEGORIES: 'Categories',\n /** Widget with an embedded product page */\n PRODUCT: 'Product',\n} as const;\n\nexport type EcwidWidgetType = typeof EcwidWidgetValues[keyof typeof EcwidWidgetValues];\n","export const JsApiPageValues = {\n ACCOUNT_REGISTRATION: 'ACCOUNT_REGISTRATION',\n ACCOUNT_RESET_PASSWORD: 'ACCOUNT_RESET_PASSWORD',\n ACCOUNT_REVIEWS: 'ACCOUNT_REVIEWS',\n ACCOUNT_ROOT: 'ACCOUNT_ROOT',\n ACCOUNT_SUBSCRIPTION: 'ACCOUNT_SUBSCRIPTION',\n CART: 'CART',\n CATEGORY: 'CATEGORY',\n CHECKOUT_ADDRESS: 'CHECKOUT_ADDRESS',\n CHECKOUT_DELIVERY: 'CHECKOUT_DELIVERY',\n CHECKOUT_ORDER_CONFIRMATION: 'ORDER_CONFIRMATION',\n CHECKOUT_ORDER_FAILURE: 'ORDER_FAILURE',\n CHECKOUT_PAYMENT: 'CHECKOUT_PAYMENT_DETAILS',\n CHECKOUT_RESULT: 'CHECKOUT_RESULT',\n CHECKOUT_TAX_INFORMATION: 'CHECKOUT_TAX_INFORMATION',\n DOWNLOAD_ERROR: 'DOWNLOAD_ERROR',\n FAVORITES: 'FAVORITES',\n MISSING: 'MISSING',\n PRODUCT: 'PRODUCT',\n SEARCH: 'SEARCH',\n SIGN_IN: 'SIGN_IN',\n SUBSCRIBE: 'SUBSCRIBE_PAGE',\n TERMS: 'TERMS',\n UNSUBSCRIBE: 'UNSUBSCRIBE_PAGE',\n} as const;\n\nexport type JsApiPageType = typeof JsApiPageValues[keyof typeof JsApiPageValues];\n","export const LegalPageTypeValues = {\n ABOUT: 'about',\n PRIVACY_POLICY: 'privacy-policy',\n RETURNS: 'returns',\n SHIPPING_PAYMENT: 'shipping-payment',\n TERMS: 'terms',\n} as const;\n\nexport type LegalPageType = typeof LegalPageTypeValues[keyof typeof LegalPageTypeValues];\n","export const SortByValues = {\n RELEVANCE: 'RELEVANCE',\n DEFINED_BY_STORE_OWNER: 'DEFINED_BY_STORE_OWNER',\n ADDED_TIME_DESC: 'ADDED_TIME_DESC',\n ADDED_TIME_ASC: 'ADDED_TIME_ASC',\n NAME_ASC: 'NAME_ASC',\n NAME_DESC: 'NAME_DESC',\n PRICE_ASC: 'PRICE_ASC',\n PRICE_DESC: 'PRICE_DESC',\n UPDATED_TIME_ASC: 'UPDATED_TIME_ASC',\n UPDATED_TIME_DESC: 'UPDATED_TIME_DESC',\n} as const;\n\nexport type SortByType = typeof SortByValues[keyof typeof SortByValues];\n","export const VisitorLocationSourceValues = {\n SHIPPING_ADDRESS: 'SHIPPING_ADDRESS',\n BILLING_ADDRESS: 'BILLING_ADDRESS',\n IP_ADDRESS: 'IP_ADDRESS',\n} as const;\n\nexport type VisitorLocationSourceType = typeof VisitorLocationSourceValues[keyof typeof VisitorLocationSourceValues];\n"],"names":["CustomerCookieConsentValues","EcwidWidgetValues","JsApiPageValues","LegalPageTypeValues","SortByValues","VisitorLocationSourceValues"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/constants/customer-cookie-consent.ts","../src/constants/ecwid-widget.ts","../src/constants/js-api-page.ts","../src/constants/legal-page-type.ts","../src/constants/sort-by.ts","../src/constants/visitor-location-source.ts"],"sourcesContent":["export const CustomerCookieConsentValues = {\n /** Customer hasn't given their consent yet. */\n UNDEFINED: 'UNDEFINED',\n /** Collect all types of cookies. */\n ACCEPTED: 'ACCEPTED',\n /** Collect only essential cookies. */\n DECLINED: 'DECLINED',\n /** Collect essential and analytics cookies only. */\n ANALYTICS_ONLY: 'ANALYTICS_ONLY',\n /** Collect essential and personalization cookies. */\n PERSONALIZATION_ONLY: 'PERSONALIZATION_ONLY',\n} as const;\n\nexport type CustomerCookieConsentType = typeof CustomerCookieConsentValues[keyof typeof CustomerCookieConsentValues];\n","export const EcwidWidgetValues = {\n /** Minicart widget */\n MINICART: 'Minicart',\n /** Search widget */\n SEARCH_PANEL: 'SearchPanel',\n /** Main storefront widget, contains full Ecwid store */\n PRODUCT_BROWSER: 'ProductBrowser',\n /** Horizontal categories menu widget */\n CATEGORIES: 'Categories',\n /** Widget with an embedded product page */\n PRODUCT: 'Product',\n} as const;\n\nexport type EcwidWidgetType = typeof EcwidWidgetValues[keyof typeof EcwidWidgetValues];\n","export const JsApiPageValues = {\n ACCOUNT_REGISTRATION: 'ACCOUNT_REGISTRATION',\n ACCOUNT_RESET_PASSWORD: 'ACCOUNT_RESET_PASSWORD',\n ACCOUNT_REVIEWS: 'ACCOUNT_REVIEWS',\n ACCOUNT_ROOT: 'ACCOUNT_ROOT',\n ACCOUNT_SUBSCRIPTION: 'ACCOUNT_SUBSCRIPTION',\n CART: 'CART',\n CATEGORY: 'CATEGORY',\n CHECKOUT_ADDRESS: 'CHECKOUT_ADDRESS',\n CHECKOUT_DELIVERY: 'CHECKOUT_DELIVERY',\n CHECKOUT_ORDER_CONFIRMATION: 'ORDER_CONFIRMATION',\n CHECKOUT_ORDER_FAILURE: 'ORDER_FAILURE',\n CHECKOUT_PAYMENT: 'CHECKOUT_PAYMENT_DETAILS',\n CHECKOUT_RESULT: 'CHECKOUT_RESULT',\n CHECKOUT_TAX_INFORMATION: 'CHECKOUT_TAX_INFORMATION',\n DOWNLOAD_ERROR: 'DOWNLOAD_ERROR',\n FAVORITES: 'FAVORITES',\n MISSING: 'MISSING',\n PRODUCT: 'PRODUCT',\n SEARCH: 'SEARCH',\n SIGN_IN: 'SIGN_IN',\n SUBSCRIBE: 'SUBSCRIBE_PAGE',\n TERMS: 'TERMS',\n UNSUBSCRIBE: 'UNSUBSCRIBE_PAGE',\n} as const;\n\nexport type JsApiPageType = typeof JsApiPageValues[keyof typeof JsApiPageValues];\n","export const LegalPageTypeValues = {\n ABOUT: 'about',\n PRIVACY_POLICY: 'privacy-policy',\n RETURNS: 'returns',\n SHIPPING_PAYMENT: 'shipping-payment',\n TERMS: 'terms',\n} as const;\n\nexport type LegalPageType = typeof LegalPageTypeValues[keyof typeof LegalPageTypeValues];\n","export const SortByValues = {\n RELEVANCE: 'RELEVANCE',\n DEFINED_BY_STORE_OWNER: 'DEFINED_BY_STORE_OWNER',\n ADDED_TIME_DESC: 'ADDED_TIME_DESC',\n ADDED_TIME_ASC: 'ADDED_TIME_ASC',\n NAME_ASC: 'NAME_ASC',\n NAME_DESC: 'NAME_DESC',\n PRICE_ASC: 'PRICE_ASC',\n PRICE_DESC: 'PRICE_DESC',\n UPDATED_TIME_ASC: 'UPDATED_TIME_ASC',\n UPDATED_TIME_DESC: 'UPDATED_TIME_DESC',\n} as const;\n\nexport type SortByType = typeof SortByValues[keyof typeof SortByValues];\n","export const VisitorLocationSourceValues = {\n SHIPPING_ADDRESS: 'SHIPPING_ADDRESS',\n BILLING_ADDRESS: 'BILLING_ADDRESS',\n IP_ADDRESS: 'IP_ADDRESS',\n} as const;\n\nexport type VisitorLocationSourceType = typeof VisitorLocationSourceValues[keyof typeof VisitorLocationSourceValues];\n"],"names":["CustomerCookieConsentValues","EcwidWidgetValues","JsApiPageValues","LegalPageTypeValues","SortByValues","VisitorLocationSourceValues"],"mappings":"w4BAAO,MAAMA,EAA8B,CAEzC,UAAW,YAEX,SAAU,WAEV,SAAU,WAEV,eAAgB,iBAEhB,qBAAsB,sBACxB,ECXaC,EAAoB,CAE/B,SAAU,WAEV,aAAc,cAEd,gBAAiB,iBAEjB,WAAY,aAEZ,QAAS,SACX,ECXaC,EAAkB,CAC7B,qBAAsB,uBACtB,uBAAwB,yBACxB,gBAAiB,kBACjB,aAAc,eACd,qBAAsB,uBACtB,KAAM,OACN,SAAU,WACV,iBAAkB,mBAClB,kBAAmB,oBACnB,4BAA6B,qBAC7B,uBAAwB,gBACxB,iBAAkB,2BAClB,gBAAiB,kBACjB,yBAA0B,2BAC1B,eAAgB,iBAChB,UAAW,YACX,QAAS,UACT,QAAS,UACT,OAAQ,SACR,QAAS,UACT,UAAW,iBACX,MAAO,QACP,YAAa,kBACf,ECxBaC,EAAsB,CACjC,MAAO,QACP,eAAgB,iBAChB,QAAS,UACT,iBAAkB,mBAClB,MAAO,OACT,ECNaC,EAAe,CAC1B,UAAW,YACX,uBAAwB,yBACxB,gBAAiB,kBACjB,eAAgB,iBAChB,SAAU,WACV,UAAW,YACX,UAAW,YACX,WAAY,aACZ,iBAAkB,mBAClB,kBAAmB,mBACrB,ECXaC,EAA8B,CACzC,iBAAkB,mBAClB,gBAAiB,kBACjB,WAAY,YACd"}
|