@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.
@@ -2,7 +2,7 @@ import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.mjs';
3
3
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-BtWfy0kk.mjs';
4
4
  import { E as EventType, b as EventListItemType, c as EventInfoType, d as RelationType, e as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, f as VendorInfoType, g as UserLicenceType } from '../global-V7YaFCJR.mjs';
5
- import { T as TesterType, U as UserType, P as PartnerType, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-BFyga46l.mjs';
5
+ import { T as TesterType, U as UserType, P as PartnerType, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-DklGTzDA.mjs';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -2,7 +2,7 @@ import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.js';
3
3
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-fgwhRy0j.js';
4
4
  import { E as EventType, b as EventListItemType, c as EventInfoType, d as RelationType, e as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, f as VendorInfoType, g as UserLicenceType } from '../global-DgA-5e-O.js';
5
- import { T as TesterType, U as UserType, P as PartnerType, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-zekOa7mw.js';
5
+ import { T as TesterType, U as UserType, P as PartnerType, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-vmmaQ9XX.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -123,7 +123,7 @@ import {
123
123
  useUpdateVendor,
124
124
  useUpdateVendorInfo,
125
125
  useValidateVerificationToken
126
- } from "../chunk-FWQCXOHJ.mjs";
126
+ } from "../chunk-3XCNU5MU.mjs";
127
127
  import "../chunk-Z6FJKHRH.mjs";
128
128
  export {
129
129
  useAddParticipantToChat,
@@ -4281,9 +4281,6 @@ var import_client60 = require("@apollo/client");
4281
4281
  var import_client59 = require("@apollo/client");
4282
4282
  var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client59.gql`
4283
4283
  fragment PostContentDataFields on PostContentData {
4284
- cover {
4285
- ...ResourceImageFields
4286
- }
4287
4284
  textarea {
4288
4285
  title
4289
4286
  data
@@ -4322,6 +4319,9 @@ var POST_FIELDS_FRAGMENT = import_client59.gql`
4322
4319
  content {
4323
4320
  ...PostContentFields
4324
4321
  }
4322
+ cover {
4323
+ ...ResourceImageFields
4324
+ }
4325
4325
  createdAt
4326
4326
  deletedAt
4327
4327
  postType
@@ -4334,6 +4334,7 @@ var POST_FIELDS_FRAGMENT = import_client59.gql`
4334
4334
  updatedAt
4335
4335
  }
4336
4336
  ${POST_CONTENT_FIELDS_FRAGMENT}
4337
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4337
4338
  `;
4338
4339
  var GET_POSTS = import_client59.gql`
4339
4340
  query getPosts {
@@ -4436,7 +4437,6 @@ var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
4436
4437
  return EnumPostType2;
4437
4438
  })(EnumPostType || {});
4438
4439
  var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
4439
- EnumPostContentType2["COVER"] = "cover";
4440
4440
  EnumPostContentType2["IMAGE"] = "image";
4441
4441
  EnumPostContentType2["LIST"] = "list";
4442
4442
  EnumPostContentType2["TEXTAREA"] = "textarea";
@@ -5547,6 +5547,8 @@ var defaultValues10 = {
5547
5547
  active: true,
5548
5548
  caption: "",
5549
5549
  content: [],
5550
+ cover: null,
5551
+ coverUpload: null,
5550
5552
  postType: "",
5551
5553
  resource: null,
5552
5554
  tags: [],
@@ -5571,6 +5573,8 @@ function usePostForm(data) {
5571
5573
  active: data.active,
5572
5574
  caption: data.caption,
5573
5575
  content: data.content,
5576
+ cover: data.cover,
5577
+ coverUpload: data.coverUpload,
5574
5578
  postType: data.postType,
5575
5579
  resource: data.resource,
5576
5580
  tags: data.tags,
@@ -5580,13 +5584,25 @@ function usePostForm(data) {
5580
5584
  reset(defaultValues10);
5581
5585
  }
5582
5586
  }, [data]);
5583
- const { active, caption, content, postType, resource, tags, title } = getValues();
5587
+ const {
5588
+ active,
5589
+ caption,
5590
+ content,
5591
+ cover,
5592
+ coverUpload,
5593
+ postType,
5594
+ resource,
5595
+ tags,
5596
+ title
5597
+ } = getValues();
5584
5598
  return {
5585
5599
  control,
5586
5600
  fields: {
5587
5601
  active,
5588
5602
  caption,
5589
5603
  content,
5604
+ cover,
5605
+ coverUpload,
5590
5606
  postType,
5591
5607
  resource,
5592
5608
  tags,