mozrest-sdk-react-dev 0.2.33 → 0.2.35

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.
Files changed (2) hide show
  1. package/mozrest-sdk.es.js +16 -4
  2. package/package.json +1 -1
package/mozrest-sdk.es.js CHANGED
@@ -43982,6 +43982,7 @@ const DetailDesktop = ({
43982
43982
  id: id2,
43983
43983
  reply: reply2,
43984
43984
  reviewer: reviewer2,
43985
+ title: title2,
43985
43986
  comment: comment2,
43986
43987
  locale: locale2,
43987
43988
  meta,
@@ -44008,7 +44009,13 @@ const DetailDesktop = ({
44008
44009
  style: { fontWeight: "bold" }
44009
44010
  }, t2("KITCHEN"), ": ", meta.cooking), meta.standing && /* @__PURE__ */ React__default.createElement("p", {
44010
44011
  style: { fontWeight: "bold" }
44011
- }, t2("SERVICE"), ": ", meta.standing)), comment2 && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Comment, {
44012
+ }, t2("SERVICE"), ": ", meta.standing)), title2 && /* @__PURE__ */ React__default.createElement("div", {
44013
+ style: { marginBottom: 10 }
44014
+ }, /* @__PURE__ */ React__default.createElement("h4", {
44015
+ style: { fontWeight: "bold" }
44016
+ }, t2("TITLE")), /* @__PURE__ */ React__default.createElement("p", {
44017
+ className: styles$1D.comment
44018
+ }, title2)), comment2 && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Comment, {
44012
44019
  showTranslation,
44013
44020
  setShowTranslation,
44014
44021
  locale: locale2
@@ -44080,6 +44087,7 @@ const Review = ({
44080
44087
  id: id2,
44081
44088
  reply: reply2,
44082
44089
  reviewer: reviewer2,
44090
+ title: title2,
44083
44091
  comment: comment2,
44084
44092
  rating,
44085
44093
  platform: platform2,
@@ -44200,6 +44208,7 @@ const Review = ({
44200
44208
  id: id2,
44201
44209
  reply: reply2,
44202
44210
  reviewer: reviewer2,
44211
+ title: title2,
44203
44212
  comment: comment2,
44204
44213
  rating,
44205
44214
  platform: platform2,
@@ -85438,6 +85447,8 @@ const TripadvisorButton = ({
85438
85447
  className: styles$$.connectedText
85439
85448
  }, t2("CONNECT")));
85440
85449
  };
85450
+ const sessionData = sessionStorage.getItem("sdk_user");
85451
+ const userData = sessionData ? JSON.parse(sessionData) : {};
85441
85452
  const FormToolBar = ({
85442
85453
  venueId,
85443
85454
  singleVenue: singleVenue2,
@@ -85454,8 +85465,10 @@ const FormToolBar = ({
85454
85465
  googlePublishing,
85455
85466
  facebookPublishing
85456
85467
  }) => {
85468
+ var _a2;
85457
85469
  const { t: t2 } = useTranslation();
85458
85470
  const navigate = useNavigate();
85471
+ const roles = (_a2 = userData == null ? void 0 : userData.roles) != null ? _a2 : [];
85459
85472
  const { FacebookConnected, GoogleConnected, BingConnected, AppleConnected, TripadvisorConnected, reload, isLoading: loadingConnections } = useConnect({
85460
85473
  venueId
85461
85474
  });
@@ -85465,6 +85478,7 @@ const FormToolBar = ({
85465
85478
  const handleChangeVenue = (value2) => {
85466
85479
  navigate(`/venues/${value2 == null ? void 0 : value2.id}`);
85467
85480
  };
85481
+ console.log(roles, "ROLES");
85468
85482
  useEffect(() => {
85469
85483
  if (!loadingConnections && !GoogleConnected && !FacebookConnected && !BingConnected && !AppleConnected) {
85470
85484
  setTimeout(() => {
@@ -85490,7 +85504,7 @@ const FormToolBar = ({
85490
85504
  venueId,
85491
85505
  onDisconnect,
85492
85506
  isDisconnecting: facebookPublishing === "in_progress"
85493
- }), /* @__PURE__ */ React__default.createElement(TripadvisorButton, {
85507
+ }), roles && roles.length > 0 && roles.some((str) => str.includes("BOT")) && /* @__PURE__ */ React__default.createElement(TripadvisorButton, {
85494
85508
  venueId,
85495
85509
  isConnected: TripadvisorConnected,
85496
85510
  reload: reloadConnect,
@@ -101529,8 +101543,6 @@ const CommercialFeeTypes = {
101529
101543
  subscription: "month",
101530
101544
  na: "Free"
101531
101545
  };
101532
- const sessionData = sessionStorage.getItem("sdk_user");
101533
- const userData = sessionData ? JSON.parse(sessionData) : {};
101534
101546
  const conditionsContainer$2 = "_conditionsContainer_1yf4e_1";
101535
101547
  const conditionsCardContainer$2 = "_conditionsCardContainer_1yf4e_7";
101536
101548
  var styles$a = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mozrest-sdk-react-dev",
3
- "version": "0.2.33",
3
+ "version": "0.2.35",
4
4
  "main": "mozrest-sdk.es.js",
5
5
  "keywords": ["mozrest"],
6
6
  "author": {