mozrest-sdk-react-dev 0.2.15 → 0.2.16
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/mozrest-sdk.es.js +10 -9
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -43975,9 +43975,11 @@ const Review = ({
|
|
|
43975
43975
|
}))), /* @__PURE__ */ React__default.createElement(Row$1, null, /* @__PURE__ */ React__default.createElement(Col$1, {
|
|
43976
43976
|
xs: 0,
|
|
43977
43977
|
sm: 24
|
|
43978
|
+
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
43979
|
+
style: { width: 70, marginRight: 10 }
|
|
43978
43980
|
}, /* @__PURE__ */ React__default.createElement(StartScore, {
|
|
43979
43981
|
score: rating
|
|
43980
|
-
}))), /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement("div", {
|
|
43982
|
+
})))), /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement("div", {
|
|
43981
43983
|
style: { display: "flex" }
|
|
43982
43984
|
}, /* @__PURE__ */ React__default.createElement(Col$1, null, /* @__PURE__ */ React__default.createElement("strong", {
|
|
43983
43985
|
className: styles$1B.reviewer
|
|
@@ -43988,9 +43990,11 @@ const Review = ({
|
|
|
43988
43990
|
}))), /* @__PURE__ */ React__default.createElement(Row$1, null, /* @__PURE__ */ React__default.createElement(Col$1, {
|
|
43989
43991
|
xs: 24,
|
|
43990
43992
|
sm: 0
|
|
43993
|
+
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
43994
|
+
style: { width: 70, marginRight: 10 }
|
|
43991
43995
|
}, /* @__PURE__ */ React__default.createElement(StartScore, {
|
|
43992
43996
|
score: rating
|
|
43993
|
-
})))), /* @__PURE__ */ React__default.createElement("div", {
|
|
43997
|
+
}))))), /* @__PURE__ */ React__default.createElement("div", {
|
|
43994
43998
|
className: ""
|
|
43995
43999
|
}, locale2 && /* @__PURE__ */ React__default.createElement(Row$1, null, /* @__PURE__ */ React__default.createElement(Col$1, {
|
|
43996
44000
|
xs: 0,
|
|
@@ -77785,7 +77789,7 @@ const formatParams$2 = (params) => {
|
|
|
77785
77789
|
[`filters[platform]`]: params.platform
|
|
77786
77790
|
});
|
|
77787
77791
|
}
|
|
77788
|
-
if (params == null ? void 0 : params.venueListing) {
|
|
77792
|
+
if ((params == null ? void 0 : params.venueListing) && (params == null ? void 0 : params.venueListing) !== "all") {
|
|
77789
77793
|
Object.assign(all2, {
|
|
77790
77794
|
[`filters[venueListing]`]: params.venueListing
|
|
77791
77795
|
});
|
|
@@ -78535,7 +78539,7 @@ const Analytics$1 = ({ venueListingId, venueId }) => {
|
|
|
78535
78539
|
const { data: data2, isLoading: isLoadingListingAnalytics, error: error3 } = useFetch(GetListingAnalytics, {
|
|
78536
78540
|
cacheId: `listing-analytics-${listingId}`,
|
|
78537
78541
|
params: filterAnalytics,
|
|
78538
|
-
id: listingId
|
|
78542
|
+
id: venueId && venueId !== "all" ? venueId : listingId
|
|
78539
78543
|
});
|
|
78540
78544
|
useEffect(() => {
|
|
78541
78545
|
if (data2 && !(data2 == null ? void 0 : data2.error)) {
|
|
@@ -78752,17 +78756,14 @@ const Analytics = ({ venueListingId, venueId }) => {
|
|
|
78752
78756
|
range: getTodaysRange(),
|
|
78753
78757
|
compare: getCompareRange(getTodaysRange(), "period"),
|
|
78754
78758
|
platform: "",
|
|
78755
|
-
compareType: "period"
|
|
78759
|
+
compareType: "period",
|
|
78760
|
+
venueListing: venueId
|
|
78756
78761
|
});
|
|
78757
78762
|
const { data: data2, isLoading, error: error3 } = useFetch(GetReviewAnalytics, {
|
|
78758
78763
|
cacheId: `reviews-analytics-${venueListingId}`,
|
|
78759
78764
|
params: filter2
|
|
78760
78765
|
}, { formatData: formatData$9 });
|
|
78761
78766
|
const comparedPeriod = formatComparedPeriod(filter2.compare);
|
|
78762
|
-
useState({
|
|
78763
|
-
findBy: "venueId",
|
|
78764
|
-
range: getTodaysRange()
|
|
78765
|
-
});
|
|
78766
78767
|
if (error3) {
|
|
78767
78768
|
return /* @__PURE__ */ React__default.createElement(Error$1, {
|
|
78768
78769
|
error: error3
|