cms.nicwands.com/types/generated/components.d.ts
2026-06-29 14:10:17 -04:00

100 lines
2.5 KiB
TypeScript

import type { Schema, Struct } from '@strapi/strapi';
export interface GlobalCopy extends Struct.ComponentSchema {
collectionName: 'components_global_copies';
info: {
displayName: 'Copy';
icon: 'bold';
};
attributes: {
content: Schema.Attribute.Blocks;
};
}
export interface GlobalDescriptiveList extends Struct.ComponentSchema {
collectionName: 'components_global_descriptive_lists';
info: {
displayName: 'Descriptive List';
icon: 'bulletList';
};
attributes: {
content: Schema.Attribute.Blocks;
label: Schema.Attribute.String;
};
}
export interface GlobalDipytch extends Struct.ComponentSchema {
collectionName: 'components_global_dipytches';
info: {
displayName: 'Dipytch';
icon: 'landscape';
};
attributes: {
left_media: Schema.Attribute.Component<'global.media', false>;
right_media: Schema.Attribute.Component<'global.media', false>;
};
}
export interface GlobalEmbeddedVideo extends Struct.ComponentSchema {
collectionName: 'components_global_embedded_videos';
info: {
displayName: 'Embedded Video';
icon: 'cast';
};
attributes: {
video: Schema.Attribute.JSON &
Schema.Attribute.CustomField<'plugin::oembed.oembed'>;
};
}
export interface GlobalLink extends Struct.ComponentSchema {
collectionName: 'components_global_links';
info: {
displayName: 'Link';
icon: 'exit';
};
attributes: {
text: Schema.Attribute.String;
url: Schema.Attribute.String;
};
}
export interface GlobalMedia extends Struct.ComponentSchema {
collectionName: 'components_global_media';
info: {
displayName: 'Media';
icon: 'landscape';
};
attributes: {
image: Schema.Attribute.Media<'images'> & Schema.Attribute.Required;
looping: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo<true>;
video: Schema.Attribute.Media<'videos'>;
};
}
export interface GlobalSeo extends Struct.ComponentSchema {
collectionName: 'components_global_seos';
info: {
displayName: 'SEO';
icon: 'filter';
};
attributes: {
description: Schema.Attribute.Text;
image: Schema.Attribute.Media<'images'>;
title: Schema.Attribute.String;
};
}
declare module '@strapi/strapi' {
export module Public {
export interface ComponentSchemas {
'global.copy': GlobalCopy;
'global.descriptive-list': GlobalDescriptiveList;
'global.dipytch': GlobalDipytch;
'global.embedded-video': GlobalEmbeddedVideo;
'global.link': GlobalLink;
'global.media': GlobalMedia;
'global.seo': GlobalSeo;
}
}
}