commons:components - we're are family :)
This commit is contained in:
parent
62da746e6b
commit
f3d4f0c7bd
324
packages/commons/dist/component.d.ts
vendored
324
packages/commons/dist/component.d.ts
vendored
@ -31,10 +31,10 @@ export declare const ImageMetaSchema: z.ZodObject<{
|
||||
orientation: z.ZodNumber;
|
||||
exif: z.ZodAny;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
height?: number;
|
||||
width?: number;
|
||||
exif?: any;
|
||||
format?: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
space?: string;
|
||||
channels?: number;
|
||||
depth?: string;
|
||||
@ -46,10 +46,10 @@ export declare const ImageMetaSchema: z.ZodObject<{
|
||||
hasAlpha?: boolean;
|
||||
orientation?: number;
|
||||
}, {
|
||||
height?: number;
|
||||
width?: number;
|
||||
exif?: any;
|
||||
format?: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
space?: string;
|
||||
channels?: number;
|
||||
depth?: string;
|
||||
@ -68,14 +68,14 @@ export declare const CADMetaSchema: z.ZodObject<{
|
||||
model: z.ZodOptional<z.ZodString>;
|
||||
html: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
name?: string;
|
||||
file?: string;
|
||||
name?: string;
|
||||
step?: string;
|
||||
model?: string;
|
||||
html?: string;
|
||||
}, {
|
||||
name?: string;
|
||||
file?: string;
|
||||
name?: string;
|
||||
step?: string;
|
||||
model?: string;
|
||||
html?: string;
|
||||
@ -93,6 +93,8 @@ export declare const AssetImageSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -102,9 +104,9 @@ export declare const AssetImageSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -114,8 +116,6 @@ export declare const AssetImageSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>;
|
||||
export declare const AuthorSchema: z.ZodObject<{
|
||||
name: z.ZodString;
|
||||
@ -146,6 +146,25 @@ export declare const ContentSchema: z.ZodObject<{
|
||||
specs?: string;
|
||||
license?: string;
|
||||
}>;
|
||||
export declare const VersionSchema: z.ZodObject<{
|
||||
version: z.ZodOptional<z.ZodString>;
|
||||
up: z.ZodOptional<z.ZodString>;
|
||||
down: z.ZodOptional<z.ZodString>;
|
||||
family: z.ZodOptional<z.ZodString>;
|
||||
sheet: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
version?: string;
|
||||
up?: string;
|
||||
down?: string;
|
||||
family?: string;
|
||||
sheet?: string;
|
||||
}, {
|
||||
version?: string;
|
||||
up?: string;
|
||||
down?: string;
|
||||
family?: string;
|
||||
sheet?: string;
|
||||
}>;
|
||||
export declare const AssetsSchema: z.ZodObject<{
|
||||
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -160,6 +179,8 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -169,9 +190,9 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -181,8 +202,6 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>, "many">>;
|
||||
renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -197,6 +216,8 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -206,9 +227,9 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -218,8 +239,6 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>, "many">>;
|
||||
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -234,6 +253,8 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -243,9 +264,9 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -255,11 +276,11 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>, "many">>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
gallery?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -269,10 +290,10 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -282,10 +303,10 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
components?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -295,11 +316,11 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
}, {
|
||||
gallery?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -309,10 +330,10 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -322,10 +343,10 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
components?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -335,8 +356,6 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
}>;
|
||||
export declare const ProductionSchema: z.ZodObject<{
|
||||
@ -389,6 +408,25 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
replaced_by: z.ZodOptional<z.ZodString>;
|
||||
alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
||||
flags: z.ZodOptional<z.ZodNumber>;
|
||||
versions: z.ZodOptional<z.ZodObject<{
|
||||
version: z.ZodOptional<z.ZodString>;
|
||||
up: z.ZodOptional<z.ZodString>;
|
||||
down: z.ZodOptional<z.ZodString>;
|
||||
family: z.ZodOptional<z.ZodString>;
|
||||
sheet: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
version?: string;
|
||||
up?: string;
|
||||
down?: string;
|
||||
family?: string;
|
||||
sheet?: string;
|
||||
}, {
|
||||
version?: string;
|
||||
up?: string;
|
||||
down?: string;
|
||||
family?: string;
|
||||
sheet?: string;
|
||||
}>>;
|
||||
image: z.ZodOptional<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
url: z.ZodString;
|
||||
@ -402,6 +440,8 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -411,9 +451,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -423,8 +463,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>>;
|
||||
name: z.ZodString;
|
||||
download: z.ZodOptional<z.ZodBoolean>;
|
||||
@ -449,6 +487,8 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -458,9 +498,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -470,8 +510,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>, "many">>;
|
||||
renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -486,6 +524,8 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -495,9 +535,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -507,8 +547,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>, "many">>;
|
||||
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -523,6 +561,8 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -532,9 +572,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -544,11 +584,11 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>, "many">>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
gallery?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -558,10 +598,10 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -571,10 +611,10 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
components?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -584,11 +624,11 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
}, {
|
||||
gallery?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -598,10 +638,10 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -611,10 +651,10 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
components?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -624,8 +664,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
}>>;
|
||||
cad: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
||||
@ -635,14 +673,14 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
model: z.ZodOptional<z.ZodString>;
|
||||
html: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
name?: string;
|
||||
file?: string;
|
||||
name?: string;
|
||||
step?: string;
|
||||
model?: string;
|
||||
html?: string;
|
||||
}, {
|
||||
name?: string;
|
||||
file?: string;
|
||||
name?: string;
|
||||
step?: string;
|
||||
model?: string;
|
||||
html?: string;
|
||||
@ -706,6 +744,25 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
replaced_by: z.ZodOptional<z.ZodString>;
|
||||
alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
||||
flags: z.ZodOptional<z.ZodNumber>;
|
||||
versions: z.ZodOptional<z.ZodObject<{
|
||||
version: z.ZodOptional<z.ZodString>;
|
||||
up: z.ZodOptional<z.ZodString>;
|
||||
down: z.ZodOptional<z.ZodString>;
|
||||
family: z.ZodOptional<z.ZodString>;
|
||||
sheet: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
version?: string;
|
||||
up?: string;
|
||||
down?: string;
|
||||
family?: string;
|
||||
sheet?: string;
|
||||
}, {
|
||||
version?: string;
|
||||
up?: string;
|
||||
down?: string;
|
||||
family?: string;
|
||||
sheet?: string;
|
||||
}>>;
|
||||
image: z.ZodOptional<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
url: z.ZodString;
|
||||
@ -719,6 +776,8 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -728,9 +787,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -740,8 +799,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>>;
|
||||
name: z.ZodString;
|
||||
download: z.ZodOptional<z.ZodBoolean>;
|
||||
@ -766,6 +823,8 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -775,9 +834,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -787,8 +846,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>, "many">>;
|
||||
renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -803,6 +860,8 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -812,9 +871,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -824,8 +883,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>, "many">>;
|
||||
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -840,6 +897,8 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -849,9 +908,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -861,11 +920,11 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>, "many">>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
gallery?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -875,10 +934,10 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -888,10 +947,10 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
components?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -901,11 +960,11 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
}, {
|
||||
gallery?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -915,10 +974,10 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -928,10 +987,10 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
components?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -941,8 +1000,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
}>>;
|
||||
cad: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
||||
@ -952,14 +1009,14 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
model: z.ZodOptional<z.ZodString>;
|
||||
html: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
name?: string;
|
||||
file?: string;
|
||||
name?: string;
|
||||
step?: string;
|
||||
model?: string;
|
||||
html?: string;
|
||||
}, {
|
||||
name?: string;
|
||||
file?: string;
|
||||
name?: string;
|
||||
step?: string;
|
||||
model?: string;
|
||||
html?: string;
|
||||
@ -1023,6 +1080,25 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
replaced_by: z.ZodOptional<z.ZodString>;
|
||||
alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
||||
flags: z.ZodOptional<z.ZodNumber>;
|
||||
versions: z.ZodOptional<z.ZodObject<{
|
||||
version: z.ZodOptional<z.ZodString>;
|
||||
up: z.ZodOptional<z.ZodString>;
|
||||
down: z.ZodOptional<z.ZodString>;
|
||||
family: z.ZodOptional<z.ZodString>;
|
||||
sheet: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
version?: string;
|
||||
up?: string;
|
||||
down?: string;
|
||||
family?: string;
|
||||
sheet?: string;
|
||||
}, {
|
||||
version?: string;
|
||||
up?: string;
|
||||
down?: string;
|
||||
family?: string;
|
||||
sheet?: string;
|
||||
}>>;
|
||||
image: z.ZodOptional<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
url: z.ZodString;
|
||||
@ -1036,6 +1112,8 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -1045,9 +1123,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -1057,8 +1135,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>>;
|
||||
name: z.ZodString;
|
||||
download: z.ZodOptional<z.ZodBoolean>;
|
||||
@ -1083,6 +1159,8 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -1092,9 +1170,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -1104,8 +1182,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>, "many">>;
|
||||
renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -1120,6 +1196,8 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -1129,9 +1207,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -1141,8 +1219,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>, "many">>;
|
||||
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -1157,6 +1233,8 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
height: z.ZodOptional<z.ZodNumber>;
|
||||
width: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -1166,9 +1244,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}, {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -1178,11 +1256,11 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}>, "many">>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
gallery?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -1192,10 +1270,10 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -1205,10 +1283,10 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
components?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -1218,11 +1296,11 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
}, {
|
||||
gallery?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -1232,10 +1310,10 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -1245,10 +1323,10 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
components?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
name?: string;
|
||||
url?: string;
|
||||
thumb?: string;
|
||||
@ -1258,8 +1336,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
height?: number;
|
||||
width?: number;
|
||||
}[];
|
||||
}>>;
|
||||
cad: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
||||
@ -1269,14 +1345,14 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
model: z.ZodOptional<z.ZodString>;
|
||||
html: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
name?: string;
|
||||
file?: string;
|
||||
name?: string;
|
||||
step?: string;
|
||||
model?: string;
|
||||
html?: string;
|
||||
}, {
|
||||
name?: string;
|
||||
file?: string;
|
||||
name?: string;
|
||||
step?: string;
|
||||
model?: string;
|
||||
html?: string;
|
||||
|
||||
10
packages/commons/dist/component.js
vendored
10
packages/commons/dist/component.js
vendored
File diff suppressed because one or more lines are too long
10
packages/commons/dist/shemas/path.js
vendored
10
packages/commons/dist/shemas/path.js
vendored
File diff suppressed because one or more lines are too long
@ -61,6 +61,14 @@ export const ContentSchema = z.object({
|
||||
license: z.string().optional()
|
||||
});
|
||||
|
||||
export const VersionSchema = z.object({
|
||||
version: z.string().optional(),
|
||||
up: z.string().optional(),
|
||||
down: z.string().optional(),
|
||||
family: z.string().optional(),
|
||||
sheet: z.string().optional()
|
||||
});
|
||||
|
||||
export const AssetsSchema = z.object({
|
||||
gallery: z.array(AssetImageSchema).optional(),
|
||||
renderings: z.array(AssetImageSchema).optional(),
|
||||
@ -90,7 +98,8 @@ export const ComponentConfigSchema = z.object({
|
||||
replaced_by: z.string().optional(),
|
||||
alternatives: z.array(z.string()).optional(),
|
||||
flags: z.number().optional(),
|
||||
|
||||
versions: VersionSchema.optional(),
|
||||
|
||||
image: AssetImageSchema.optional(),
|
||||
name: z.string(),
|
||||
|
||||
|
||||
@ -178,14 +178,14 @@ export const ENSURE_DIRECTORY_WRITABLE = (inputPath: string, ctx: any, variables
|
||||
} catch (e) {
|
||||
ctx.addIssue({
|
||||
code: E_PATH.ENSURE_DIRECTORY_WRITABLE,
|
||||
message: template(PathErrorMessages.DIRECTORY_NOT_WRITABLE, false, { inputPath, resolvedPath })
|
||||
message: template(PathErrorMessages.DIRECTORY_NOT_WRITABLE, { inputPath, resolvedPath })
|
||||
})
|
||||
return z.NEVER
|
||||
}
|
||||
} else {
|
||||
ctx.addIssue({
|
||||
code: E_PATH.ENSURE_DIRECTORY_WRITABLE,
|
||||
message: template(PathErrorMessages.NOT_A_DIRECTORY, false, { inputPath, resolvedPath })
|
||||
message: template(PathErrorMessages.NOT_A_DIRECTORY, { inputPath, resolvedPath })
|
||||
})
|
||||
return z.NEVER
|
||||
}
|
||||
@ -201,7 +201,7 @@ export const ENSURE_PATH_EXISTS = (inputPath: string, ctx: any, variables: Recor
|
||||
if (!isString(inputPath)) {
|
||||
ctx.addIssue({
|
||||
code: E_PATH.INVALID_INPUT,
|
||||
message: template(PathErrorMessages.INVALID_INPUT, false, {})
|
||||
message: template(PathErrorMessages.INVALID_INPUT, {})
|
||||
})
|
||||
return z.NEVER
|
||||
}
|
||||
@ -209,7 +209,7 @@ export const ENSURE_PATH_EXISTS = (inputPath: string, ctx: any, variables: Recor
|
||||
if (!exists(resolvedPath)) {
|
||||
ctx.addIssue({
|
||||
code: E_PATH.ENSURE_PATH_EXISTS,
|
||||
message: template(PathErrorMessages.PATH_DOES_NOT_EXIST, false, { inputPath, resolvedPath })
|
||||
message: template(PathErrorMessages.PATH_DOES_NOT_EXIST, { inputPath, resolvedPath })
|
||||
})
|
||||
|
||||
return z.NEVER
|
||||
|
||||
Loading…
Reference in New Issue
Block a user