@timardex/cluemart-shared 1.3.14 → 1.3.15
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-2ZPH2KHC.mjs → chunk-3JRVDUAS.mjs} +1 -1
- package/dist/{chunk-2ZPH2KHC.mjs.map → chunk-3JRVDUAS.mjs.map} +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/hooks/index.cjs +6 -2
- 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 +7 -3
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +6 -2
- package/dist/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 +1 -1
- package/package.json +1 -1
- package/dist/{post-MoaerbbL.d.mts → post-D9qmUck8.d.mts} +1 -1
- package/dist/{post-C2utkFw4.d.ts → post-DEOKZuaM.d.ts} +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -949,6 +949,7 @@ type PostContentFormData = {
|
|
|
949
949
|
contentType: EnumPostContentType;
|
|
950
950
|
};
|
|
951
951
|
interface PostFormData {
|
|
952
|
+
active: boolean;
|
|
952
953
|
content: PostContentFormData[];
|
|
953
954
|
postType: EnumPostType;
|
|
954
955
|
tags?: string[] | null;
|
|
@@ -961,7 +962,6 @@ type PostContentType = Omit<PostContentFormData, "contentData"> & {
|
|
|
961
962
|
};
|
|
962
963
|
type PostType = Omit<PostFormData, "content"> & {
|
|
963
964
|
_id: string;
|
|
964
|
-
active: boolean;
|
|
965
965
|
content: PostContentType;
|
|
966
966
|
createdAt: Date;
|
|
967
967
|
deletedAt: Date | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -949,6 +949,7 @@ type PostContentFormData = {
|
|
|
949
949
|
contentType: EnumPostContentType;
|
|
950
950
|
};
|
|
951
951
|
interface PostFormData {
|
|
952
|
+
active: boolean;
|
|
952
953
|
content: PostContentFormData[];
|
|
953
954
|
postType: EnumPostType;
|
|
954
955
|
tags?: string[] | null;
|
|
@@ -961,7 +962,6 @@ type PostContentType = Omit<PostContentFormData, "contentData"> & {
|
|
|
961
962
|
};
|
|
962
963
|
type PostType = Omit<PostFormData, "content"> & {
|
|
963
964
|
_id: string;
|
|
964
|
-
active: boolean;
|
|
965
965
|
content: PostContentType;
|
|
966
966
|
createdAt: Date;
|
|
967
967
|
deletedAt: Date | null;
|
package/dist/index.mjs
CHANGED
|
@@ -5921,9 +5921,10 @@ var postContentSchema = yup9.object().shape({
|
|
|
5921
5921
|
contentType: yup9.mixed().oneOf(Object.values(EnumPostContentType)).required()
|
|
5922
5922
|
});
|
|
5923
5923
|
var postSchema = yup9.object().shape({
|
|
5924
|
+
active: yup9.boolean().required(),
|
|
5924
5925
|
content: yup9.array().of(postContentSchema).required(),
|
|
5925
5926
|
postType: yup9.mixed().oneOf(Object.values(EnumPostType)).required(),
|
|
5926
|
-
tags: yup9.array().of(yup9.string()).nullable().optional(),
|
|
5927
|
+
tags: yup9.array().of(yup9.string().required()).nullable().optional(),
|
|
5927
5928
|
title: yup9.string().required()
|
|
5928
5929
|
});
|
|
5929
5930
|
|
|
@@ -6982,6 +6983,7 @@ import { yupResolver as yupResolver15 } from "@hookform/resolvers/yup";
|
|
|
6982
6983
|
import React10 from "react";
|
|
6983
6984
|
import { useForm as useForm15 } from "react-hook-form";
|
|
6984
6985
|
var defaultValues10 = {
|
|
6986
|
+
active: true,
|
|
6985
6987
|
content: [],
|
|
6986
6988
|
postType: "daily_meets" /* DAILY_MEETS */,
|
|
6987
6989
|
tags: [],
|
|
@@ -7003,6 +7005,7 @@ function usePostform(data) {
|
|
|
7003
7005
|
React10.useEffect(() => {
|
|
7004
7006
|
if (data) {
|
|
7005
7007
|
reset({
|
|
7008
|
+
active: data.active,
|
|
7006
7009
|
content: data.content,
|
|
7007
7010
|
postType: data.postType,
|
|
7008
7011
|
tags: data.tags,
|
|
@@ -7012,10 +7015,11 @@ function usePostform(data) {
|
|
|
7012
7015
|
reset(defaultValues10);
|
|
7013
7016
|
}
|
|
7014
7017
|
}, [data]);
|
|
7015
|
-
const { content, postType, tags, title } = getValues();
|
|
7018
|
+
const { active, content, postType, tags, title } = getValues();
|
|
7016
7019
|
return {
|
|
7017
7020
|
control,
|
|
7018
7021
|
fields: {
|
|
7022
|
+
active,
|
|
7019
7023
|
content,
|
|
7020
7024
|
postType,
|
|
7021
7025
|
tags,
|