mozrest-sdk-react-dev 0.3.48 → 0.3.49

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 CHANGED
@@ -48650,6 +48650,11 @@ const TextAreaField$1 = ({
48650
48650
  })
48651
48651
  });
48652
48652
  };
48653
+ const ContextReview = React__default.createContext([
48654
+ null,
48655
+ (value2) => {
48656
+ }
48657
+ ]);
48653
48658
  const ReplyForm = ({
48654
48659
  reviewId,
48655
48660
  onSucess,
@@ -48666,6 +48671,7 @@ const ReplyForm = ({
48666
48671
  const {
48667
48672
  t: t2
48668
48673
  } = useTranslation();
48674
+ const [review] = useContext(ContextReview);
48669
48675
  const canUpdate = platform2 === "facebook" || platform2 === "google";
48670
48676
  const isUpdate = reply2 && canUpdate;
48671
48677
  const initialValues = {
@@ -48711,7 +48717,7 @@ const ReplyForm = ({
48711
48717
  if (reply2) {
48712
48718
  setValue("comment", reply2 == null ? void 0 : reply2.comment);
48713
48719
  }
48714
- }, [reply2]);
48720
+ }, [reply2, review]);
48715
48721
  return /* @__PURE__ */ jsx$1("form", {
48716
48722
  onSubmit: handleSubmit(handleExecute),
48717
48723
  children: /* @__PURE__ */ jsxs("div", {
@@ -55321,11 +55327,6 @@ const styles$1C = {
55321
55327
  content: content$8,
55322
55328
  empty
55323
55329
  };
55324
- const ContextReview = React__default.createContext([
55325
- null,
55326
- (value2) => {
55327
- }
55328
- ]);
55329
55330
  const Reviews = ({
55330
55331
  reviews,
55331
55332
  isEmpty,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mozrest-sdk-react-dev",
3
- "version": "0.3.48",
3
+ "version": "0.3.49",
4
4
  "main": "mozrest-sdk.es.js",
5
5
  "keywords": [
6
6
  "mozrest"