@timardex/cluemart-shared 1.4.33 → 1.4.35

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-D9uFJG1B.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-DulLbOJc.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 {
@@ -5546,13 +5547,9 @@ var import_react_hook_form15 = require("react-hook-form");
5546
5547
  var defaultValues10 = {
5547
5548
  active: true,
5548
5549
  caption: "",
5549
- content: [
5550
- {
5551
- contentData: null,
5552
- contentOrder: 1,
5553
- contentType: null
5554
- }
5555
- ],
5550
+ content: [],
5551
+ cover: null,
5552
+ coverUpload: null,
5556
5553
  postType: "",
5557
5554
  resource: null,
5558
5555
  tags: [],
@@ -5577,6 +5574,8 @@ function usePostForm(data) {
5577
5574
  active: data.active,
5578
5575
  caption: data.caption,
5579
5576
  content: data.content,
5577
+ cover: data.cover,
5578
+ coverUpload: data.coverUpload,
5580
5579
  postType: data.postType,
5581
5580
  resource: data.resource,
5582
5581
  tags: data.tags,
@@ -5586,13 +5585,25 @@ function usePostForm(data) {
5586
5585
  reset(defaultValues10);
5587
5586
  }
5588
5587
  }, [data]);
5589
- const { active, caption, content, postType, resource, tags, title } = getValues();
5588
+ const {
5589
+ active,
5590
+ caption,
5591
+ content,
5592
+ cover,
5593
+ coverUpload,
5594
+ postType,
5595
+ resource,
5596
+ tags,
5597
+ title
5598
+ } = getValues();
5590
5599
  return {
5591
5600
  control,
5592
5601
  fields: {
5593
5602
  active,
5594
5603
  caption,
5595
5604
  content,
5605
+ cover,
5606
+ coverUpload,
5596
5607
  postType,
5597
5608
  resource,
5598
5609
  tags,