@tapcart/mobile-components 0.7.11 → 0.7.13

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.
@@ -1,9 +1,4 @@
1
- interface Collection {
2
- id: string;
3
- title: string;
4
- handle: string;
5
- products: Product[];
6
- }
1
+ import { Collection } from "app-studio-types";
7
2
  interface UseCollectionProps {
8
3
  apiUrl: string;
9
4
  appId: string;
@@ -13,12 +8,10 @@ interface UseCollectionProps {
13
8
  language: string;
14
9
  getCollections?: boolean;
15
10
  limit?: number;
11
+ metafields?: string;
16
12
  }
17
- interface Product {
18
- handle: string;
19
- }
20
- export declare const useCollection: ({ apiUrl, appId, collectionId, collectionHandle, collectionIdList, language, limit, getCollections, }: UseCollectionProps) => {
21
- collections: Collection[] | null;
13
+ export declare const useCollection: ({ apiUrl, appId, collectionId, collectionHandle, collectionIdList, language, limit, getCollections, metafields, }: UseCollectionProps) => {
14
+ collections: Collection[];
22
15
  specificCollection: Collection | null;
23
16
  loading: boolean;
24
17
  error: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"use-collection.d.ts","sourceRoot":"","sources":["../../../components/hooks/use-collection.ts"],"names":[],"mappings":"AAGA,UAAU,UAAU;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,OAAO,EAAE,CAAA;CACpB;AAED,UAAU,kBAAkB;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,UAAU,OAAO;IACf,MAAM,EAAE,MAAM,CAAA;CAEf;AA6ED,eAAO,MAAM,aAAa,0GASvB,kBAAkB;;;;;CA0DpB,CAAA"}
1
+ {"version":3,"file":"use-collection.d.ts","sourceRoot":"","sources":["../../../components/hooks/use-collection.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAG7C,UAAU,kBAAkB;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAqFD,eAAO,MAAM,aAAa,sHAUvB,kBAAkB;;;;;CA6DpB,CAAA"}
@@ -27,14 +27,15 @@ const fetchWrapper = (url, errorCallback) => __awaiter(void 0, void 0, void 0, f
27
27
  errorCallback(error instanceof Error ? error.message : "An unknown error occurred.");
28
28
  }
29
29
  });
30
- const fetchCollection = (apiUrl, language, setError, collectionId = "", collectionHandle = "") => __awaiter(void 0, void 0, void 0, function* () {
30
+ const fetchCollection = (apiUrl, language, setError, collectionId = "", collectionHandle = "", metafields = "") => __awaiter(void 0, void 0, void 0, function* () {
31
31
  const collectionBy = collectionHandle ? "by-handle" : "by-id";
32
32
  const params = new URLSearchParams({
33
33
  collectionHandle: collectionHandle,
34
34
  collectionId: collectionId,
35
35
  language,
36
- }).toString();
37
- return yield fetchWrapper(`${apiUrl}/collections/${collectionBy}?${params}`, setError);
36
+ metafields,
37
+ });
38
+ return yield fetchWrapper(`${apiUrl}/collections/${collectionBy}?${params.toString()}`, setError);
38
39
  });
39
40
  const fetchAllCollections = (apiUrl, setError, limit = 100) => __awaiter(void 0, void 0, void 0, function* () {
40
41
  const limitParam = new URLSearchParams({
@@ -42,8 +43,8 @@ const fetchAllCollections = (apiUrl, setError, limit = 100) => __awaiter(void 0,
42
43
  }).toString();
43
44
  return yield fetchWrapper(`${apiUrl}/collections/by-app-id?${limitParam}`, setError);
44
45
  });
45
- export const useCollection = ({ apiUrl, appId, collectionId, collectionHandle, collectionIdList, language, limit = 100, getCollections = false, }) => {
46
- const [collections, setCollections] = useState(null);
46
+ export const useCollection = ({ apiUrl, appId, collectionId, collectionHandle, collectionIdList, language, limit = 100, getCollections = false, metafields, }) => {
47
+ const [collections, setCollections] = useState([]);
47
48
  const [specificCollection, setSpecificCollection] = useState(null);
48
49
  const [loading, setLoading] = useState(true);
49
50
  const [error, setError] = useState(null);
@@ -52,7 +53,7 @@ export const useCollection = ({ apiUrl, appId, collectionId, collectionHandle, c
52
53
  try {
53
54
  if (getCollections) {
54
55
  const collections = yield fetchAllCollections(apiUrl, setError, limit);
55
- return setCollections(collections);
56
+ return setCollections(collections !== null && collections !== void 0 ? collections : []);
56
57
  }
57
58
  if (collectionIdList === null || collectionIdList === void 0 ? void 0 : collectionIdList.length) {
58
59
  const collections = yield Promise.all(collectionIdList.map((id) => fetchCollection(apiUrl, language, setError, id)));
@@ -60,7 +61,7 @@ export const useCollection = ({ apiUrl, appId, collectionId, collectionHandle, c
60
61
  return setCollections(filteredCollections);
61
62
  }
62
63
  if (collectionId || collectionHandle) {
63
- const collection = yield fetchCollection(apiUrl, language, setError, collectionId, collectionHandle);
64
+ const collection = yield fetchCollection(apiUrl, language, setError, collectionId, collectionHandle, metafields);
64
65
  return setSpecificCollection(collection);
65
66
  }
66
67
  }
@@ -82,6 +83,7 @@ export const useCollection = ({ apiUrl, appId, collectionId, collectionHandle, c
82
83
  getCollections,
83
84
  limit,
84
85
  collectionIdList,
86
+ metafields,
85
87
  ]);
86
88
  return { collections, specificCollection, loading, error };
87
89
  };
@@ -12,6 +12,7 @@ type UseReviewsProps = {
12
12
  ascending: boolean;
13
13
  perPage: number;
14
14
  page: number;
15
+ limit: number;
15
16
  };
16
17
  type UseReviewsReturn = {
17
18
  data: ReviewSummaryData | ReviewMetaData | ReviewSearchData | null;
@@ -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;CACd,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;CACnB,CAAA;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,GAAG,gBAAgB,CAwD1E;AAED,KAAK,wBAAwB,GAAG,gBAAgB,GAAG;IACjD,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAC;CACtC,CAAA;AAGD,wBAAgB,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AK,EAAE,eAAe,GAAG,IAAI,GAAG,wBAAwB,CAyI1F"}
@@ -6,7 +6,7 @@ import { useInView } from 'react-intersection-observer';
6
6
  export function useReviews(props) {
7
7
  let url = null;
8
8
  if (props) {
9
- const { baseURL, productId, provider, dataType, searchText, ratings, topics, sortBy, ascending, perPage, page } = props;
9
+ const { baseURL, productId, provider, dataType, searchText, ratings, topics, sortBy, ascending, perPage, page, limit } = props;
10
10
  let queryParams = new URLSearchParams();
11
11
  if (productId.length > 0) {
12
12
  queryParams.set("id", productId);
@@ -36,6 +36,9 @@ export function useReviews(props) {
36
36
  if (page) {
37
37
  queryParams.set("page", String(page));
38
38
  }
39
+ if (limit) {
40
+ queryParams.set("limit", String(limit));
41
+ }
39
42
  if (dataType === null || productId === null || productId.length === 0) {
40
43
  url = null;
41
44
  }
@@ -58,7 +61,7 @@ export function useReviewsInfinite(props) {
58
61
  let baseURL = "";
59
62
  let queryParams = new URLSearchParams();
60
63
  if (props) {
61
- const { productId, provider, dataType, searchText, ratings, topics, sortBy, ascending, perPage } = props;
64
+ const { productId, provider, dataType, searchText, ratings, topics, sortBy, ascending, perPage, limit } = props;
62
65
  baseURL = props.baseURL;
63
66
  if (productId.length > 0) {
64
67
  queryParams.set("id", productId);
@@ -85,6 +88,9 @@ export function useReviewsInfinite(props) {
85
88
  if (perPage) {
86
89
  queryParams.set("perPage", String(perPage));
87
90
  }
91
+ if (limit) {
92
+ queryParams.set("limit", String(limit));
93
+ }
88
94
  if (dataType === null || productId === null || productId.length === 0) {
89
95
  url = null;
90
96
  }
@@ -94,12 +100,12 @@ export function useReviewsInfinite(props) {
94
100
  }
95
101
  const isEndReached = useRef(false);
96
102
  const getKey = (pageIndex, previousPageData) => {
97
- var _a, _b;
103
+ var _a, _b, _c;
104
+ const dataType = queryParams.get("dataType") === "null" ? null : queryParams.get("dataType");
105
+ if (dataType == null) {
106
+ return null;
107
+ }
98
108
  if ((props === null || props === void 0 ? void 0 : props.provider) === "yotpo") {
99
- const dataType = queryParams.get("dataType") === "null" ? null : queryParams.get("dataType");
100
- if (dataType == null) {
101
- return null;
102
- }
103
109
  if (previousPageData && previousPageData.pagination) {
104
110
  const { perPage, total } = previousPageData.pagination;
105
111
  isEndReached.current = (((pageIndex + 1) * perPage) >= total);
@@ -115,6 +121,16 @@ export function useReviewsInfinite(props) {
115
121
  }
116
122
  return `${baseURL}/reviews/by-id?${queryParams.toString()}&nextUrl=${((_b = previousPageData === null || previousPageData === void 0 ? void 0 : previousPageData.pagination) === null || _b === void 0 ? void 0 : _b.nextUrl) || null}`;
117
123
  }
124
+ if ((props === null || props === void 0 ? void 0 : props.provider) === "stamped") {
125
+ if (pageIndex === 0)
126
+ return `${baseURL}/reviews/by-id?${queryParams.toString()}`;
127
+ const totalPages = (_c = previousPageData === null || previousPageData === void 0 ? void 0 : previousPageData.pagination) === null || _c === void 0 ? void 0 : _c.totalPages;
128
+ if (totalPages && (pageIndex + 1) >= totalPages) {
129
+ isEndReached.current = true;
130
+ return null;
131
+ }
132
+ return `${baseURL}/reviews/by-id?${queryParams.toString()}&page=${pageIndex + 1}`;
133
+ }
118
134
  };
119
135
  const fetcher = (props === null || props === void 0 ? void 0 : props.fetcher) || ((url) => fetch(url).then((res) => res.json()));
120
136
  const { data: dataInfinite, error: errorInfinite, size, setSize, isLoading, isValidating, } = useSWRInfinite(getKey, fetcher);
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ export interface StarRatingProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ score: number;
4
+ iconSize?: "xs" | "sm" | "md" | "lg";
5
+ iconUrl?: string;
6
+ filledColor?: string;
7
+ emptyColor?: string;
8
+ designOptions?: "condensed" | "expanded";
9
+ }
10
+ declare const StarRating: React.ForwardRefExoticComponent<StarRatingProps & React.RefAttributes<HTMLDivElement>>;
11
+ export { StarRating };
12
+ //# sourceMappingURL=star-rating.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"star-rating.d.ts","sourceRoot":"","sources":["../../../components/ui/star-rating.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,MAAM,WAAW,eACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACpC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,WAAW,GAAG,UAAU,CAAA;CACzC;AAED,QAAA,MAAM,UAAU,wFA2Df,CAAA;AAID,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,34 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import * as React from "react";
14
+ import { cn } from "../../lib/utils";
15
+ import { Icon } from "./icon";
16
+ const StarRating = React.forwardRef((_a, ref) => {
17
+ var { className, score, iconSize = "sm", iconUrl, filledColor, emptyColor, designOptions } = _a, props = __rest(_a, ["className", "score", "iconSize", "iconUrl", "filledColor", "emptyColor", "designOptions"]);
18
+ if (designOptions === "condensed") {
19
+ return (_jsx(Icon, { size: iconSize, url: iconUrl, color: filledColor }));
20
+ }
21
+ return (_jsx("div", Object.assign({ className: cn("flex flex-row gap-1", className), ref: ref }, props, { children: Array.from({ length: 5 }).map((_, index) => {
22
+ if (score % 1 !== 0 && Math.floor(score) === index) {
23
+ return (_jsx(Icon, { size: iconSize, url: iconUrl, fillColor: filledColor, secondaryFillColor: emptyColor, fillPercentage: score % 1 }, index));
24
+ }
25
+ else if (index + 1 > score) {
26
+ return (_jsx(Icon, { size: iconSize, url: iconUrl, color: emptyColor }, index));
27
+ }
28
+ else {
29
+ return (_jsx(Icon, { size: iconSize, url: iconUrl, color: filledColor }, index));
30
+ }
31
+ }) })));
32
+ });
33
+ StarRating.displayName = "StarRating";
34
+ export { StarRating };
package/dist/index.d.ts CHANGED
@@ -36,6 +36,7 @@ export * from "./components/ui/selectors";
36
36
  export * from "./components/ui/separator";
37
37
  export * from "./components/ui/skeleton";
38
38
  export * from "./components/ui/slider";
39
+ export * from "./components/ui/star-rating";
39
40
  export * from "./components/ui/subscription";
40
41
  export * from "./components/ui/switch";
41
42
  export * from "./components/ui/tabs";
@@ -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,EAC7B,MAAM,aAAa,CAAA;AACpB,cAAc,mCAAmC,CAAA;AACjD,cAAc,wCAAwC,CAAA;AACtD,cAAc,wCAAwC,CAAA;AACtD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA;AACvD,cAAc,oCAAoC,CAAA;AAClD,cAAc,wCAAwC,CAAA;AACtD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,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CAAsC,CAAA;AACpD,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA;AACtC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA;AACvC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,0BAA0B,CAAA;AACxC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,6BAA6B,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
@@ -37,6 +37,7 @@ export * from "./components/ui/selectors";
37
37
  export * from "./components/ui/separator";
38
38
  export * from "./components/ui/skeleton";
39
39
  export * from "./components/ui/slider";
40
+ export * from "./components/ui/star-rating";
40
41
  export * from "./components/ui/subscription";
41
42
  export * from "./components/ui/switch";
42
43
  export * from "./components/ui/tabs";
package/dist/styles.css CHANGED
@@ -1261,6 +1261,9 @@ video {
1261
1261
  .items-start {
1262
1262
  align-items: flex-start;
1263
1263
  }
1264
+ .items-end {
1265
+ align-items: flex-end;
1266
+ }
1264
1267
  .items-center {
1265
1268
  align-items: center;
1266
1269
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapcart/mobile-components",
3
- "version": "0.7.11",
3
+ "version": "0.7.13",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "style": "dist/styles.css",