@drawnagency/primitives 0.1.31 → 0.1.33
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 +3 -2
- package/dist/auth/security.d.ts +0 -4
- package/dist/auth/security.d.ts.map +1 -1
- package/dist/{chunk-ZDKSJY2K.js → chunk-C2MVDXD7.js} +1 -1
- package/dist/chunk-LZKVV4K2.js +30 -0
- package/dist/{chunk-MNK7XA6S.js → chunk-OUFUUBZ4.js} +1 -29
- package/dist/{chunk-EUNJDXYX.js → chunk-S2L3BPLS.js} +4 -3
- package/dist/chunk-WKZ7OENC.js +8 -0
- package/dist/{chunk-PKMPRW7T.js → chunk-YEOGH3QH.js} +1 -1
- package/dist/components/primitives/RichTextToolbar.d.ts.map +1 -1
- package/dist/components/shell/EditorShell.d.ts.map +1 -1
- package/dist/hooks/useBuildStatus.d.ts +0 -1
- package/dist/hooks/useBuildStatus.d.ts.map +1 -1
- package/dist/hooks/useContentLifecycle.d.ts +0 -1
- package/dist/hooks/useContentLifecycle.d.ts.map +1 -1
- package/dist/hooks/useEditorPersistence.d.ts +2 -3
- package/dist/hooks/useEditorPersistence.d.ts.map +1 -1
- package/dist/hooks/useEditorPublish.d.ts.map +1 -1
- package/dist/index.js +13 -7
- package/dist/lib/dexie.d.ts +2 -2
- package/dist/lib/dexie.d.ts.map +1 -1
- package/dist/lib/env.d.ts +7 -0
- package/dist/lib/env.d.ts.map +1 -0
- package/dist/lib/env.js +6 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +6 -2
- package/dist/schemas/auth.js +12 -0
- package/dist/schemas/index.js +6 -4
- package/package.json +9 -1
- package/src/auth/security.ts +1 -4
- package/src/components/primitives/RichTextToolbar.tsx +18 -0
- package/src/components/primitives/tiptap-presets.ts +1 -1
- package/src/components/shell/EditorShell.tsx +16 -16
- package/src/hooks/useBuildStatus.ts +1 -5
- package/src/hooks/useContentLifecycle.ts +3 -4
- package/src/hooks/useEditorPersistence.ts +3 -19
- package/src/hooks/useEditorPublish.ts +78 -98
- package/src/lib/dexie.ts +3 -3
- package/src/lib/env.ts +13 -0
- package/src/lib/index.ts +1 -0
- package/src/components/brandguide/ColorSwatchSettings.d.ts +0 -8
- package/src/components/brandguide/Colors.d.ts +0 -15
- package/src/components/brandguide/DoDontList.d.ts +0 -16
- package/src/components/brandguide/DoDontMediaGrid.d.ts +0 -16
- package/src/components/primitives/CustomParagraph.d.ts +0 -2
- package/src/components/primitives/EditableGrid.d.ts +0 -19
- package/src/components/primitives/EditablePlainText.d.ts +0 -12
- package/src/components/primitives/EditableRichText.d.ts +0 -12
- package/src/components/primitives/HeadingSection.d.ts +0 -10
- package/src/components/primitives/IconPicker.d.ts +0 -9
- package/src/components/primitives/LinkPopover.d.ts +0 -8
- package/src/components/primitives/MediaSettingsForms.d.ts +0 -19
- package/src/components/primitives/ResolvedMedia.d.ts +0 -8
- package/src/components/primitives/RichTextToolbar.d.ts +0 -9
- package/src/components/primitives/tiptap-presets.d.ts +0 -4
- package/src/components/primitives/useEditableCollection.d.ts +0 -19
- package/src/components/primitives/useEditablePlainText.d.ts +0 -14
- package/src/components/primitives/useEditableRichText.d.ts +0 -17
- package/src/components/sections/Button/CTAButton.d.ts +0 -11
- package/src/components/sections/Button/index.d.ts +0 -11
- package/src/components/sections/Colors/index.d.ts +0 -22
- package/src/components/sections/DoDontList/index.d.ts +0 -21
- package/src/components/sections/DoDontMediaGrid/index.d.ts +0 -55
- package/src/components/sections/IconList/IconList.d.ts +0 -20
- package/src/components/sections/IconList/IconListSettings.d.ts +0 -11
- package/src/components/sections/IconList/index.d.ts +0 -17
- package/src/components/sections/LinkHeading/index.d.ts +0 -8
- package/src/components/sections/MediaGrid/MediaGrid.d.ts +0 -17
- package/src/components/sections/MediaGrid/index.d.ts +0 -55
- package/src/components/sections/Prose/Prose.d.ts +0 -8
- package/src/components/sections/Prose/index.d.ts +0 -8
- package/src/components/sections/SplitContent/SplitContent.d.ts +0 -11
- package/src/components/sections/SplitContent/index.d.ts +0 -13
- package/src/components/sections/SubHeading/index.d.ts +0 -9
- package/src/components/sections/SubSubHeading/index.d.ts +0 -9
- package/src/components/sections/register-schemas.d.ts +0 -2
- package/src/components/shared/Button.d.ts +0 -15
- package/src/components/shared/Checkbox.d.ts +0 -14
- package/src/components/shared/FormLabel.d.ts +0 -8
- package/src/components/shared/IconButton.d.ts +0 -12
- package/src/components/shared/Input.d.ts +0 -8
- package/src/components/shared/Select.d.ts +0 -16
- package/src/components/shared/icons.d.ts +0 -17
- package/src/components/shell/MediaLibraryContext.d.ts +0 -14
- package/src/env.d.ts +0 -3
- package/src/hooks/useResolvedMedia.d.ts +0 -9
- package/src/lib/cn.d.ts +0 -3
- package/src/lib/grid.d.ts +0 -2
- package/src/lib/icons.d.ts +0 -9
- package/src/lib/loader.d.ts +0 -28
- package/src/lib/nav.d.ts +0 -15
- package/src/lib/registry.d.ts +0 -110
- package/src/lib/sanitize.d.ts +0 -2
- package/src/media/github.d.ts +0 -3
- package/src/media/index.d.ts +0 -8
- package/src/media/queue.d.ts +0 -74
- package/src/media/resolve.d.ts +0 -14
- package/src/media/types.d.ts +0 -42
- package/src/media/utils.d.ts +0 -7
- package/src/media/videoPoster.d.ts +0 -6
- package/src/schemas/auth.d.ts +0 -36
- package/src/schemas/media-grid-options.d.ts +0 -8
- package/src/schemas/media.d.ts +0 -63
- package/src/schemas/sections.d.ts +0 -12
- package/src/schemas/shared.d.ts +0 -98
- package/src/schemas/site-config.d.ts +0 -48
package/src/media/queue.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import type { MediaKind } from "./types";
|
|
2
|
-
export interface QueueInput {
|
|
3
|
-
buffer: ArrayBuffer;
|
|
4
|
-
originalName: string;
|
|
5
|
-
mimeType: string;
|
|
6
|
-
hash: string;
|
|
7
|
-
kind: MediaKind;
|
|
8
|
-
}
|
|
9
|
-
export interface QueueItem {
|
|
10
|
-
id: string;
|
|
11
|
-
originalName: string;
|
|
12
|
-
mimeType: string;
|
|
13
|
-
hash: string;
|
|
14
|
-
kind: MediaKind;
|
|
15
|
-
percent: number;
|
|
16
|
-
state: "queued" | "active" | "complete" | "error";
|
|
17
|
-
error?: string;
|
|
18
|
-
result?: {
|
|
19
|
-
variants: {
|
|
20
|
-
width: number;
|
|
21
|
-
height: number;
|
|
22
|
-
size: number;
|
|
23
|
-
blob: Blob;
|
|
24
|
-
}[];
|
|
25
|
-
primaryBlob: Blob;
|
|
26
|
-
posterBlob?: Blob;
|
|
27
|
-
width: number;
|
|
28
|
-
height: number;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export type QueueEvent = {
|
|
32
|
-
type: "queued";
|
|
33
|
-
item: QueueItem;
|
|
34
|
-
} | {
|
|
35
|
-
type: "started";
|
|
36
|
-
item: QueueItem;
|
|
37
|
-
} | {
|
|
38
|
-
type: "progress";
|
|
39
|
-
item: QueueItem;
|
|
40
|
-
} | {
|
|
41
|
-
type: "complete";
|
|
42
|
-
item: QueueItem;
|
|
43
|
-
} | {
|
|
44
|
-
type: "error";
|
|
45
|
-
item: QueueItem;
|
|
46
|
-
};
|
|
47
|
-
interface QueueOptions {
|
|
48
|
-
sizes: number[];
|
|
49
|
-
quality: number;
|
|
50
|
-
maxConcurrent: number;
|
|
51
|
-
createWorker: () => Worker;
|
|
52
|
-
onEvent: (event: QueueEvent) => void;
|
|
53
|
-
}
|
|
54
|
-
export declare class ProcessingQueue {
|
|
55
|
-
private items;
|
|
56
|
-
private pending;
|
|
57
|
-
private activeWorkers;
|
|
58
|
-
private options;
|
|
59
|
-
private nextId;
|
|
60
|
-
constructor(options: QueueOptions);
|
|
61
|
-
add(input: QueueInput): string;
|
|
62
|
-
getStatus(): {
|
|
63
|
-
active: number;
|
|
64
|
-
queued: number;
|
|
65
|
-
total: number;
|
|
66
|
-
items: QueueItem[];
|
|
67
|
-
};
|
|
68
|
-
private processNext;
|
|
69
|
-
private startProcessing;
|
|
70
|
-
private cleanupWorker;
|
|
71
|
-
destroy(): void;
|
|
72
|
-
}
|
|
73
|
-
export {};
|
|
74
|
-
//# sourceMappingURL=queue.d.ts.map
|
package/src/media/resolve.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { MediaManifest, ResolvedMedia } from "./types";
|
|
2
|
-
export declare function resolveMedia(item: {
|
|
3
|
-
imageId?: string;
|
|
4
|
-
src?: string;
|
|
5
|
-
}, manifest: MediaManifest, sizes: number[]): ResolvedMedia | null;
|
|
6
|
-
/**
|
|
7
|
-
* Deep-walk section content and resolve any { imageId } references to
|
|
8
|
-
* { src, srcset } values using the media manifest.
|
|
9
|
-
*
|
|
10
|
-
* This lets view-mode section components use `item.src` and `item.srcset`
|
|
11
|
-
* without needing to know about the manifest themselves.
|
|
12
|
-
*/
|
|
13
|
-
export declare function resolveManifestReferences(content: unknown, manifest: MediaManifest, sizes: number[]): unknown;
|
|
14
|
-
//# sourceMappingURL=resolve.d.ts.map
|
package/src/media/types.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export { VariantSchema, MediaItemSchema, ImageManifestSchema, MediaConfigSchema, type Variant, type MediaItem, type MediaManifest, type MediaConfig, } from "../schemas/media";
|
|
2
|
-
import type { MediaItem } from "../schemas/media";
|
|
3
|
-
export type MediaKind = "image" | "animated" | "video";
|
|
4
|
-
export interface MediaFile {
|
|
5
|
-
buffer: ArrayBuffer;
|
|
6
|
-
originalName: string;
|
|
7
|
-
mimeType: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ResolvedImage {
|
|
10
|
-
tag: "img";
|
|
11
|
-
src: string;
|
|
12
|
-
srcSet?: string;
|
|
13
|
-
sizes?: string;
|
|
14
|
-
width: number;
|
|
15
|
-
height: number;
|
|
16
|
-
}
|
|
17
|
-
export interface ResolvedAnimated {
|
|
18
|
-
tag: "img";
|
|
19
|
-
src: string;
|
|
20
|
-
width: number;
|
|
21
|
-
height: number;
|
|
22
|
-
}
|
|
23
|
-
export interface ResolvedVideo {
|
|
24
|
-
tag: "video";
|
|
25
|
-
src: string;
|
|
26
|
-
poster?: string;
|
|
27
|
-
width: number;
|
|
28
|
-
height: number;
|
|
29
|
-
autoplay: boolean;
|
|
30
|
-
loop: boolean;
|
|
31
|
-
muted: boolean;
|
|
32
|
-
}
|
|
33
|
-
export type ResolvedMedia = ResolvedImage | ResolvedAnimated | ResolvedVideo;
|
|
34
|
-
export interface MediaAdapter {
|
|
35
|
-
hash(file: MediaFile): Promise<string>;
|
|
36
|
-
exists(hash: string): Promise<boolean>;
|
|
37
|
-
process(file: MediaFile, hash: string, sizes: number[]): Promise<MediaItem>;
|
|
38
|
-
delete(id: string): Promise<void>;
|
|
39
|
-
resolve(id: string, sizes: number[]): ResolvedMedia | null;
|
|
40
|
-
list(): Promise<MediaItem[]>;
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=types.d.ts.map
|
package/src/media/utils.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function hashFileBuffer(buffer: ArrayBuffer): Promise<string>;
|
|
2
|
-
export declare function sanitizeMediaName(name: string): string;
|
|
3
|
-
export declare const MIME_TO_EXT: Record<string, string>;
|
|
4
|
-
export declare const EXT_TO_MIME: Record<string, string>;
|
|
5
|
-
export declare function mimeToExt(mime: string): string;
|
|
6
|
-
export declare function displayFilenameExt(mime: string): string;
|
|
7
|
-
//# sourceMappingURL=utils.d.ts.map
|
package/src/schemas/auth.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const RoleSchema: z.ZodEnum<{
|
|
3
|
-
owner: "owner";
|
|
4
|
-
editor: "editor";
|
|
5
|
-
}>;
|
|
6
|
-
export declare const SessionSchema: z.ZodObject<{
|
|
7
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
8
|
-
email: z.ZodNullable<z.ZodString>;
|
|
9
|
-
role: z.ZodEnum<{
|
|
10
|
-
owner: "owner";
|
|
11
|
-
editor: "editor";
|
|
12
|
-
}>;
|
|
13
|
-
siteId: z.ZodString;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export declare const SiteUserSchema: z.ZodObject<{
|
|
16
|
-
id: z.ZodString;
|
|
17
|
-
email: z.ZodString;
|
|
18
|
-
role: z.ZodEnum<{
|
|
19
|
-
owner: "owner";
|
|
20
|
-
editor: "editor";
|
|
21
|
-
}>;
|
|
22
|
-
createdAt: z.ZodString;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
export declare const AudienceSchema: z.ZodObject<{
|
|
25
|
-
name: z.ZodString;
|
|
26
|
-
displayName: z.ZodString;
|
|
27
|
-
color: z.ZodNullable<z.ZodString>;
|
|
28
|
-
readonly: z.ZodBoolean;
|
|
29
|
-
hasPassword: z.ZodBoolean;
|
|
30
|
-
isDefault: z.ZodBoolean;
|
|
31
|
-
}, z.core.$strip>;
|
|
32
|
-
export type Session = z.infer<typeof SessionSchema>;
|
|
33
|
-
export type SiteUser = z.infer<typeof SiteUserSchema>;
|
|
34
|
-
export type Audience = z.infer<typeof AudienceSchema>;
|
|
35
|
-
export type Role = z.infer<typeof RoleSchema>;
|
|
36
|
-
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const MediaGridOptionsSchema: z.ZodDefault<z.ZodObject<{
|
|
3
|
-
square: z.ZodOptional<z.ZodBoolean>;
|
|
4
|
-
border: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
-
crop: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
-
showCaptions: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
}, z.core.$strip>>;
|
|
8
|
-
//# sourceMappingURL=media-grid-options.d.ts.map
|
package/src/schemas/media.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
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
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
package/src/schemas/shared.d.ts
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
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
|
|
@@ -1,48 +0,0 @@
|
|
|
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
|