@retaila/shared-types 1.1.111 → 1.1.113
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/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1577,6 +1577,12 @@ interface Cart {
|
|
|
1577
1577
|
description?: string;
|
|
1578
1578
|
isAutomatic?: boolean;
|
|
1579
1579
|
}[];
|
|
1580
|
+
freeShippingProgress?: {
|
|
1581
|
+
threshold: number;
|
|
1582
|
+
currentSubtotal: number;
|
|
1583
|
+
remaining: number;
|
|
1584
|
+
qualified: boolean;
|
|
1585
|
+
} | null;
|
|
1580
1586
|
}
|
|
1581
1587
|
interface CartItem {
|
|
1582
1588
|
id: string;
|
|
@@ -2166,7 +2172,8 @@ interface ButtonStyle {
|
|
|
2166
2172
|
backgroundColor: string;
|
|
2167
2173
|
textColor: string;
|
|
2168
2174
|
borderColor: string;
|
|
2169
|
-
|
|
2175
|
+
/** Number (legacy) or CSS string e.g. "6px 6px 6px 6px" */
|
|
2176
|
+
borderRadius: number | string;
|
|
2170
2177
|
shadow: string;
|
|
2171
2178
|
hoverBackgroundColor: string;
|
|
2172
2179
|
hoverTextColor: string;
|
|
@@ -2748,6 +2755,7 @@ declare enum AnalyticsEventType {
|
|
|
2748
2755
|
PRODUCT_VIEW = "product_view",
|
|
2749
2756
|
PRODUCT_LIST_VIEW = "product_list_view",
|
|
2750
2757
|
PRODUCT_SEARCH = "product_search",
|
|
2758
|
+
SEARCH_SUGGESTION_CLICK = "search_suggestion_click",
|
|
2751
2759
|
ADD_TO_CART = "add_to_cart",
|
|
2752
2760
|
REMOVE_FROM_CART = "remove_from_cart",
|
|
2753
2761
|
UPDATE_CART_QUANTITY = "update_cart_quantity",
|
package/dist/index.d.ts
CHANGED
|
@@ -1577,6 +1577,12 @@ interface Cart {
|
|
|
1577
1577
|
description?: string;
|
|
1578
1578
|
isAutomatic?: boolean;
|
|
1579
1579
|
}[];
|
|
1580
|
+
freeShippingProgress?: {
|
|
1581
|
+
threshold: number;
|
|
1582
|
+
currentSubtotal: number;
|
|
1583
|
+
remaining: number;
|
|
1584
|
+
qualified: boolean;
|
|
1585
|
+
} | null;
|
|
1580
1586
|
}
|
|
1581
1587
|
interface CartItem {
|
|
1582
1588
|
id: string;
|
|
@@ -2166,7 +2172,8 @@ interface ButtonStyle {
|
|
|
2166
2172
|
backgroundColor: string;
|
|
2167
2173
|
textColor: string;
|
|
2168
2174
|
borderColor: string;
|
|
2169
|
-
|
|
2175
|
+
/** Number (legacy) or CSS string e.g. "6px 6px 6px 6px" */
|
|
2176
|
+
borderRadius: number | string;
|
|
2170
2177
|
shadow: string;
|
|
2171
2178
|
hoverBackgroundColor: string;
|
|
2172
2179
|
hoverTextColor: string;
|
|
@@ -2748,6 +2755,7 @@ declare enum AnalyticsEventType {
|
|
|
2748
2755
|
PRODUCT_VIEW = "product_view",
|
|
2749
2756
|
PRODUCT_LIST_VIEW = "product_list_view",
|
|
2750
2757
|
PRODUCT_SEARCH = "product_search",
|
|
2758
|
+
SEARCH_SUGGESTION_CLICK = "search_suggestion_click",
|
|
2751
2759
|
ADD_TO_CART = "add_to_cart",
|
|
2752
2760
|
REMOVE_FROM_CART = "remove_from_cart",
|
|
2753
2761
|
UPDATE_CART_QUANTITY = "update_cart_quantity",
|
package/dist/index.js
CHANGED
|
@@ -1009,6 +1009,7 @@ var AnalyticsEventType = /* @__PURE__ */ ((AnalyticsEventType2) => {
|
|
|
1009
1009
|
AnalyticsEventType2["PRODUCT_VIEW"] = "product_view";
|
|
1010
1010
|
AnalyticsEventType2["PRODUCT_LIST_VIEW"] = "product_list_view";
|
|
1011
1011
|
AnalyticsEventType2["PRODUCT_SEARCH"] = "product_search";
|
|
1012
|
+
AnalyticsEventType2["SEARCH_SUGGESTION_CLICK"] = "search_suggestion_click";
|
|
1012
1013
|
AnalyticsEventType2["ADD_TO_CART"] = "add_to_cart";
|
|
1013
1014
|
AnalyticsEventType2["REMOVE_FROM_CART"] = "remove_from_cart";
|
|
1014
1015
|
AnalyticsEventType2["UPDATE_CART_QUANTITY"] = "update_cart_quantity";
|