@tapcart/mobile-components 0.7.38 → 0.7.40

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.
@@ -0,0 +1,14 @@
1
+ type UseOrderDetailsProps = {
2
+ variables: Record<string, any>;
3
+ apiUrl: string;
4
+ appId: string;
5
+ language: string;
6
+ country: string;
7
+ mock?: boolean;
8
+ };
9
+ type UseProductsReturn = {
10
+ orderDetails: Record<string, any>;
11
+ };
12
+ export declare function useOrderDetails({ variables, apiUrl, appId, language, country, mock, }: UseOrderDetailsProps): UseProductsReturn;
13
+ export {};
14
+ //# sourceMappingURL=use-order-details.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-order-details.d.ts","sourceRoot":"","sources":["../../../components/hooks/use-order-details.ts"],"names":[],"mappings":"AAMA,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC9B,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAClC,CAAA;AAyJD,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,MAAM,EACN,KAAK,EACL,QAAQ,EACR,OAAO,EACP,IAAY,GACb,EAAE,oBAAoB,GAAG,iBAAiB,CA0C1C"}
@@ -0,0 +1,146 @@
1
+ "use client";
2
+ import { getIdFromGid } from "../../lib/utils";
3
+ import { useProducts } from "./use-products";
4
+ import { useEffect, useMemo, useState } from "react";
5
+ const getSellingPlan = (lineItems, productGid) => {
6
+ var _a, _b;
7
+ const productId = getIdFromGid(productGid);
8
+ const item = lineItems.find((item) => { var _a, _b; return ((_b = (_a = item === null || item === void 0 ? void 0 : item.variant) === null || _a === void 0 ? void 0 : _a.product) === null || _b === void 0 ? void 0 : _b.id) === productId; });
9
+ if (!item) {
10
+ return;
11
+ }
12
+ return (_b = (_a = item === null || item === void 0 ? void 0 : item.sellingPlanAllocation) === null || _a === void 0 ? void 0 : _a.sellingPlan) === null || _b === void 0 ? void 0 : _b.name;
13
+ };
14
+ const getSalesAmount = (lines) => {
15
+ return lines === null || lines === void 0 ? void 0 : lines.reduce((acc, line) => {
16
+ const sale = line.sale ? parseFloat(line.sale) : 0;
17
+ return acc + sale * line.quantity;
18
+ }, 0);
19
+ };
20
+ const getSubtotal = (lines) => {
21
+ return lines === null || lines === void 0 ? void 0 : lines.reduce((acc, line) => {
22
+ const price = parseFloat(line.compareAtPrice ? line.compareAtPrice.amount : line.price.amount);
23
+ return acc + price * line.quantity;
24
+ }, 0);
25
+ };
26
+ const findProductById = (products, productId) => products.find((product) => product.id === productId);
27
+ const findVariantById = (variants, merchandiseId) => variants.find((variant) => variant.id === merchandiseId);
28
+ const calculateSale = (compareAtPrice, price) => parseFloat(compareAtPrice) - parseFloat(price);
29
+ const updateLineWithVariantDetails = (line, variant) => {
30
+ var _a;
31
+ line.compareAtPrice = variant.compareAtPrice;
32
+ line.variantName = variant.title;
33
+ line.sale = ((_a = variant.compareAtPrice) === null || _a === void 0 ? void 0 : _a.amount)
34
+ ? calculateSale(variant.compareAtPrice.amount, variant.price.amount)
35
+ : 0;
36
+ };
37
+ const updateLineDetails = (line, products, checkoutData) => {
38
+ const product = findProductById(products, line.productId);
39
+ if (!product)
40
+ return;
41
+ line.title = product.title;
42
+ line.vendor = product.vendor;
43
+ line.sellingPlan = getSellingPlan(checkoutData.lineItems, line.productId);
44
+ const productVariant = findVariantById(product.variants, line.merchandiseId);
45
+ if (productVariant) {
46
+ updateLineWithVariantDetails(line, productVariant);
47
+ }
48
+ };
49
+ const getProductIds = (lines) => lines === null || lines === void 0 ? void 0 : lines.map((line) => line.productId);
50
+ const calculateCompareAtPrice = (variant) => {
51
+ var _a, _b, _c, _d;
52
+ return ({
53
+ amount: (_b = (_a = variant === null || variant === void 0 ? void 0 : variant.compareAtPrice) === null || _a === void 0 ? void 0 : _a.amount) !== null && _b !== void 0 ? _b : parseFloat(variant === null || variant === void 0 ? void 0 : variant.price.amount) + 20,
54
+ currencyCode: (_d = (_c = variant === null || variant === void 0 ? void 0 : variant.compareAtPrice) === null || _c === void 0 ? void 0 : _c.currencyCode) !== null && _d !== void 0 ? _d : "USD",
55
+ });
56
+ };
57
+ const createPaymentMethods = () => [
58
+ { details: { currency: "USD", amount: 20 }, type: "giftCard" },
59
+ ];
60
+ const createCartLines = (product, variant, compareAtPrice) => {
61
+ var _a, _b;
62
+ return [
63
+ {
64
+ title: product.title,
65
+ merchandiseId: variant.id,
66
+ vendor: product.vendor,
67
+ sellingPlan: "Subscription every 2 weeks",
68
+ image: {
69
+ lg: (_a = product.featuredImage) === null || _a === void 0 ? void 0 : _a.url,
70
+ altText: (_b = product.featuredImage) === null || _b === void 0 ? void 0 : _b.altText,
71
+ },
72
+ quantity: 1,
73
+ price: variant === null || variant === void 0 ? void 0 : variant.price,
74
+ compareAtPrice,
75
+ variantName: variant.title,
76
+ sale: calculateSale(compareAtPrice.amount, variant.price.amount),
77
+ },
78
+ ];
79
+ };
80
+ const calculateCartPrice = (variant, lines) => {
81
+ var _a;
82
+ const subtotal = (_a = calculateCompareAtPrice(variant)) === null || _a === void 0 ? void 0 : _a.amount;
83
+ const salesAmount = getSalesAmount(lines);
84
+ const discounts = [
85
+ {
86
+ amount: { currencyCode: "USD", amount: 5.0 },
87
+ title: "WELCOME20",
88
+ valueType: "percentage",
89
+ value: 15,
90
+ applicationType: "code",
91
+ },
92
+ ];
93
+ const taxes = { amount: 5.0, currencyCode: "USD" };
94
+ const shipping = { amount: 0, currencyCode: "USD" };
95
+ const total = {
96
+ amount: subtotal -
97
+ salesAmount -
98
+ discounts[0].amount.amount -
99
+ 20 + // Payment method amount
100
+ taxes.amount,
101
+ currencyCode: "USD",
102
+ };
103
+ return { subtotal, salesAmount, discounts, taxes, shipping, total };
104
+ };
105
+ const updateOrderDetails = (orderDetails, products) => {
106
+ const product = products[0];
107
+ const variant = product.variants[0];
108
+ const compareAtPrice = calculateCompareAtPrice(variant);
109
+ orderDetails.paymentMethods = createPaymentMethods();
110
+ orderDetails.cart = {
111
+ lines: createCartLines(product, variant, compareAtPrice),
112
+ };
113
+ orderDetails.cart.price = calculateCartPrice(variant, orderDetails.cart.lines);
114
+ };
115
+ export function useOrderDetails({ variables, apiUrl, appId, language, country, mock = false, }) {
116
+ const [orderDetails, setOrderDetails] = useState({});
117
+ const { products } = useProducts({
118
+ productIds: useMemo(() => { var _a, _b; return (!mock ? getProductIds((_b = (_a = variables === null || variables === void 0 ? void 0 : variables.orderDetails) === null || _a === void 0 ? void 0 : _a.cart) === null || _b === void 0 ? void 0 : _b.lines) : []); }, [mock, variables]),
119
+ productHandles: [],
120
+ baseURL: apiUrl,
121
+ queryVariables: {
122
+ language,
123
+ country,
124
+ appId,
125
+ },
126
+ mock,
127
+ });
128
+ useEffect(() => {
129
+ var _a, _b, _c, _d;
130
+ if (products.length > 0) {
131
+ const updatedOrderDetails = Object.assign({}, variables === null || variables === void 0 ? void 0 : variables.orderDetails);
132
+ if (mock) {
133
+ updateOrderDetails(updatedOrderDetails, products);
134
+ }
135
+ else {
136
+ (_b = (_a = updatedOrderDetails === null || updatedOrderDetails === void 0 ? void 0 : updatedOrderDetails.cart) === null || _a === void 0 ? void 0 : _a.lines) === null || _b === void 0 ? void 0 : _b.forEach((line) => updateLineDetails(line, products, variables.checkoutData));
137
+ updatedOrderDetails.cart.price.salesAmount = getSalesAmount((_c = updatedOrderDetails === null || updatedOrderDetails === void 0 ? void 0 : updatedOrderDetails.cart) === null || _c === void 0 ? void 0 : _c.lines);
138
+ updatedOrderDetails.cart.price.subtotal = getSubtotal((_d = updatedOrderDetails === null || updatedOrderDetails === void 0 ? void 0 : updatedOrderDetails.cart) === null || _d === void 0 ? void 0 : _d.lines);
139
+ }
140
+ setOrderDetails(updatedOrderDetails);
141
+ }
142
+ }, [products, products, mock, variables === null || variables === void 0 ? void 0 : variables.orderDetails]);
143
+ return {
144
+ orderDetails,
145
+ };
146
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"use-reviews.d.ts","sourceRoot":"","sources":["../../../components/hooks/use-reviews.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAGtF,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACxC,QAAQ,EAAE,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;IAClB,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC;IACjB,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,eAAe,CAAC;IACjF,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAA;AAED,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,iBAAiB,GAAG,cAAc,GAAG,gBAAgB,GAAG,IAAI,CAAA;IAClE,KAAK,EAAE,GAAG,CAAA;IACV,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,CAAC,EAAE,GAAG,CAAA;IACrB,oBAAoB,CAAC,EAAE,GAAG,CAAA;CAC3B,CAAA;AAiDD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,GA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;AAiDD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,GAAG,gBAAgB,CA6D1E;AAED,KAAK,wBAAwB,GAAG,gBAAgB,GAAG;IACjD,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAC;CACtC,CAAA;AAGD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,GAAG,wBAAwB,CAyI1F"}
@@ -49,15 +49,6 @@ const mockStarDistribution = {
49
49
  5: 0,
50
50
  };
51
51
  export function useReviews(props) {
52
- if (props && !props.provider) {
53
- return {
54
- data: null,
55
- error: null,
56
- isLoading: false,
57
- reviewsMockData,
58
- mockStarDistribution,
59
- };
60
- }
61
52
  let url = null;
62
53
  if (props) {
63
54
  const { baseURL, productId, provider, dataType, searchText, ratings, topics, sortBy, ascending, perPage, page, limit } = props;
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from "./components/hooks/use-collection";
4
4
  export * from "./components/hooks/use-infinite-scroll";
5
5
  export * from "./components/hooks/use-recommendations";
6
6
  export * from "./components/hooks/use-products";
7
+ export * from "./components/hooks/use-order-details";
7
8
  export * from "./components/hooks/use-scroll-direction";
8
9
  export * from "./components/hooks/use-sort-filter";
9
10
  export * from "./components/hooks/use-product-options";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,EAAE,EACF,GAAG,EACH,QAAQ,EACR,4BAA4B,EAC5B,mBAAmB,EACnB,YAAY,EACZ,yBAAyB,EACzB,4BAA4B,EAC5B,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,4BAA4B,EAC5B,eAAe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A6B,CAAA;AAC3C,cAAc,kDAAkD,CAAA;AAChE,cAAc,gCAAgC,CAAA;AAC9C,cAAc,oCAAoC,CAAA;AAClD,cAAc,mCAAmC,CAAA;AACjD,cAAc,aAAa,CAAA;AAC3B,cAAc,6CAA6C,CAAA;AAC3D,cAAc,kDAAkD,CAAA;AAChE,cAAc,qBAAqB,CAAA"}
package/dist/index.js CHANGED
@@ -5,6 +5,7 @@ export * from "./components/hooks/use-collection";
5
5
  export * from "./components/hooks/use-infinite-scroll";
6
6
  export * from "./components/hooks/use-recommendations";
7
7
  export * from "./components/hooks/use-products";
8
+ export * from "./components/hooks/use-order-details";
8
9
  export * from "./components/hooks/use-scroll-direction";
9
10
  export * from "./components/hooks/use-sort-filter";
10
11
  export * from "./components/hooks/use-product-options";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapcart/mobile-components",
3
- "version": "0.7.38",
3
+ "version": "0.7.40",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "style": "dist/styles.css",