@timardex/cluemart-shared 1.4.34 → 1.4.36

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/dist/index.cjs CHANGED
@@ -597,17 +597,17 @@ var vendorMenuFields = [
597
597
  name: "name",
598
598
  placeholder: "Item name"
599
599
  },
600
- {
601
- helperText: "Item Description",
602
- isTextArea: true,
603
- name: "description",
604
- placeholder: "Item Description"
605
- },
606
600
  {
607
601
  helperText: "Price",
608
602
  keyboardType: "decimal-pad",
609
603
  name: "price",
610
604
  placeholder: "Price"
605
+ },
606
+ {
607
+ helperText: "Item Description",
608
+ isTextArea: true,
609
+ name: "description",
610
+ placeholder: "Item Description"
611
611
  }
612
612
  ];
613
613
  var productLabelGroups = [
@@ -5854,9 +5854,6 @@ var import_client60 = require("@apollo/client");
5854
5854
  var import_client59 = require("@apollo/client");
5855
5855
  var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client59.gql`
5856
5856
  fragment PostContentDataFields on PostContentData {
5857
- cover {
5858
- ...ResourceImageFields
5859
- }
5860
5857
  textarea {
5861
5858
  title
5862
5859
  data
@@ -5895,6 +5892,9 @@ var POST_FIELDS_FRAGMENT = import_client59.gql`
5895
5892
  content {
5896
5893
  ...PostContentFields
5897
5894
  }
5895
+ cover {
5896
+ ...ResourceImageFields
5897
+ }
5898
5898
  createdAt
5899
5899
  deletedAt
5900
5900
  postType
@@ -5907,6 +5907,7 @@ var POST_FIELDS_FRAGMENT = import_client59.gql`
5907
5907
  updatedAt
5908
5908
  }
5909
5909
  ${POST_CONTENT_FIELDS_FRAGMENT}
5910
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5910
5911
  `;
5911
5912
  var GET_POSTS = import_client59.gql`
5912
5913
  query getPosts {
@@ -6818,7 +6819,6 @@ var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
6818
6819
  return EnumPostType2;
6819
6820
  })(EnumPostType || {});
6820
6821
  var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
6821
- EnumPostContentType2["COVER"] = "cover";
6822
6822
  EnumPostContentType2["IMAGE"] = "image";
6823
6823
  EnumPostContentType2["LIST"] = "list";
6824
6824
  EnumPostContentType2["TEXTAREA"] = "textarea";
@@ -7929,6 +7929,8 @@ var defaultValues10 = {
7929
7929
  active: true,
7930
7930
  caption: "",
7931
7931
  content: [],
7932
+ cover: null,
7933
+ coverUpload: null,
7932
7934
  postType: "",
7933
7935
  resource: null,
7934
7936
  tags: [],
@@ -7953,6 +7955,8 @@ function usePostForm(data) {
7953
7955
  active: data.active,
7954
7956
  caption: data.caption,
7955
7957
  content: data.content,
7958
+ cover: data.cover,
7959
+ coverUpload: data.coverUpload,
7956
7960
  postType: data.postType,
7957
7961
  resource: data.resource,
7958
7962
  tags: data.tags,
@@ -7962,13 +7966,25 @@ function usePostForm(data) {
7962
7966
  reset(defaultValues10);
7963
7967
  }
7964
7968
  }, [data]);
7965
- const { active, caption, content, postType, resource, tags, title } = getValues();
7969
+ const {
7970
+ active,
7971
+ caption,
7972
+ content,
7973
+ cover,
7974
+ coverUpload,
7975
+ postType,
7976
+ resource,
7977
+ tags,
7978
+ title
7979
+ } = getValues();
7966
7980
  return {
7967
7981
  control,
7968
7982
  fields: {
7969
7983
  active,
7970
7984
  caption,
7971
7985
  content,
7986
+ cover,
7987
+ coverUpload,
7972
7988
  postType,
7973
7989
  resource,
7974
7990
  tags,