mozrest-sdk-react-dev 0.1.32 → 0.1.33

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 +11 -9
  2. package/package.json +1 -1
package/mozrest-sdk.es.js CHANGED
@@ -11235,8 +11235,9 @@ const CardDescription = ({
11235
11235
  onClickEdit,
11236
11236
  values
11237
11237
  }) => {
11238
- var _a2, _b;
11238
+ var _a2, _b, _c, _d;
11239
11239
  const { t: t2 } = useTranslation();
11240
+ console.log("values.descriptionLong?.length", (_a2 = values.descriptionLong) == null ? void 0 : _a2.length);
11240
11241
  return /* @__PURE__ */ React__default.createElement(Card, {
11241
11242
  header: {
11242
11243
  title: t2("DESCRIPTION"),
@@ -11252,16 +11253,16 @@ const CardDescription = ({
11252
11253
  text: values.businessName
11253
11254
  }), /* @__PURE__ */ React__default.createElement(Item$1, {
11254
11255
  icon: "category",
11255
- text: (_a2 = values.mainCategory) == null ? void 0 : _a2.label
11256
+ text: (_b = values.mainCategory) == null ? void 0 : _b.label
11256
11257
  }), /* @__PURE__ */ React__default.createElement(Item$1, {
11257
11258
  icon: "descriptionLong",
11258
- text: values.descriptionLong
11259
+ text: ((_c = values.descriptionLong) == null ? void 0 : _c.length) > 300 ? `${values.descriptionLong.slice(0, 300)}...` : values.descriptionLong
11259
11260
  }), /* @__PURE__ */ React__default.createElement(Item$1, {
11260
11261
  icon: "descriptionShort",
11261
11262
  text: values.descriptionShort
11262
11263
  }), /* @__PURE__ */ React__default.createElement(Item$1, {
11263
11264
  icon: "categories",
11264
- text: (_b = values.additionalCategories) == null ? void 0 : _b.map(({ label: label2 }) => label2).join(",")
11265
+ text: (_d = values.additionalCategories) == null ? void 0 : _d.map(({ label: label2 }) => label2).join(",")
11265
11266
  })));
11266
11267
  };
11267
11268
  function _extends$N() {
@@ -53901,11 +53902,12 @@ const Form$1 = ({
53901
53902
  reload,
53902
53903
  venueListingId
53903
53904
  }) => {
53905
+ var _a2;
53904
53906
  const { t: t2 } = useTranslation();
53905
53907
  const { data: attributes2 = [], isLoading } = useFetch(formatData$b, {
53906
53908
  cacheId: "listingAttributes"
53907
53909
  });
53908
- const attrLinks = (attributes2 == null ? void 0 : attributes2.length) > 0 ? attributes2.find((a2) => a2.title === "Place page URLs").openDefault : null;
53910
+ const attrLinks = (attributes2 == null ? void 0 : attributes2.length) > 0 ? (_a2 = attributes2.find((a2) => a2.title === "Place page URLs")) == null ? void 0 : _a2.openDefault : null;
53909
53911
  const { isExecuting, execute } = useService(UpdateVenueListing, {
53910
53912
  onSuccess: async () => {
53911
53913
  await reload();
@@ -53929,11 +53931,11 @@ const Form$1 = ({
53929
53931
  id: "urlWebsite",
53930
53932
  label: t2("WEBSITEURL"),
53931
53933
  placeholder: "https://website.com"
53932
- }), /* @__PURE__ */ React__default.createElement("div", null), /* @__PURE__ */ React__default.createElement("h3", {
53934
+ }), /* @__PURE__ */ React__default.createElement("div", null), /* @__PURE__ */ React__default.createElement("h4", {
53933
53935
  style: { marginBottom: 0, marginTop: "10px" }
53934
53936
  }, "GOOGLE MY BUSINESS LINKS"), /* @__PURE__ */ React__default.createElement("hr", null), attrLinks == null ? void 0 : attrLinks.map((a2, key2) => {
53935
- var _a2;
53936
- const value2 = (_a2 = initialValues == null ? void 0 : initialValues.attributesLinks) == null ? void 0 : _a2.find((v2, key22) => v2.id === a2.id);
53937
+ var _a3;
53938
+ const value2 = (_a3 = initialValues == null ? void 0 : initialValues.attributesLinks) == null ? void 0 : _a3.find((v2, key22) => v2.id === a2.id);
53937
53939
  return /* @__PURE__ */ React__default.createElement(TextInputField, {
53938
53940
  key: key2,
53939
53941
  id: `attrLinks[${a2.id}]`,
@@ -53941,7 +53943,7 @@ const Form$1 = ({
53941
53943
  value: value2 ? value2.value : "",
53942
53944
  placeholder: "www.mozrest.com/link"
53943
53945
  });
53944
- }), /* @__PURE__ */ React__default.createElement("div", null), /* @__PURE__ */ React__default.createElement("hr", null), /* @__PURE__ */ React__default.createElement("h3", {
53946
+ }), /* @__PURE__ */ React__default.createElement("div", null), /* @__PURE__ */ React__default.createElement("hr", null), /* @__PURE__ */ React__default.createElement("h4", {
53945
53947
  style: { marginBottom: 0 }
53946
53948
  }, "SOCIAL LINKS"), /* @__PURE__ */ React__default.createElement("hr", null), /* @__PURE__ */ React__default.createElement(TextInputFieldWithRule, {
53947
53949
  id: "urlFacebook",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mozrest-sdk-react-dev",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "main": "mozrest-sdk.es.js",
5
5
  "keywords": ["mozrest"],
6
6
  "author": {