nextjs-cms 0.5.8 → 0.5.10
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/api/index.d.ts +41 -41
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +2 -2
- package/dist/api/lib/serverActions.d.ts +9 -9
- package/dist/api/lib/serverActions.d.ts.map +1 -1
- package/dist/api/lib/serverActions.js +7 -7
- package/dist/api/root.d.ts +37 -37
- package/dist/api/root.js +13 -13
- package/dist/api/routers/accountSettings.d.ts +2 -2
- package/dist/api/routers/accountSettings.js +3 -3
- package/dist/api/routers/admins.d.ts +2 -2
- package/dist/api/routers/admins.js +6 -6
- package/dist/api/routers/auth.d.ts +2 -2
- package/dist/api/routers/auth.js +2 -2
- package/dist/api/routers/categorySection.d.ts +2 -2
- package/dist/api/routers/categorySection.js +1 -1
- package/dist/api/routers/cmsSettings.d.ts +2 -2
- package/dist/api/routers/cmsSettings.js +3 -3
- package/dist/api/routers/cpanel.d.ts +2 -2
- package/dist/api/routers/cpanel.js +3 -3
- package/dist/api/routers/files.d.ts +2 -2
- package/dist/api/routers/files.js +2 -2
- package/dist/api/routers/gallery.d.ts +2 -2
- package/dist/api/routers/gallery.js +6 -6
- package/dist/api/routers/googleAnalytics.d.ts +2 -2
- package/dist/api/routers/googleAnalytics.js +1 -1
- package/dist/api/routers/hasItemsSection.d.ts +8 -8
- package/dist/api/routers/hasItemsSection.js +1 -1
- package/dist/api/routers/navigation.d.ts +2 -2
- package/dist/api/routers/navigation.js +2 -2
- package/dist/api/routers/simpleSection.d.ts +5 -5
- package/dist/api/routers/simpleSection.js +2 -2
- package/dist/api/trpc.d.ts +11 -11
- package/dist/api/trpc.js +2 -2
- package/dist/auth/hooks/index.d.ts +2 -2
- package/dist/auth/hooks/index.d.ts.map +1 -1
- package/dist/auth/hooks/index.js +2 -2
- package/dist/auth/hooks/useAxiosPrivate.js +3 -3
- package/dist/auth/hooks/useRefreshToken.js +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/auth/lib/actions.d.ts +1 -1
- package/dist/auth/lib/actions.d.ts.map +1 -1
- package/dist/auth/lib/actions.js +2 -2
- package/dist/auth/lib/client.js +1 -1
- package/dist/auth/lib/index.d.ts +2 -2
- package/dist/auth/lib/index.d.ts.map +1 -1
- package/dist/auth/lib/index.js +2 -2
- package/dist/auth/react.d.ts +3 -3
- package/dist/auth/react.d.ts.map +1 -1
- package/dist/auth/react.js +3 -3
- package/dist/auth/trpc.d.ts.map +1 -1
- package/dist/auth/trpc.js +1 -1
- package/dist/core/config/config-loader.js +1 -1
- package/dist/core/config/index.d.ts +2 -2
- package/dist/core/config/index.d.ts.map +1 -1
- package/dist/core/config/index.js +1 -1
- package/dist/core/db/index.d.ts +1 -1
- package/dist/core/db/index.d.ts.map +1 -1
- package/dist/core/db/index.js +1 -1
- package/dist/core/db/table-checker/MysqlTable.d.ts +1 -1
- package/dist/core/db/table-checker/MysqlTable.d.ts.map +1 -1
- package/dist/core/db/table-checker/MysqlTable.js +2 -2
- package/dist/core/db/table-checker/index.d.ts +1 -1
- package/dist/core/db/table-checker/index.d.ts.map +1 -1
- package/dist/core/db/table-checker/index.js +1 -1
- package/dist/core/factories/FieldFactory.d.ts +4 -4
- package/dist/core/factories/FieldFactory.d.ts.map +1 -1
- package/dist/core/factories/FieldFactory.js +5 -5
- package/dist/core/factories/SectionFactory.d.ts +3 -3
- package/dist/core/factories/SectionFactory.d.ts.map +1 -1
- package/dist/core/factories/SectionFactory.js +7 -7
- package/dist/core/factories/index.d.ts +2 -2
- package/dist/core/factories/index.d.ts.map +1 -1
- package/dist/core/factories/index.js +2 -2
- package/dist/core/fields/checkbox.d.ts +6 -6
- package/dist/core/fields/checkbox.d.ts.map +1 -1
- package/dist/core/fields/checkbox.js +2 -2
- package/dist/core/fields/color.d.ts +6 -6
- package/dist/core/fields/color.d.ts.map +1 -1
- package/dist/core/fields/color.js +2 -2
- package/dist/core/fields/date.d.ts +6 -6
- package/dist/core/fields/date.d.ts.map +1 -1
- package/dist/core/fields/date.js +2 -2
- package/dist/core/fields/document.d.ts +6 -6
- package/dist/core/fields/document.d.ts.map +1 -1
- package/dist/core/fields/document.js +4 -4
- package/dist/core/fields/field-group.d.ts +2 -2
- package/dist/core/fields/field-group.d.ts.map +1 -1
- package/dist/core/fields/field.d.ts +2 -2
- package/dist/core/fields/field.d.ts.map +1 -1
- package/dist/core/fields/field.js +1 -1
- package/dist/core/fields/fileField.d.ts +2 -2
- package/dist/core/fields/fileField.d.ts.map +1 -1
- package/dist/core/fields/fileField.js +2 -2
- package/dist/core/fields/index.d.ts +50 -50
- package/dist/core/fields/index.d.ts.map +1 -1
- package/dist/core/fields/index.js +18 -18
- package/dist/core/fields/map.d.ts +6 -6
- package/dist/core/fields/map.d.ts.map +1 -1
- package/dist/core/fields/map.js +2 -2
- package/dist/core/fields/number.d.ts +8 -8
- package/dist/core/fields/number.d.ts.map +1 -1
- package/dist/core/fields/number.js +2 -2
- package/dist/core/fields/password.d.ts +6 -6
- package/dist/core/fields/password.d.ts.map +1 -1
- package/dist/core/fields/password.js +2 -2
- package/dist/core/fields/photo.d.ts +6 -6
- package/dist/core/fields/photo.d.ts.map +1 -1
- package/dist/core/fields/photo.js +5 -5
- package/dist/core/fields/richText.d.ts +8 -8
- package/dist/core/fields/richText.d.ts.map +1 -1
- package/dist/core/fields/richText.js +6 -6
- package/dist/core/fields/select.d.ts +10 -10
- package/dist/core/fields/select.d.ts.map +1 -1
- package/dist/core/fields/select.js +4 -4
- package/dist/core/fields/selectMultiple.d.ts +9 -9
- package/dist/core/fields/selectMultiple.d.ts.map +1 -1
- package/dist/core/fields/selectMultiple.js +5 -5
- package/dist/core/fields/tags.d.ts +6 -6
- package/dist/core/fields/tags.d.ts.map +1 -1
- package/dist/core/fields/tags.js +3 -3
- package/dist/core/fields/text.d.ts +6 -6
- package/dist/core/fields/text.d.ts.map +1 -1
- package/dist/core/fields/text.js +3 -3
- package/dist/core/fields/textArea.d.ts +6 -6
- package/dist/core/fields/textArea.d.ts.map +1 -1
- package/dist/core/fields/textArea.js +3 -3
- package/dist/core/fields/video.d.ts +6 -6
- package/dist/core/fields/video.d.ts.map +1 -1
- package/dist/core/fields/video.js +4 -4
- package/dist/core/helpers/index.d.ts +4 -4
- package/dist/core/helpers/index.d.ts.map +1 -1
- package/dist/core/helpers/index.js +3 -3
- package/dist/core/index.d.ts +7 -7
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +7 -7
- package/dist/core/sections/category.d.ts +22 -22
- package/dist/core/sections/category.d.ts.map +1 -1
- package/dist/core/sections/category.js +3 -3
- package/dist/core/sections/hasItems.d.ts +52 -52
- package/dist/core/sections/hasItems.d.ts.map +1 -1
- package/dist/core/sections/hasItems.js +2 -2
- package/dist/core/sections/index.d.ts +4 -4
- package/dist/core/sections/index.d.ts.map +1 -1
- package/dist/core/sections/index.js +4 -4
- package/dist/core/sections/section.d.ts +6 -6
- package/dist/core/sections/section.d.ts.map +1 -1
- package/dist/core/sections/section.js +3 -3
- package/dist/core/sections/simple.d.ts +8 -8
- package/dist/core/sections/simple.d.ts.map +1 -1
- package/dist/core/sections/simple.js +3 -3
- package/dist/core/types/index.d.ts +2 -2
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/db/client.d.ts +2 -2
- package/dist/db/client.d.ts.map +1 -1
- package/dist/db/client.js +2 -2
- package/dist/db/drizzle.config.js +2 -2
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/utils.js +1 -1
- package/dist/validators/checkbox.d.ts +1 -1
- package/dist/validators/checkbox.d.ts.map +1 -1
- package/dist/validators/color.d.ts +1 -1
- package/dist/validators/color.d.ts.map +1 -1
- package/dist/validators/date.d.ts +1 -1
- package/dist/validators/date.d.ts.map +1 -1
- package/dist/validators/document.d.ts +1 -1
- package/dist/validators/document.d.ts.map +1 -1
- package/dist/validators/index.d.ts +14 -14
- package/dist/validators/index.d.ts.map +1 -1
- package/dist/validators/index.js +14 -14
- package/dist/validators/map.d.ts +1 -1
- package/dist/validators/map.d.ts.map +1 -1
- package/dist/validators/number.d.ts +1 -1
- package/dist/validators/number.d.ts.map +1 -1
- package/dist/validators/password.d.ts +1 -1
- package/dist/validators/password.d.ts.map +1 -1
- package/dist/validators/photo.d.ts +1 -1
- package/dist/validators/photo.d.ts.map +1 -1
- package/dist/validators/richText.d.ts +1 -1
- package/dist/validators/richText.d.ts.map +1 -1
- package/dist/validators/select-multiple.d.ts +1 -1
- package/dist/validators/select-multiple.d.ts.map +1 -1
- package/dist/validators/select.d.ts +1 -1
- package/dist/validators/select.d.ts.map +1 -1
- package/dist/validators/text.d.ts +1 -1
- package/dist/validators/text.d.ts.map +1 -1
- package/dist/validators/textarea.d.ts +1 -1
- package/dist/validators/textarea.d.ts.map +1 -1
- package/dist/validators/video.d.ts +1 -1
- package/dist/validators/video.d.ts.map +1 -1
- package/package.json +5 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Field, baseFieldConfigSchema } from './field';
|
|
2
|
-
import { entityKind } from '../helpers';
|
|
3
|
-
import { MysqlTableChecker } from '../db';
|
|
4
|
-
import { db } from '../../db/client';
|
|
1
|
+
import { Field, baseFieldConfigSchema } from './field.js';
|
|
2
|
+
import { entityKind } from '../helpers/index.js';
|
|
3
|
+
import { MysqlTableChecker } from '../db/index.js';
|
|
4
|
+
import { db } from '../../db/client.js';
|
|
5
5
|
import { sql } from 'drizzle-orm';
|
|
6
6
|
import chalk from 'chalk';
|
|
7
7
|
import * as z from 'zod';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { BaseFieldConfig } from './field';
|
|
2
|
-
import { Field } from './field';
|
|
3
|
-
import { entityKind } from '../helpers';
|
|
4
|
-
import type { SelectOption } from './select';
|
|
5
|
-
import type { HasItemsSection, CategorySection } from '../sections';
|
|
1
|
+
import type { BaseFieldConfig } from './field.js';
|
|
2
|
+
import { Field } from './field.js';
|
|
3
|
+
import { entityKind } from '../helpers/index.js';
|
|
4
|
+
import type { SelectOption } from './select.js';
|
|
5
|
+
import type { HasItemsSection, CategorySection } from '../sections/index.js';
|
|
6
6
|
import * as z from 'zod';
|
|
7
7
|
declare const selectMultipleFieldConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
8
8
|
destinationDb: z.ZodOptional<z.ZodObject<{
|
|
@@ -108,7 +108,7 @@ export declare class SelectMultipleField extends Field<'select_multiple', Select
|
|
|
108
108
|
name: string;
|
|
109
109
|
label: string;
|
|
110
110
|
required: boolean;
|
|
111
|
-
conditionalFields: import("../types").ConditionalField[];
|
|
111
|
+
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
112
112
|
readonly: boolean;
|
|
113
113
|
defaultValue: any;
|
|
114
114
|
};
|
|
@@ -166,7 +166,7 @@ declare const selectMultipleFieldHelperConfigSchema: z.ZodIntersection<z.ZodUnio
|
|
|
166
166
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
167
167
|
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
168
168
|
order: z.ZodOptional<z.ZodNumber>;
|
|
169
|
-
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types").ConditionalRule, import("../types").ConditionalRule>>>;
|
|
169
|
+
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").ConditionalRule, import("../types/index.js").ConditionalRule>>>;
|
|
170
170
|
adminGenerated: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodLiteral<false>, z.ZodLiteral<"readonly">]>>;
|
|
171
171
|
}, z.core.$strict>, z.ZodObject<{
|
|
172
172
|
destinationDb: z.ZodOptional<z.ZodObject<{
|
|
@@ -196,7 +196,7 @@ declare const selectMultipleFieldHelperConfigSchema: z.ZodIntersection<z.ZodUnio
|
|
|
196
196
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
197
197
|
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
198
198
|
order: z.ZodOptional<z.ZodNumber>;
|
|
199
|
-
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types").ConditionalRule, import("../types").ConditionalRule>>>;
|
|
199
|
+
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").ConditionalRule, import("../types/index.js").ConditionalRule>>>;
|
|
200
200
|
adminGenerated: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodLiteral<false>, z.ZodLiteral<"readonly">]>>;
|
|
201
201
|
}, z.core.$strict>, z.ZodObject<{
|
|
202
202
|
destinationDb: z.ZodOptional<z.ZodObject<{
|
|
@@ -216,7 +216,7 @@ declare const selectMultipleFieldHelperConfigSchema: z.ZodIntersection<z.ZodUnio
|
|
|
216
216
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
217
217
|
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
218
218
|
order: z.ZodOptional<z.ZodNumber>;
|
|
219
|
-
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types").ConditionalRule, import("../types").ConditionalRule>>>;
|
|
219
|
+
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").ConditionalRule, import("../types/index.js").ConditionalRule>>>;
|
|
220
220
|
adminGenerated: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodLiteral<false>, z.ZodLiteral<"readonly">]>>;
|
|
221
221
|
}, z.core.$strict>]>, z.ZodObject<{
|
|
222
222
|
type: z.ZodLiteral<"select_multiple">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectMultiple.d.ts","sourceRoot":"","sources":["../../../src/core/fields/selectMultiple.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"selectMultiple.d.ts","sourceRoot":"","sources":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;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,eAAe,CAAC,yBAAyB,CAAC,GAAG,6BAA6B,CAiBpH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Field, baseFieldConfigSchema } from './field';
|
|
2
|
-
import { entityKind } from '../helpers';
|
|
3
|
-
import { selectFieldDestinationDbSchema, selectOptionSchema } from './select';
|
|
4
|
-
import { MysqlTableChecker } from '../db';
|
|
5
|
-
import { db } from '../../db/client';
|
|
1
|
+
import { Field, baseFieldConfigSchema } from './field.js';
|
|
2
|
+
import { entityKind } from '../helpers/index.js';
|
|
3
|
+
import { selectFieldDestinationDbSchema, selectOptionSchema } from './select.js';
|
|
4
|
+
import { MysqlTableChecker } from '../db/index.js';
|
|
5
|
+
import { db } from '../../db/client.js';
|
|
6
6
|
import { sql } from 'drizzle-orm';
|
|
7
7
|
import chalk from 'chalk';
|
|
8
8
|
import * as z from 'zod';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BaseFieldConfig } from './field';
|
|
2
|
-
import { Field } from './field';
|
|
3
|
-
import { entityKind } from '../helpers';
|
|
1
|
+
import type { BaseFieldConfig } from './field.js';
|
|
2
|
+
import { Field } from './field.js';
|
|
3
|
+
import { entityKind } from '../helpers/index.js';
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
declare const configSchema: z.ZodObject<{
|
|
6
6
|
/**
|
|
@@ -44,7 +44,7 @@ export declare class TagsField extends Field<'tags', Config> {
|
|
|
44
44
|
name: string;
|
|
45
45
|
label: string;
|
|
46
46
|
required: boolean;
|
|
47
|
-
conditionalFields: import("../types").ConditionalField[];
|
|
47
|
+
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
48
48
|
readonly: boolean;
|
|
49
49
|
defaultValue: any;
|
|
50
50
|
value: any;
|
|
@@ -80,7 +80,7 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
80
80
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
81
81
|
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
82
82
|
order: z.ZodOptional<z.ZodNumber>;
|
|
83
|
-
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types").ConditionalRule, import("../types").ConditionalRule>>>;
|
|
83
|
+
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").ConditionalRule, import("../types/index.js").ConditionalRule>>>;
|
|
84
84
|
adminGenerated: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodLiteral<false>, z.ZodLiteral<"readonly">]>>;
|
|
85
85
|
}, z.core.$strict>;
|
|
86
86
|
declare const tagsFieldConfigSchema: z.ZodObject<{
|
|
@@ -112,7 +112,7 @@ declare const tagsFieldConfigSchema: z.ZodObject<{
|
|
|
112
112
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
113
113
|
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
114
114
|
order: z.ZodOptional<z.ZodNumber>;
|
|
115
|
-
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types").ConditionalRule, import("../types").ConditionalRule>>>;
|
|
115
|
+
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").ConditionalRule, import("../types/index.js").ConditionalRule>>>;
|
|
116
116
|
adminGenerated: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodLiteral<false>, z.ZodLiteral<"readonly">]>>;
|
|
117
117
|
}, z.core.$strict>;
|
|
118
118
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../src/core/fields/tags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../src/core/fields/tags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,KAAK,E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AAG,eAAe,CAmB/E"}
|
package/dist/core/fields/tags.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Field, baseFieldConfigSchema } from './field';
|
|
2
|
-
import { entityKind } from '../helpers';
|
|
1
|
+
import { Field, baseFieldConfigSchema } from './field.js';
|
|
2
|
+
import { entityKind } from '../helpers/index.js';
|
|
3
3
|
import * as z from 'zod';
|
|
4
|
-
import { escapeHTML } from '../security/dom';
|
|
4
|
+
import { escapeHTML } from '../security/dom.js';
|
|
5
5
|
const configSchema = z.strictObject({
|
|
6
6
|
/**
|
|
7
7
|
* A destination table where the values will be saved
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BaseFieldConfig } from './field';
|
|
2
|
-
import { Field } from './field';
|
|
3
|
-
import { entityKind } from '../helpers';
|
|
1
|
+
import type { BaseFieldConfig } from './field.js';
|
|
2
|
+
import { Field } from './field.js';
|
|
3
|
+
import { entityKind } from '../helpers/index.js';
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
declare const configSchema: z.ZodObject<{
|
|
6
6
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -43,7 +43,7 @@ export declare class TextField extends Field<'text', Config> {
|
|
|
43
43
|
name: string;
|
|
44
44
|
label: string;
|
|
45
45
|
required: boolean;
|
|
46
|
-
conditionalFields: import("../types").ConditionalField[];
|
|
46
|
+
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
47
47
|
readonly: boolean;
|
|
48
48
|
defaultValue: any;
|
|
49
49
|
value: any;
|
|
@@ -81,7 +81,7 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
81
81
|
label: z.ZodOptional<z.ZodString>;
|
|
82
82
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
83
83
|
order: z.ZodOptional<z.ZodNumber>;
|
|
84
|
-
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types").ConditionalRule, import("../types").ConditionalRule>>>;
|
|
84
|
+
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").ConditionalRule, import("../types/index.js").ConditionalRule>>>;
|
|
85
85
|
adminGenerated: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodLiteral<false>, z.ZodLiteral<"readonly">]>>;
|
|
86
86
|
}, z.core.$strict>;
|
|
87
87
|
declare const textFieldConfigSchema: z.ZodObject<{
|
|
@@ -107,7 +107,7 @@ declare const textFieldConfigSchema: z.ZodObject<{
|
|
|
107
107
|
label: z.ZodOptional<z.ZodString>;
|
|
108
108
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
109
109
|
order: z.ZodOptional<z.ZodNumber>;
|
|
110
|
-
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types").ConditionalRule, import("../types").ConditionalRule>>>;
|
|
110
|
+
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").ConditionalRule, import("../types/index.js").ConditionalRule>>>;
|
|
111
111
|
adminGenerated: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodLiteral<false>, z.ZodLiteral<"readonly">]>>;
|
|
112
112
|
}, z.core.$strict>;
|
|
113
113
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/core/fields/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/core/fields/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,KAAK,EAAyB,MAAM,YAAY,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAGxB,QAAA,MAAM,YAAY;;;;IAId;;;;OAIG;;IAEH;;;;;OAKG;;kBAEL,CAAA;A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ED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Field, baseFieldConfigSchema } from './field';
|
|
2
|
-
import { entityKind } from '../helpers';
|
|
1
|
+
import { Field, baseFieldConfigSchema } from './field.js';
|
|
2
|
+
import { entityKind } from '../helpers/index.js';
|
|
3
3
|
import * as z from 'zod';
|
|
4
|
-
import { escapeHTML } from '../security/dom';
|
|
4
|
+
import { escapeHTML } from '../security/dom.js';
|
|
5
5
|
const configSchema = z.strictObject({
|
|
6
6
|
placeholder: z.string().optional().describe('The placeholder text for the field'),
|
|
7
7
|
minLength: z.number().optional().describe('The minimum length of the field value'),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BaseFieldConfig } from './field';
|
|
2
|
-
import { Field } from './field';
|
|
3
|
-
import { entityKind } from '../helpers';
|
|
1
|
+
import type { BaseFieldConfig } from './field.js';
|
|
2
|
+
import { Field } from './field.js';
|
|
3
|
+
import { entityKind } from '../helpers/index.js';
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
declare const configSchema: z.ZodObject<{
|
|
6
6
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -31,7 +31,7 @@ export declare class TextAreaField extends Field<'textarea', Config> {
|
|
|
31
31
|
name: string;
|
|
32
32
|
label: string;
|
|
33
33
|
required: boolean;
|
|
34
|
-
conditionalFields: import("../types").ConditionalField[];
|
|
34
|
+
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
35
35
|
readonly: boolean;
|
|
36
36
|
defaultValue: any;
|
|
37
37
|
value: any;
|
|
@@ -67,7 +67,7 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
67
67
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
68
68
|
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
69
69
|
order: z.ZodOptional<z.ZodNumber>;
|
|
70
|
-
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types").ConditionalRule, import("../types").ConditionalRule>>>;
|
|
70
|
+
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").ConditionalRule, import("../types/index.js").ConditionalRule>>>;
|
|
71
71
|
adminGenerated: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodLiteral<false>, z.ZodLiteral<"readonly">]>>;
|
|
72
72
|
}, z.core.$strict>;
|
|
73
73
|
declare const textAreaFieldConfigSchema: z.ZodObject<{
|
|
@@ -88,7 +88,7 @@ declare const textAreaFieldConfigSchema: z.ZodObject<{
|
|
|
88
88
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
89
89
|
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
90
90
|
order: z.ZodOptional<z.ZodNumber>;
|
|
91
|
-
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types").ConditionalRule, import("../types").ConditionalRule>>>;
|
|
91
|
+
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").ConditionalRule, import("../types/index.js").ConditionalRule>>>;
|
|
92
92
|
adminGenerated: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodLiteral<false>, z.ZodLiteral<"readonly">]>>;
|
|
93
93
|
}, z.core.$strict>;
|
|
94
94
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textArea.d.ts","sourceRoot":"","sources":["../../../src/core/fields/textArea.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"textArea.d.ts","sourceRoot":"","sources":["../../../src/core/fields/textArea.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,KAAK,EAAyB,MAAM,YAAY,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAGxB,QAAA,MAAM,YAAY;;;;IAId;;;;;OAKG;;kBAEL,CAAA;AAEF,KAAK,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAE1C,qBAAa,aAAc,SAAQ,KAAK,CAAC,UAAU,EAAE,MAAM,CAAC;IACxD,gBAAyB,CAAC,UAAU,CAAC,EAAE,MAAM,CAAkB;IAC/D,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IACxC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;gBAEd,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC;IAQ3B,eAAe;;;;;;;;;;;;;;IAU/B;;OAEG;IACH,OAAO,CAAC,aAAa;IAYrB;;OAEG;IACH,QAAQ,IAAI,MAAM,GAAG,SAAS;IAI9B,aAAa;IAWb;;OAEG;IACG,oBAAoB;CAuB7B;AAED,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAA;AAEpF,QAAA,MAAM,aAAa;;;;IAnGf;;;;;OAKG;;;;;;;;;kBAiGL,CAAA;AAEF,QAAA,MAAM,yBAAyB;;;;;;IAxG3B;;;;;OAKG;;;;;;;;;kBAuGL,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE3E;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,GAAG,mBAAmB,CAmBvF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Field, baseFieldConfigSchema } from './field';
|
|
2
|
-
import { entityKind } from '../helpers';
|
|
1
|
+
import { Field, baseFieldConfigSchema } from './field.js';
|
|
2
|
+
import { entityKind } from '../helpers/index.js';
|
|
3
3
|
import * as z from 'zod';
|
|
4
|
-
import { escapeHTML } from '../security/dom';
|
|
4
|
+
import { escapeHTML } from '../security/dom.js';
|
|
5
5
|
const configSchema = z.strictObject({
|
|
6
6
|
placeholder: z.string().optional().describe('The placeholder text for the field'),
|
|
7
7
|
minLength: z.number().optional().describe('The minimum length of the field value'),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BaseFieldConfig } from './field';
|
|
2
|
-
import { entityKind } from '../helpers';
|
|
3
|
-
import { FileField } from './fileField';
|
|
1
|
+
import type { BaseFieldConfig } from './field.js';
|
|
2
|
+
import { entityKind } from '../helpers/index.js';
|
|
3
|
+
import { FileField } from './fileField.js';
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
declare const configSchema: z.ZodObject<{
|
|
6
6
|
/**
|
|
@@ -53,7 +53,7 @@ export declare class VideoField extends FileField<'video', Config> {
|
|
|
53
53
|
name: string;
|
|
54
54
|
label: string;
|
|
55
55
|
required: boolean;
|
|
56
|
-
conditionalFields: import("../types").ConditionalField[];
|
|
56
|
+
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
57
57
|
readonly: boolean;
|
|
58
58
|
defaultValue: any;
|
|
59
59
|
value: any;
|
|
@@ -108,7 +108,7 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
108
108
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
109
109
|
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
110
110
|
order: z.ZodOptional<z.ZodNumber>;
|
|
111
|
-
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types").ConditionalRule, import("../types").ConditionalRule>>>;
|
|
111
|
+
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").ConditionalRule, import("../types/index.js").ConditionalRule>>>;
|
|
112
112
|
adminGenerated: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodLiteral<false>, z.ZodLiteral<"readonly">]>>;
|
|
113
113
|
}, z.core.$strict>;
|
|
114
114
|
declare const videoFieldConfigSchema: z.ZodObject<{
|
|
@@ -129,7 +129,7 @@ declare const videoFieldConfigSchema: z.ZodObject<{
|
|
|
129
129
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
130
130
|
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
131
131
|
order: z.ZodOptional<z.ZodNumber>;
|
|
132
|
-
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types").ConditionalRule, import("../types").ConditionalRule>>>;
|
|
132
|
+
conditionalRules: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").ConditionalRule, import("../types/index.js").ConditionalRule>>>;
|
|
133
133
|
adminGenerated: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodLiteral<false>, z.ZodLiteral<"readonly">]>>;
|
|
134
134
|
}, z.core.$strict>;
|
|
135
135
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../../src/core/fields/video.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../../src/core/fields/video.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAIhD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,QAAA,MAAM,YAAY;IACd;;OAEG;;;;;;;;IAQH;;;OAGG;;;;;;kBAKL,CAAA;AAEF,KAAK,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAE1C,qBAAa,UAAW,SAAQ,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IACtD,gBAAyB,CAAC,U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AA;AAE9E,QAAA,MAAM,aAAa;IAxPf;;OAEG;;;;;;;;IAQH;;;OAGG;;;;;;;;;;;;;kBA8OL,CAAA;AAEF,QAAA,MAAM,sBAAsB;;;IA7PxB;;OAEG;;;;;;;;;;;;;;;kBA+PL,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,GAAG,gBAAgB,CAmBjF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { baseFieldConfigSchema } from './field';
|
|
2
|
-
import { entityKind } from '../helpers';
|
|
1
|
+
import { baseFieldConfigSchema } from './field.js';
|
|
2
|
+
import { entityKind } from '../helpers/index.js';
|
|
3
3
|
import fs from 'fs';
|
|
4
4
|
import { customAlphabet } from 'nanoid';
|
|
5
5
|
import path from 'path';
|
|
6
|
-
import { FileField } from './fileField';
|
|
7
|
-
import { getCMSConfig } from '../config';
|
|
6
|
+
import { FileField } from './fileField.js';
|
|
7
|
+
import { getCMSConfig } from '../config/index.js';
|
|
8
8
|
import * as z from 'zod';
|
|
9
9
|
const configSchema = z.strictObject({
|
|
10
10
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { is } from './entity';
|
|
2
|
-
export { entityKind } from './entity';
|
|
3
|
-
export type { LZEntity } from './entity';
|
|
4
|
-
export { hasOwnEntityKind } from './entity';
|
|
1
|
+
export { is } from './entity.js';
|
|
2
|
+
export { entityKind } from './entity.js';
|
|
3
|
+
export type { LZEntity } from './entity.js';
|
|
4
|
+
export { hasOwnEntityKind } from './entity.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { is } from './entity';
|
|
2
|
-
export { entityKind } from './entity';
|
|
3
|
-
export { hasOwnEntityKind } from './entity';
|
|
1
|
+
export { is } from './entity.js';
|
|
2
|
+
export { entityKind } from './entity.js';
|
|
3
|
+
export { hasOwnEntityKind } from './entity.js';
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './config';
|
|
2
|
-
export * from './factories';
|
|
3
|
-
export * from './fields';
|
|
4
|
-
export * from './sections';
|
|
5
|
-
export * from './submit';
|
|
6
|
-
export * from './db';
|
|
7
|
-
export * from './helpers';
|
|
1
|
+
export * from './config/index.js';
|
|
2
|
+
export * from './factories/index.js';
|
|
3
|
+
export * from './fields/index.js';
|
|
4
|
+
export * from './sections/index.js';
|
|
5
|
+
export * from './submit/index.js';
|
|
6
|
+
export * from './db/index.js';
|
|
7
|
+
export * from './helpers/index.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA"}
|
package/dist/core/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './config';
|
|
2
|
-
export * from './factories';
|
|
3
|
-
export * from './fields';
|
|
4
|
-
export * from './sections';
|
|
5
|
-
export * from './submit';
|
|
6
|
-
export * from './db';
|
|
7
|
-
export * from './helpers';
|
|
1
|
+
export * from './config/index.js';
|
|
2
|
+
export * from './factories/index.js';
|
|
3
|
+
export * from './fields/index.js';
|
|
4
|
+
export * from './sections/index.js';
|
|
5
|
+
export * from './submit/index.js';
|
|
6
|
+
export * from './db/index.js';
|
|
7
|
+
export * from './helpers/index.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { BaseSectionOptions } from './section';
|
|
2
|
-
import type { FieldGroupConfig } from '../fields/field-group';
|
|
3
|
-
import { Section } from './section';
|
|
4
|
-
import type { TextFieldConfig } from '../fields';
|
|
5
|
-
import { entityKind } from '../helpers';
|
|
6
|
-
import type { FieldConfig } from '../fields';
|
|
1
|
+
import type { BaseSectionOptions } from './section.js';
|
|
2
|
+
import type { FieldGroupConfig } from '../fields/field-group.js';
|
|
3
|
+
import { Section } from './section.js';
|
|
4
|
+
import type { TextFieldConfig } from '../fields/index.js';
|
|
5
|
+
import { entityKind } from '../helpers/index.js';
|
|
6
|
+
import type { FieldConfig } from '../fields/index.js';
|
|
7
7
|
import * as z from 'zod';
|
|
8
8
|
declare const configSchema: z.ZodObject<{
|
|
9
9
|
headingField: z.ZodCustom<{
|
|
10
10
|
type: "text";
|
|
11
|
-
build: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodCustom<import("
|
|
11
|
+
build: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodCustom<import("../index.js").TextField, import("../index.js").TextField>>;
|
|
12
12
|
name: string;
|
|
13
13
|
placeholder?: string | undefined;
|
|
14
14
|
minLength?: number | undefined;
|
|
@@ -18,11 +18,11 @@ declare const configSchema: z.ZodObject<{
|
|
|
18
18
|
label?: string | undefined;
|
|
19
19
|
required?: boolean | undefined;
|
|
20
20
|
order?: number | undefined;
|
|
21
|
-
conditionalRules?: import("../types").ConditionalRule[] | undefined;
|
|
21
|
+
conditionalRules?: import("../types/index.js").ConditionalRule[] | undefined;
|
|
22
22
|
adminGenerated?: boolean | "readonly" | undefined;
|
|
23
23
|
}, {
|
|
24
24
|
type: "text";
|
|
25
|
-
build: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodCustom<import("
|
|
25
|
+
build: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodCustom<import("../index.js").TextField, import("../index.js").TextField>>;
|
|
26
26
|
name: string;
|
|
27
27
|
placeholder?: string | undefined;
|
|
28
28
|
minLength?: number | undefined;
|
|
@@ -32,7 +32,7 @@ declare const configSchema: z.ZodObject<{
|
|
|
32
32
|
label?: string | undefined;
|
|
33
33
|
required?: boolean | undefined;
|
|
34
34
|
order?: number | undefined;
|
|
35
|
-
conditionalRules?: import("../types").ConditionalRule[] | undefined;
|
|
35
|
+
conditionalRules?: import("../types/index.js").ConditionalRule[] | undefined;
|
|
36
36
|
adminGenerated?: boolean | "readonly" | undefined;
|
|
37
37
|
}>;
|
|
38
38
|
title: z.ZodObject<{
|
|
@@ -71,7 +71,7 @@ export declare class CategorySection extends Section<Config> {
|
|
|
71
71
|
declare const optionsSchema: z.ZodObject<{
|
|
72
72
|
headingField: z.ZodCustom<{
|
|
73
73
|
type: "text";
|
|
74
|
-
build: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodCustom<import("
|
|
74
|
+
build: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodCustom<import("../index.js").TextField, import("../index.js").TextField>>;
|
|
75
75
|
name: string;
|
|
76
76
|
placeholder?: string | undefined;
|
|
77
77
|
minLength?: number | undefined;
|
|
@@ -81,11 +81,11 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
81
81
|
label?: string | undefined;
|
|
82
82
|
required?: boolean | undefined;
|
|
83
83
|
order?: number | undefined;
|
|
84
|
-
conditionalRules?: import("../types").ConditionalRule[] | undefined;
|
|
84
|
+
conditionalRules?: import("../types/index.js").ConditionalRule[] | undefined;
|
|
85
85
|
adminGenerated?: boolean | "readonly" | undefined;
|
|
86
86
|
}, {
|
|
87
87
|
type: "text";
|
|
88
|
-
build: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodCustom<import("
|
|
88
|
+
build: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodCustom<import("../index.js").TextField, import("../index.js").TextField>>;
|
|
89
89
|
name: string;
|
|
90
90
|
placeholder?: string | undefined;
|
|
91
91
|
minLength?: number | undefined;
|
|
@@ -95,7 +95,7 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
95
95
|
label?: string | undefined;
|
|
96
96
|
required?: boolean | undefined;
|
|
97
97
|
order?: number | undefined;
|
|
98
|
-
conditionalRules?: import("../types").ConditionalRule[] | undefined;
|
|
98
|
+
conditionalRules?: import("../types/index.js").ConditionalRule[] | undefined;
|
|
99
99
|
adminGenerated?: boolean | "readonly" | undefined;
|
|
100
100
|
}>;
|
|
101
101
|
title: z.ZodObject<{
|
|
@@ -141,7 +141,7 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
141
141
|
name: z.ZodOptional<z.ZodString>;
|
|
142
142
|
}, z.core.$strict>>>;
|
|
143
143
|
}, z.core.$strict>;
|
|
144
|
-
variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types").Variant, import("../types").Variant>>>;
|
|
144
|
+
variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
|
|
145
145
|
order: z.ZodNumber;
|
|
146
146
|
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
147
147
|
icon: z.ZodOptional<z.ZodString>;
|
|
@@ -160,7 +160,7 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
160
160
|
quality: z.ZodNumber;
|
|
161
161
|
}, z.core.$strict>>;
|
|
162
162
|
}, z.core.$strict>>;
|
|
163
|
-
hooks: z.ZodOptional<z.ZodCustom<import("./section").Hooks, import("./section").Hooks>>;
|
|
163
|
+
hooks: z.ZodOptional<z.ZodCustom<import("./section.js").Hooks, import("./section.js").Hooks>>;
|
|
164
164
|
}, z.core.$strict>;
|
|
165
165
|
export declare const categorySectionConfigSchema: z.ZodObject<{
|
|
166
166
|
type: z.ZodLiteral<"category">;
|
|
@@ -169,7 +169,7 @@ export declare const categorySectionConfigSchema: z.ZodObject<{
|
|
|
169
169
|
fieldGroups: z.ZodOptional<z.ZodArray<z.ZodCustom<FieldGroupConfig, FieldGroupConfig>>>;
|
|
170
170
|
headingField: z.ZodCustom<{
|
|
171
171
|
type: "text";
|
|
172
|
-
build: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodCustom<import("
|
|
172
|
+
build: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodCustom<import("../index.js").TextField, import("../index.js").TextField>>;
|
|
173
173
|
name: string;
|
|
174
174
|
placeholder?: string | undefined;
|
|
175
175
|
minLength?: number | undefined;
|
|
@@ -179,11 +179,11 @@ export declare const categorySectionConfigSchema: z.ZodObject<{
|
|
|
179
179
|
label?: string | undefined;
|
|
180
180
|
required?: boolean | undefined;
|
|
181
181
|
order?: number | undefined;
|
|
182
|
-
conditionalRules?: import("../types").ConditionalRule[] | undefined;
|
|
182
|
+
conditionalRules?: import("../types/index.js").ConditionalRule[] | undefined;
|
|
183
183
|
adminGenerated?: boolean | "readonly" | undefined;
|
|
184
184
|
}, {
|
|
185
185
|
type: "text";
|
|
186
|
-
build: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodCustom<import("
|
|
186
|
+
build: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodCustom<import("../index.js").TextField, import("../index.js").TextField>>;
|
|
187
187
|
name: string;
|
|
188
188
|
placeholder?: string | undefined;
|
|
189
189
|
minLength?: number | undefined;
|
|
@@ -193,7 +193,7 @@ export declare const categorySectionConfigSchema: z.ZodObject<{
|
|
|
193
193
|
label?: string | undefined;
|
|
194
194
|
required?: boolean | undefined;
|
|
195
195
|
order?: number | undefined;
|
|
196
|
-
conditionalRules?: import("../types").ConditionalRule[] | undefined;
|
|
196
|
+
conditionalRules?: import("../types/index.js").ConditionalRule[] | undefined;
|
|
197
197
|
adminGenerated?: boolean | "readonly" | undefined;
|
|
198
198
|
}>;
|
|
199
199
|
title: z.ZodObject<{
|
|
@@ -238,7 +238,7 @@ export declare const categorySectionConfigSchema: z.ZodObject<{
|
|
|
238
238
|
name: z.ZodOptional<z.ZodString>;
|
|
239
239
|
}, z.core.$strict>>>;
|
|
240
240
|
}, z.core.$strict>;
|
|
241
|
-
variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types").Variant, import("../types").Variant>>>;
|
|
241
|
+
variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
|
|
242
242
|
order: z.ZodNumber;
|
|
243
243
|
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
244
244
|
icon: z.ZodOptional<z.ZodString>;
|
|
@@ -257,7 +257,7 @@ export declare const categorySectionConfigSchema: z.ZodObject<{
|
|
|
257
257
|
quality: z.ZodNumber;
|
|
258
258
|
}, z.core.$strict>>;
|
|
259
259
|
}, z.core.$strict>>;
|
|
260
|
-
hooks: z.ZodOptional<z.ZodCustom<import("./section").Hooks, import("./section").Hooks>>;
|
|
260
|
+
hooks: z.ZodOptional<z.ZodCustom<import("./section.js").Hooks, import("./section.js").Hooks>>;
|
|
261
261
|
}, z.core.$strict>;
|
|
262
262
|
export type CategorySectionOptions = z.infer<typeof optionsSchema>;
|
|
263
263
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../src/core/sections/category.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../src/core/sections/category.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,EAAE,OAAO,EAA8E,MAAM,cAAc,CAAA;AAClH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWd;;;;OAIG;;IAEH;;;;;OAKG;;kBAGL,CAAA;AAEF,KAAK,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAE1C,qBAAa,eAAgB,SAAQ,OAAO,CAAC,MAAM,CAAC;IAChD,gBAAyB,CAAC,UAAU,CAAC,qBAAoB;IACzD,SAAkB,IAAI,cAAa;IACnC,SAAkB,KAAK,EAAE;QACrB,OAAO,EAAE,MAAM,CAAA;QACf,QAAQ,EAAE,MAAM,CAAA;QAChB,MAAM,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,QAAQ,CAAC,YAAY,EAAE,eAAe,CAAA;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAI;IAC1B,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAA;gBAE1B,MAAM,EAAE,kBAAkB,CAAC,MAAM,CAAC;CA0CjD;AAED,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA1Ef;;;;OAIG;;IAEH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkEL,CAAA;AAOF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IApFpC;;;;OAIG;;IAEH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiFL,CAAA;AAEF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAElE;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAE/E;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,qBAAqB,CA6CtF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Section, baseHelperFunctionOptionsSchema, FieldGroupConfigSchema, fieldConfigSchema } from './section';
|
|
2
|
-
import { entityKind } from '../helpers';
|
|
3
|
-
import { numberField, textField } from '../fields';
|
|
1
|
+
import { Section, baseHelperFunctionOptionsSchema, FieldGroupConfigSchema, fieldConfigSchema } from './section.js';
|
|
2
|
+
import { entityKind } from '../helpers/index.js';
|
|
3
|
+
import { numberField, textField } from '../fields/index.js';
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
const configSchema = z.strictObject({
|
|
6
6
|
headingField: z
|