types
Esta página aún no está disponible en tu idioma.
Type Aliases
Section titled “Type Aliases”HTMLSchemaOptions
Section titled “HTMLSchemaOptions”type HTMLSchemaOptions = z.infer<typeof HTMLSchema>;
Defined in: studiocms/packages/@studiocms/html/src/types.ts:19^
Variables
Section titled “Variables”HTMLSchema
Section titled “HTMLSchema”const HTMLSchema: ZodDefault<ZodOptional<ZodObject<{ sanitize: ZodOptional<ZodObject<{ allowAttributes: ZodOptional<ZodRecord<ZodString, ZodArray<ZodString, "many">>>; allowComments: ZodOptional<ZodBoolean>; allowComponents: ZodOptional<ZodBoolean>; allowCustomElements: ZodOptional<ZodBoolean>; allowElements: ZodOptional<ZodArray<ZodString, "many">>; blockElements: ZodOptional<ZodArray<ZodString, "many">>; dropAttributes: ZodOptional<ZodRecord<ZodString, ZodArray<ZodString, "many">>>; dropElements: ZodOptional<ZodArray<ZodString, "many">>; }, "strip", ZodTypeAny, { allowAttributes: Record<string, string[]>; allowComments: boolean; allowComponents: boolean; allowCustomElements: boolean; allowElements: string[]; blockElements: string[]; dropAttributes: Record<string, string[]>; dropElements: string[]; }, { allowAttributes: Record<string, string[]>; allowComments: boolean; allowComponents: boolean; allowCustomElements: boolean; allowElements: string[]; blockElements: string[]; dropAttributes: Record<string, string[]>; dropElements: string[]; }>>; }, "strip", ZodTypeAny, { sanitize: { allowAttributes: Record<string, string[]>; allowComments: boolean; allowComponents: boolean; allowCustomElements: boolean; allowElements: string[]; blockElements: string[]; dropAttributes: Record<string, string[]>; dropElements: string[]; }; }, { sanitize: { allowAttributes: Record<string, string[]>; allowComments: boolean; allowComponents: boolean; allowCustomElements: boolean; allowElements: string[]; blockElements: string[]; dropAttributes: Record<string, string[]>; dropElements: string[]; };}>>>;
Defined in: studiocms/packages/@studiocms/html/src/types.ts:11^
Defines the schema for HTML configuration options.
The schema includes an optional sanitize
property, which is validated
using the StudioCMSSanitizeOptionsSchema
. If no value is provided,
the default is an empty object.