@timardex/cluemart-shared 1.4.31 → 1.4.32

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 (43) hide show
  1. package/dist/chunk-6EF54YUG.mjs +3675 -0
  2. package/dist/chunk-6EF54YUG.mjs.map +1 -0
  3. package/dist/{chunk-KYPVVP6O.mjs → chunk-B3564QBA.mjs} +21 -1
  4. package/dist/chunk-B3564QBA.mjs.map +1 -0
  5. package/dist/chunk-DWO35OY4.mjs +15 -0
  6. package/dist/chunk-DWO35OY4.mjs.map +1 -0
  7. package/dist/chunk-I7WE3EBR.mjs +44 -0
  8. package/dist/chunk-I7WE3EBR.mjs.map +1 -0
  9. package/dist/chunk-VK7YXMD5.mjs +1906 -0
  10. package/dist/chunk-VK7YXMD5.mjs.map +1 -0
  11. package/dist/formFields/index.mjs +47 -1857
  12. package/dist/formFields/index.mjs.map +1 -1
  13. package/dist/graphql/index.cjs +4 -0
  14. package/dist/graphql/index.cjs.map +1 -1
  15. package/dist/graphql/index.d.mts +1 -1
  16. package/dist/graphql/index.d.ts +1 -1
  17. package/dist/graphql/index.mjs +126 -3544
  18. package/dist/graphql/index.mjs.map +1 -1
  19. package/dist/hooks/index.cjs +3464 -10
  20. package/dist/hooks/index.cjs.map +1 -1
  21. package/dist/hooks/index.d.mts +1 -1
  22. package/dist/hooks/index.d.ts +1 -1
  23. package/dist/hooks/index.mjs +14 -3
  24. package/dist/hooks/index.mjs.map +1 -1
  25. package/dist/index.cjs +13 -2
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +4 -0
  28. package/dist/index.d.ts +4 -0
  29. package/dist/index.mjs +13 -2
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/{post-D9td0KeC.d.ts → post-De0TmpDj.d.ts} +4 -0
  32. package/dist/{post-DdzJejE9.d.mts → post-pawVnr17.d.mts} +4 -0
  33. package/dist/storage/index.mjs +7 -6
  34. package/dist/storage/index.mjs.map +1 -1
  35. package/dist/theme/index.mjs +5 -37
  36. package/dist/theme/index.mjs.map +1 -1
  37. package/dist/types/index.cjs.map +1 -1
  38. package/dist/types/index.d.mts +1 -1
  39. package/dist/types/index.d.ts +1 -1
  40. package/dist/types/index.mjs +3 -19
  41. package/dist/types/index.mjs.map +1 -1
  42. package/package.json +1 -1
  43. package/dist/chunk-KYPVVP6O.mjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -5897,6 +5897,10 @@ var POST_FIELDS_FRAGMENT = import_client59.gql`
5897
5897
  createdAt
5898
5898
  deletedAt
5899
5899
  postType
5900
+ resource {
5901
+ resourceId
5902
+ resourceType
5903
+ }
5900
5904
  tags
5901
5905
  title
5902
5906
  updatedAt
@@ -6832,6 +6836,10 @@ var postSchema = yup9.object().shape({
6832
6836
  caption: yup9.string().required(),
6833
6837
  content: yup9.array().of(postContentSchema).required(),
6834
6838
  postType: yup9.mixed().oneOf(Object.values(EnumPostType)).required(),
6839
+ resource: yup9.object({
6840
+ resourceId: yup9.string().required(),
6841
+ resourceType: yup9.mixed().oneOf(Object.values(EnumResourceType)).required()
6842
+ }).nullable().optional(),
6835
6843
  tags: yup9.array().of(yup9.string().required()).nullable().optional(),
6836
6844
  title: yup9.string().required()
6837
6845
  });
@@ -7920,7 +7928,8 @@ var defaultValues10 = {
7920
7928
  active: true,
7921
7929
  caption: "",
7922
7930
  content: [],
7923
- postType: "daily_meets" /* DAILY_MEETS */,
7931
+ postType: "",
7932
+ resource: null,
7924
7933
  tags: [],
7925
7934
  title: ""
7926
7935
  };
@@ -7944,6 +7953,7 @@ function usePostForm(data) {
7944
7953
  caption: data.caption,
7945
7954
  content: data.content,
7946
7955
  postType: data.postType,
7956
+ resource: data.resource,
7947
7957
  tags: data.tags,
7948
7958
  title: data.title
7949
7959
  });
@@ -7951,7 +7961,7 @@ function usePostForm(data) {
7951
7961
  reset(defaultValues10);
7952
7962
  }
7953
7963
  }, [data]);
7954
- const { active, caption, content, postType, tags, title } = getValues();
7964
+ const { active, caption, content, postType, resource, tags, title } = getValues();
7955
7965
  return {
7956
7966
  control,
7957
7967
  fields: {
@@ -7959,6 +7969,7 @@ function usePostForm(data) {
7959
7969
  caption,
7960
7970
  content,
7961
7971
  postType,
7972
+ resource,
7962
7973
  tags,
7963
7974
  title
7964
7975
  },