@timardex/cluemart-shared 1.3.15 → 1.3.17
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-3JRVDUAS.mjs → chunk-J2QOBQSB.mjs} +1 -1
- package/dist/{chunk-3JRVDUAS.mjs.map → chunk-J2QOBQSB.mjs.map} +1 -1
- package/dist/graphql/index.cjs +3 -1
- 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 +3 -1
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +9 -5
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +9 -5
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +12 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.mjs +11 -5
- package/dist/index.mjs.map +1 -1
- package/dist/{post-DEOKZuaM.d.ts → post-CCJO5Xq1.d.ts} +4 -2
- package/dist/{post-D9qmUck8.d.mts → post-dTRL_JKL.d.mts} +4 -2
- 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/hooks/index.cjs
CHANGED
|
@@ -44,7 +44,7 @@ __export(hooks_exports, {
|
|
|
44
44
|
useLocationSearch: () => useLocationSearch,
|
|
45
45
|
useLoginForm: () => useLoginForm,
|
|
46
46
|
usePartnerForm: () => usePartnerForm,
|
|
47
|
-
|
|
47
|
+
usePostForm: () => usePostForm,
|
|
48
48
|
useRegisterForm: () => useRegisterForm,
|
|
49
49
|
useRequestPasswordResetForm: () => useRequestPasswordResetForm,
|
|
50
50
|
useResetPasswordForm: () => useResetPasswordForm,
|
|
@@ -908,7 +908,11 @@ var videoContentSchema = yup9.object({
|
|
|
908
908
|
});
|
|
909
909
|
var listContentSchema = yup9.object({
|
|
910
910
|
list: yup9.object({
|
|
911
|
-
items: yup9.array().of(
|
|
911
|
+
items: yup9.array().of(
|
|
912
|
+
yup9.object({
|
|
913
|
+
text: yup9.string().required("List item text is required")
|
|
914
|
+
})
|
|
915
|
+
).min(1, "List must contain at least one item").required(),
|
|
912
916
|
title: yup9.string().optional()
|
|
913
917
|
}).required()
|
|
914
918
|
});
|
|
@@ -938,7 +942,7 @@ var contentDataSchema = yup9.mixed().required("Content data is required").test(
|
|
|
938
942
|
}
|
|
939
943
|
);
|
|
940
944
|
var postContentSchema = yup9.object().shape({
|
|
941
|
-
contentData: contentDataSchema,
|
|
945
|
+
contentData: contentDataSchema.optional().nullable(),
|
|
942
946
|
contentOrder: yup9.number().min(0).required(),
|
|
943
947
|
contentType: yup9.mixed().oneOf(Object.values(EnumPostContentType)).required()
|
|
944
948
|
});
|
|
@@ -2011,7 +2015,7 @@ var defaultValues10 = {
|
|
|
2011
2015
|
tags: [],
|
|
2012
2016
|
title: ""
|
|
2013
2017
|
};
|
|
2014
|
-
function
|
|
2018
|
+
function usePostForm(data) {
|
|
2015
2019
|
const {
|
|
2016
2020
|
control,
|
|
2017
2021
|
formState: { errors },
|
|
@@ -2070,7 +2074,7 @@ function usePostform(data) {
|
|
|
2070
2074
|
useLocationSearch,
|
|
2071
2075
|
useLoginForm,
|
|
2072
2076
|
usePartnerForm,
|
|
2073
|
-
|
|
2077
|
+
usePostForm,
|
|
2074
2078
|
useRegisterForm,
|
|
2075
2079
|
useRequestPasswordResetForm,
|
|
2076
2080
|
useResetPasswordForm,
|