@drawnagency/primitives 0.1.7 → 0.1.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/auth/index.js +2 -2
- package/dist/auth/security.d.ts.map +1 -1
- package/dist/{chunk-T4BJ6RSB.js → chunk-32H6Q6CX.js} +1 -1
- package/dist/{chunk-HOJAF4VD.js → chunk-6SK5BLG3.js} +16 -9
- package/dist/{chunk-2VTPWODA.js → chunk-F32I6ZZV.js} +1 -1
- package/dist/{chunk-CS7F6IOY.js → chunk-F3Z6RISI.js} +4 -1
- package/dist/{chunk-UKEVUCIZ.js → chunk-XQXZHDNR.js} +4 -4
- package/dist/components/editor/SectionWrapper.d.ts.map +1 -1
- package/dist/components/primitives/EditableGrid.d.ts.map +1 -1
- package/dist/components/primitives/EditableList.d.ts.map +1 -1
- package/dist/components/primitives/EditableRichText.d.ts +2 -1
- package/dist/components/primitives/EditableRichText.d.ts.map +1 -1
- package/dist/components/primitives/ResolvedMedia.d.ts +4 -1
- package/dist/components/primitives/ResolvedMedia.d.ts.map +1 -1
- package/dist/components/primitives/useEditableRichText.d.ts +2 -1
- package/dist/components/primitives/useEditableRichText.d.ts.map +1 -1
- package/dist/components/sections/IconList/IconList.d.ts.map +1 -1
- package/dist/components/sections/Prose/Prose.d.ts.map +1 -1
- package/dist/components/sections/SplitContent/SplitContent.d.ts +4 -1
- package/dist/components/sections/SplitContent/SplitContent.d.ts.map +1 -1
- package/dist/components/sections/SplitContent/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/lib/index.js +3 -3
- package/dist/lib/loader.d.ts.map +1 -1
- package/dist/lib/registry.d.ts.map +1 -1
- package/dist/schemas/index.js +2 -2
- package/package.json +11 -10
- package/src/auth/security.ts +5 -1
- package/src/components/brandguide/ColorSwatchSettings.d.ts +8 -0
- package/src/components/brandguide/ColorSwatchSettings.d.ts.map +1 -0
- package/src/components/brandguide/Colors.d.ts +15 -0
- package/src/components/brandguide/Colors.d.ts.map +1 -0
- package/src/components/brandguide/DoDontList.d.ts +16 -0
- package/src/components/brandguide/DoDontList.d.ts.map +1 -0
- package/src/components/brandguide/DoDontMediaGrid.d.ts +16 -0
- package/src/components/brandguide/DoDontMediaGrid.d.ts.map +1 -0
- package/src/components/editor/SectionWrapper.tsx +65 -58
- package/src/components/primitives/CustomParagraph.d.ts +2 -0
- package/src/components/primitives/CustomParagraph.d.ts.map +1 -0
- package/src/components/primitives/EditableGrid.d.ts +19 -0
- package/src/components/primitives/EditableGrid.d.ts.map +1 -0
- package/src/components/primitives/EditableGrid.tsx +70 -47
- package/src/components/primitives/EditableList.tsx +32 -21
- package/src/components/primitives/EditablePlainText.d.ts +12 -0
- package/src/components/primitives/EditablePlainText.d.ts.map +1 -0
- package/src/components/primitives/EditableRichText.d.ts +12 -0
- package/src/components/primitives/EditableRichText.d.ts.map +1 -0
- package/src/components/primitives/EditableRichText.tsx +19 -3
- package/src/components/primitives/HeadingSection.d.ts +10 -0
- package/src/components/primitives/HeadingSection.d.ts.map +1 -0
- package/src/components/primitives/IconPicker.d.ts +9 -0
- package/src/components/primitives/IconPicker.d.ts.map +1 -0
- package/src/components/primitives/LinkPopover.d.ts +8 -0
- package/src/components/primitives/LinkPopover.d.ts.map +1 -0
- package/src/components/primitives/MediaSettingsForms.d.ts +19 -0
- package/src/components/primitives/MediaSettingsForms.d.ts.map +1 -0
- package/src/components/primitives/ResolvedMedia.d.ts +8 -0
- package/src/components/primitives/ResolvedMedia.d.ts.map +1 -0
- package/src/components/primitives/ResolvedMedia.tsx +12 -1
- package/src/components/primitives/RichTextToolbar.d.ts +9 -0
- package/src/components/primitives/RichTextToolbar.d.ts.map +1 -0
- package/src/components/primitives/tiptap-presets.d.ts +4 -0
- package/src/components/primitives/tiptap-presets.d.ts.map +1 -0
- package/src/components/primitives/useEditableCollection.d.ts +19 -0
- package/src/components/primitives/useEditableCollection.d.ts.map +1 -0
- package/src/components/primitives/useEditablePlainText.d.ts +14 -0
- package/src/components/primitives/useEditablePlainText.d.ts.map +1 -0
- package/src/components/primitives/useEditableRichText.d.ts +17 -0
- package/src/components/primitives/useEditableRichText.d.ts.map +1 -0
- package/src/components/primitives/useEditableRichText.ts +8 -2
- package/src/components/sections/Button/CTAButton.d.ts +11 -0
- package/src/components/sections/Button/CTAButton.d.ts.map +1 -0
- package/src/components/sections/Button/index.d.ts +11 -0
- package/src/components/sections/Button/index.d.ts.map +1 -0
- package/src/components/sections/Colors/index.d.ts +22 -0
- package/src/components/sections/Colors/index.d.ts.map +1 -0
- package/src/components/sections/DoDontList/index.d.ts +21 -0
- package/src/components/sections/DoDontList/index.d.ts.map +1 -0
- package/src/components/sections/DoDontMediaGrid/index.d.ts +55 -0
- package/src/components/sections/DoDontMediaGrid/index.d.ts.map +1 -0
- package/src/components/sections/IconList/IconList.d.ts +20 -0
- package/src/components/sections/IconList/IconList.d.ts.map +1 -0
- package/src/components/sections/IconList/IconList.tsx +57 -36
- package/src/components/sections/IconList/IconListSettings.d.ts +11 -0
- package/src/components/sections/IconList/IconListSettings.d.ts.map +1 -0
- package/src/components/sections/IconList/index.d.ts +17 -0
- package/src/components/sections/IconList/index.d.ts.map +1 -0
- package/src/components/sections/LinkHeading/index.d.ts +8 -0
- package/src/components/sections/LinkHeading/index.d.ts.map +1 -0
- package/src/components/sections/MediaGrid/MediaGrid.d.ts +17 -0
- package/src/components/sections/MediaGrid/MediaGrid.d.ts.map +1 -0
- package/src/components/sections/MediaGrid/MediaGrid.tsx +4 -0
- package/src/components/sections/MediaGrid/index.d.ts +55 -0
- package/src/components/sections/MediaGrid/index.d.ts.map +1 -0
- package/src/components/sections/Prose/Prose.d.ts +8 -0
- package/src/components/sections/Prose/Prose.d.ts.map +1 -0
- package/src/components/sections/Prose/Prose.tsx +1 -0
- package/src/components/sections/Prose/index.d.ts +8 -0
- package/src/components/sections/Prose/index.d.ts.map +1 -0
- package/src/components/sections/SplitContent/SplitContent.d.ts +11 -0
- package/src/components/sections/SplitContent/SplitContent.d.ts.map +1 -0
- package/src/components/sections/SplitContent/SplitContent.tsx +7 -1
- package/src/components/sections/SplitContent/SplitContentSettings.d.ts +9 -0
- package/src/components/sections/SplitContent/SplitContentSettings.d.ts.map +1 -0
- package/src/components/sections/SplitContent/index.d.ts +13 -0
- package/src/components/sections/SplitContent/index.d.ts.map +1 -0
- package/src/components/sections/SplitContent/index.tsx +3 -0
- package/src/components/sections/SubHeading/index.d.ts +9 -0
- package/src/components/sections/SubHeading/index.d.ts.map +1 -0
- package/src/components/sections/SubSubHeading/index.d.ts +9 -0
- package/src/components/sections/SubSubHeading/index.d.ts.map +1 -0
- package/src/components/sections/register-schemas.d.ts +2 -0
- package/src/components/sections/register-schemas.d.ts.map +1 -0
- package/src/components/shared/Button.d.ts +15 -0
- package/src/components/shared/Button.d.ts.map +1 -0
- package/src/components/shared/Checkbox.d.ts +14 -0
- package/src/components/shared/Checkbox.d.ts.map +1 -0
- package/src/components/shared/FormLabel.d.ts +8 -0
- package/src/components/shared/FormLabel.d.ts.map +1 -0
- package/src/components/shared/IconButton.d.ts +12 -0
- package/src/components/shared/IconButton.d.ts.map +1 -0
- package/src/components/shared/Input.d.ts +8 -0
- package/src/components/shared/Input.d.ts.map +1 -0
- package/src/components/shared/Select.d.ts +16 -0
- package/src/components/shared/Select.d.ts.map +1 -0
- package/src/components/shared/icons.d.ts +17 -0
- package/src/components/shared/icons.d.ts.map +1 -0
- package/src/components/shell/MediaLibraryContext.d.ts +14 -0
- package/src/components/shell/MediaLibraryContext.d.ts.map +1 -0
- package/src/hooks/useResolvedMedia.d.ts +9 -0
- package/src/hooks/useResolvedMedia.d.ts.map +1 -0
- package/src/lib/cn.d.ts +3 -0
- package/src/lib/cn.d.ts.map +1 -0
- package/src/lib/grid.d.ts +2 -0
- package/src/lib/grid.d.ts.map +1 -0
- package/src/lib/icons.d.ts +9 -0
- package/src/lib/icons.d.ts.map +1 -0
- package/src/lib/loader.d.ts +28 -0
- package/src/lib/loader.d.ts.map +1 -0
- package/src/lib/loader.ts +15 -7
- package/src/lib/nav.d.ts +15 -0
- package/src/lib/nav.d.ts.map +1 -0
- package/src/lib/registry.d.ts +110 -0
- package/src/lib/registry.d.ts.map +1 -0
- package/src/lib/registry.ts +6 -4
- package/src/lib/sanitize.d.ts +2 -0
- package/src/lib/sanitize.d.ts.map +1 -0
- package/src/media/github.d.ts +3 -0
- package/src/media/github.d.ts.map +1 -0
- package/src/media/index.d.ts +8 -0
- package/src/media/index.d.ts.map +1 -0
- package/src/media/queue.d.ts +74 -0
- package/src/media/queue.d.ts.map +1 -0
- package/src/media/resolve.d.ts +14 -0
- package/src/media/resolve.d.ts.map +1 -0
- package/src/media/types.d.ts +42 -0
- package/src/media/types.d.ts.map +1 -0
- package/src/media/utils.d.ts +7 -0
- package/src/media/utils.d.ts.map +1 -0
- package/src/media/videoPoster.d.ts +6 -0
- package/src/media/videoPoster.d.ts.map +1 -0
- package/src/schemas/auth.d.ts +36 -0
- package/src/schemas/auth.d.ts.map +1 -0
- package/src/schemas/media-grid-options.d.ts +8 -0
- package/src/schemas/media-grid-options.d.ts.map +1 -0
- package/src/schemas/media.d.ts +63 -0
- package/src/schemas/media.d.ts.map +1 -0
- package/src/schemas/sections.d.ts +12 -0
- package/src/schemas/sections.d.ts.map +1 -0
- package/src/schemas/shared.d.ts +98 -0
- package/src/schemas/shared.d.ts.map +1 -0
- package/src/schemas/site-config.d.ts +48 -0
- package/src/schemas/site-config.d.ts.map +1 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const VariantSchema: z.ZodObject<{
|
|
3
|
+
width: z.ZodNumber;
|
|
4
|
+
height: z.ZodNumber;
|
|
5
|
+
size: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type Variant = z.infer<typeof VariantSchema>;
|
|
8
|
+
export declare const MediaItemSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
hash: z.ZodString;
|
|
11
|
+
kind: z.ZodEnum<{
|
|
12
|
+
image: "image";
|
|
13
|
+
animated: "animated";
|
|
14
|
+
video: "video";
|
|
15
|
+
}>;
|
|
16
|
+
originalName: z.ZodString;
|
|
17
|
+
width: z.ZodNumber;
|
|
18
|
+
height: z.ZodNumber;
|
|
19
|
+
mimeType: z.ZodString;
|
|
20
|
+
size: z.ZodNumber;
|
|
21
|
+
folder: z.ZodString;
|
|
22
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
23
|
+
width: z.ZodNumber;
|
|
24
|
+
height: z.ZodNumber;
|
|
25
|
+
size: z.ZodNumber;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
alt: z.ZodDefault<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type MediaItem = z.infer<typeof MediaItemSchema>;
|
|
30
|
+
export declare const ImageManifestSchema: z.ZodObject<{
|
|
31
|
+
images: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
hash: z.ZodString;
|
|
34
|
+
kind: z.ZodEnum<{
|
|
35
|
+
image: "image";
|
|
36
|
+
animated: "animated";
|
|
37
|
+
video: "video";
|
|
38
|
+
}>;
|
|
39
|
+
originalName: z.ZodString;
|
|
40
|
+
width: z.ZodNumber;
|
|
41
|
+
height: z.ZodNumber;
|
|
42
|
+
mimeType: z.ZodString;
|
|
43
|
+
size: z.ZodNumber;
|
|
44
|
+
folder: z.ZodString;
|
|
45
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
46
|
+
width: z.ZodNumber;
|
|
47
|
+
height: z.ZodNumber;
|
|
48
|
+
size: z.ZodNumber;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
alt: z.ZodDefault<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export type MediaManifest = z.infer<typeof ImageManifestSchema>;
|
|
54
|
+
export declare const MediaConfigSchema: z.ZodObject<{
|
|
55
|
+
adapter: z.ZodDefault<z.ZodEnum<{
|
|
56
|
+
github: "github";
|
|
57
|
+
}>>;
|
|
58
|
+
sizes: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
59
|
+
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
60
|
+
quality: z.ZodDefault<z.ZodNumber>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export type MediaConfig = z.infer<typeof MediaConfigSchema>;
|
|
63
|
+
//# sourceMappingURL=media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["media.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa;;;;iBAIxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;iBAY1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;iBAE9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,iBAAiB;;;;;;;iBAK5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export interface SectionContent<C = Record<string, unknown>> {
|
|
3
|
+
type: string;
|
|
4
|
+
content: C;
|
|
5
|
+
options?: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
export interface Section<C = Record<string, unknown>> extends SectionContent<C> {
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function getSectionContentSchema(): z.ZodType<SectionContent>;
|
|
11
|
+
export declare function getSectionSchema(): z.ZodType<Section>;
|
|
12
|
+
//# sourceMappingURL=sections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sections.d.ts","sourceRoot":"","sources":["sections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,OAAO,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IAC7E,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,wBAAgB,uBAAuB,IAAI,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAMnE;AAED,wBAAgB,gBAAgB,IAAI,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAErD"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const TextLineSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"heading">;
|
|
4
|
+
text: z.ZodString;
|
|
5
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6
|
+
type: z.ZodEnum<{
|
|
7
|
+
paragraph: "paragraph";
|
|
8
|
+
paragraph_large: "paragraph_large";
|
|
9
|
+
}>;
|
|
10
|
+
text: z.ZodString;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
type: z.ZodLiteral<"label_value">;
|
|
13
|
+
label: z.ZodString;
|
|
14
|
+
text: z.ZodString;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
type: z.ZodEnum<{
|
|
17
|
+
list_item_unordered: "list_item_unordered";
|
|
18
|
+
list_item_ordered: "list_item_ordered";
|
|
19
|
+
}>;
|
|
20
|
+
text: z.ZodString;
|
|
21
|
+
}, z.core.$strip>], "type">;
|
|
22
|
+
export type TextLine = z.infer<typeof TextLineSchema>;
|
|
23
|
+
export declare const MediaReferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24
|
+
imageId: z.ZodDefault<z.ZodString>;
|
|
25
|
+
caption: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
26
|
+
background: z.ZodOptional<z.ZodString>;
|
|
27
|
+
invertFrom: z.ZodOptional<z.ZodString>;
|
|
28
|
+
border: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
objectFit: z.ZodOptional<z.ZodEnum<{
|
|
30
|
+
cover: "cover";
|
|
31
|
+
contain: "contain";
|
|
32
|
+
}>>;
|
|
33
|
+
type: z.ZodLiteral<"image">;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
+
imageId: z.ZodDefault<z.ZodString>;
|
|
36
|
+
caption: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
37
|
+
background: z.ZodOptional<z.ZodString>;
|
|
38
|
+
invertFrom: z.ZodOptional<z.ZodString>;
|
|
39
|
+
border: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
objectFit: z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
cover: "cover";
|
|
42
|
+
contain: "contain";
|
|
43
|
+
}>>;
|
|
44
|
+
type: z.ZodLiteral<"video">;
|
|
45
|
+
poster: z.ZodOptional<z.ZodString>;
|
|
46
|
+
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
muted: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
imageId: z.ZodDefault<z.ZodString>;
|
|
51
|
+
caption: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
52
|
+
background: z.ZodOptional<z.ZodString>;
|
|
53
|
+
invertFrom: z.ZodOptional<z.ZodString>;
|
|
54
|
+
border: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
objectFit: z.ZodOptional<z.ZodEnum<{
|
|
56
|
+
cover: "cover";
|
|
57
|
+
contain: "contain";
|
|
58
|
+
}>>;
|
|
59
|
+
type: z.ZodLiteral<"doDontImage">;
|
|
60
|
+
doDont: z.ZodEnum<{
|
|
61
|
+
do: "do";
|
|
62
|
+
dont: "dont";
|
|
63
|
+
}>;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
+
imageId: z.ZodDefault<z.ZodString>;
|
|
66
|
+
caption: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
67
|
+
background: z.ZodOptional<z.ZodString>;
|
|
68
|
+
invertFrom: z.ZodOptional<z.ZodString>;
|
|
69
|
+
border: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
objectFit: z.ZodOptional<z.ZodEnum<{
|
|
71
|
+
cover: "cover";
|
|
72
|
+
contain: "contain";
|
|
73
|
+
}>>;
|
|
74
|
+
type: z.ZodLiteral<"linkedImage">;
|
|
75
|
+
href: z.ZodString;
|
|
76
|
+
target: z.ZodOptional<z.ZodString>;
|
|
77
|
+
linkText: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>], "type">;
|
|
79
|
+
export type MediaReference = z.infer<typeof MediaReferenceSchema>;
|
|
80
|
+
export declare const HexColorSchema: z.ZodString;
|
|
81
|
+
export declare const ColorSpaceSchema: z.ZodObject<{
|
|
82
|
+
hex: z.ZodOptional<z.ZodString>;
|
|
83
|
+
rgb: z.ZodOptional<z.ZodString>;
|
|
84
|
+
cmyk: z.ZodOptional<z.ZodString>;
|
|
85
|
+
pantone: z.ZodOptional<z.ZodString>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export type ColorSpace = z.infer<typeof ColorSpaceSchema>;
|
|
88
|
+
export declare const ColorItemSchema: z.ZodObject<{
|
|
89
|
+
name: z.ZodOptional<z.ZodString>;
|
|
90
|
+
spaces: z.ZodArray<z.ZodObject<{
|
|
91
|
+
hex: z.ZodOptional<z.ZodString>;
|
|
92
|
+
rgb: z.ZodOptional<z.ZodString>;
|
|
93
|
+
cmyk: z.ZodOptional<z.ZodString>;
|
|
94
|
+
pantone: z.ZodOptional<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
export type ColorItem = z.infer<typeof ColorItemSchema>;
|
|
98
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;2BAKzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAoCtD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAE/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGlE,eAAO,MAAM,cAAc,aAEiC,CAAC;AAE7D,eAAO,MAAM,gBAAgB;;;;;iBAQ5B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,eAAe;;;;;;;;iBAG1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SectionMetaSchema: z.ZodObject<{
|
|
3
|
+
type: z.ZodString;
|
|
4
|
+
status: z.ZodEnum<{
|
|
5
|
+
draft: "draft";
|
|
6
|
+
published: "published";
|
|
7
|
+
archived: "archived";
|
|
8
|
+
}>;
|
|
9
|
+
access: z.ZodArray<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type SectionMeta = z.infer<typeof SectionMetaSchema>;
|
|
12
|
+
export declare const IndexSchema: z.ZodObject<{
|
|
13
|
+
siteId: z.ZodString;
|
|
14
|
+
order: z.ZodArray<z.ZodString>;
|
|
15
|
+
sections: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
16
|
+
type: z.ZodString;
|
|
17
|
+
status: z.ZodEnum<{
|
|
18
|
+
draft: "draft";
|
|
19
|
+
published: "published";
|
|
20
|
+
archived: "archived";
|
|
21
|
+
}>;
|
|
22
|
+
access: z.ZodArray<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type SiteIndex = z.infer<typeof IndexSchema>;
|
|
26
|
+
export declare const SiteConfigSchema: z.ZodObject<{
|
|
27
|
+
siteName: z.ZodDefault<z.ZodString>;
|
|
28
|
+
primaryColor: z.ZodDefault<z.ZodString>;
|
|
29
|
+
primaryContrast: z.ZodDefault<z.ZodString>;
|
|
30
|
+
darkMode: z.ZodDefault<z.ZodEnum<{
|
|
31
|
+
optional: "optional";
|
|
32
|
+
light: "light";
|
|
33
|
+
dark: "dark";
|
|
34
|
+
}>>;
|
|
35
|
+
headingFont: z.ZodDefault<z.ZodString>;
|
|
36
|
+
bodyFont: z.ZodDefault<z.ZodString>;
|
|
37
|
+
googleFontsUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
media: z.ZodDefault<z.ZodObject<{
|
|
39
|
+
adapter: z.ZodDefault<z.ZodEnum<{
|
|
40
|
+
github: "github";
|
|
41
|
+
}>>;
|
|
42
|
+
sizes: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
43
|
+
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
44
|
+
quality: z.ZodDefault<z.ZodNumber>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export type SiteConfig = z.infer<typeof SiteConfigSchema>;
|
|
48
|
+
//# sourceMappingURL=site-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-config.d.ts","sourceRoot":"","sources":["site-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,iBAAiB;;;;;;;;iBAI5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;;;;;;;;;iBAOvB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEpD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;iBAY3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|