@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.
- package/dist/chunk-6EF54YUG.mjs +3675 -0
- package/dist/chunk-6EF54YUG.mjs.map +1 -0
- package/dist/{chunk-KYPVVP6O.mjs → chunk-B3564QBA.mjs} +21 -1
- package/dist/chunk-B3564QBA.mjs.map +1 -0
- package/dist/chunk-DWO35OY4.mjs +15 -0
- package/dist/chunk-DWO35OY4.mjs.map +1 -0
- package/dist/chunk-I7WE3EBR.mjs +44 -0
- package/dist/chunk-I7WE3EBR.mjs.map +1 -0
- package/dist/chunk-VK7YXMD5.mjs +1906 -0
- package/dist/chunk-VK7YXMD5.mjs.map +1 -0
- package/dist/formFields/index.mjs +47 -1857
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/graphql/index.cjs +4 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +126 -3544
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +3464 -10
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +14 -3
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +13 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{post-D9td0KeC.d.ts → post-De0TmpDj.d.ts} +4 -0
- package/dist/{post-DdzJejE9.d.mts → post-pawVnr17.d.mts} +4 -0
- package/dist/storage/index.mjs +7 -6
- package/dist/storage/index.mjs.map +1 -1
- package/dist/theme/index.mjs +5 -37
- package/dist/theme/index.mjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +3 -19
- package/dist/types/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-KYPVVP6O.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1104,6 +1104,10 @@ interface PostFormData {
|
|
|
1104
1104
|
caption: string;
|
|
1105
1105
|
content: PostContentFormData[];
|
|
1106
1106
|
postType: EnumPostType;
|
|
1107
|
+
resource?: {
|
|
1108
|
+
resourceId: string;
|
|
1109
|
+
resourceType: EnumResourceType;
|
|
1110
|
+
} | null;
|
|
1107
1111
|
tags?: string[] | null;
|
|
1108
1112
|
title: string;
|
|
1109
1113
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1104,6 +1104,10 @@ interface PostFormData {
|
|
|
1104
1104
|
caption: string;
|
|
1105
1105
|
content: PostContentFormData[];
|
|
1106
1106
|
postType: EnumPostType;
|
|
1107
|
+
resource?: {
|
|
1108
|
+
resourceId: string;
|
|
1109
|
+
resourceType: EnumResourceType;
|
|
1110
|
+
} | null;
|
|
1107
1111
|
tags?: string[] | null;
|
|
1108
1112
|
title: string;
|
|
1109
1113
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -5607,6 +5607,10 @@ var POST_FIELDS_FRAGMENT = gql31`
|
|
|
5607
5607
|
createdAt
|
|
5608
5608
|
deletedAt
|
|
5609
5609
|
postType
|
|
5610
|
+
resource {
|
|
5611
|
+
resourceId
|
|
5612
|
+
resourceType
|
|
5613
|
+
}
|
|
5610
5614
|
tags
|
|
5611
5615
|
title
|
|
5612
5616
|
updatedAt
|
|
@@ -6542,6 +6546,10 @@ var postSchema = yup9.object().shape({
|
|
|
6542
6546
|
caption: yup9.string().required(),
|
|
6543
6547
|
content: yup9.array().of(postContentSchema).required(),
|
|
6544
6548
|
postType: yup9.mixed().oneOf(Object.values(EnumPostType)).required(),
|
|
6549
|
+
resource: yup9.object({
|
|
6550
|
+
resourceId: yup9.string().required(),
|
|
6551
|
+
resourceType: yup9.mixed().oneOf(Object.values(EnumResourceType)).required()
|
|
6552
|
+
}).nullable().optional(),
|
|
6545
6553
|
tags: yup9.array().of(yup9.string().required()).nullable().optional(),
|
|
6546
6554
|
title: yup9.string().required()
|
|
6547
6555
|
});
|
|
@@ -7630,7 +7638,8 @@ var defaultValues10 = {
|
|
|
7630
7638
|
active: true,
|
|
7631
7639
|
caption: "",
|
|
7632
7640
|
content: [],
|
|
7633
|
-
postType: "
|
|
7641
|
+
postType: "",
|
|
7642
|
+
resource: null,
|
|
7634
7643
|
tags: [],
|
|
7635
7644
|
title: ""
|
|
7636
7645
|
};
|
|
@@ -7654,6 +7663,7 @@ function usePostForm(data) {
|
|
|
7654
7663
|
caption: data.caption,
|
|
7655
7664
|
content: data.content,
|
|
7656
7665
|
postType: data.postType,
|
|
7666
|
+
resource: data.resource,
|
|
7657
7667
|
tags: data.tags,
|
|
7658
7668
|
title: data.title
|
|
7659
7669
|
});
|
|
@@ -7661,7 +7671,7 @@ function usePostForm(data) {
|
|
|
7661
7671
|
reset(defaultValues10);
|
|
7662
7672
|
}
|
|
7663
7673
|
}, [data]);
|
|
7664
|
-
const { active, caption, content, postType, tags, title } = getValues();
|
|
7674
|
+
const { active, caption, content, postType, resource, tags, title } = getValues();
|
|
7665
7675
|
return {
|
|
7666
7676
|
control,
|
|
7667
7677
|
fields: {
|
|
@@ -7669,6 +7679,7 @@ function usePostForm(data) {
|
|
|
7669
7679
|
caption,
|
|
7670
7680
|
content,
|
|
7671
7681
|
postType,
|
|
7682
|
+
resource,
|
|
7672
7683
|
tags,
|
|
7673
7684
|
title
|
|
7674
7685
|
},
|