From f3332db980fea68dffcdf05d1faf78963fd5c677 Mon Sep 17 00:00:00 2001 From: Petter Andersson Date: Mon, 11 Mar 2024 16:13:45 +0100 Subject: [PATCH] add more options for content --- src/content/content.gql.schema.ts | 2 ++ src/content/content.spec.ts | 1 + src/content/mappers.ts | 1 + src/content/types.ts | 1 + 4 files changed, 5 insertions(+) diff --git a/src/content/content.gql.schema.ts b/src/content/content.gql.schema.ts index a287c8a..25d6b26 100644 --- a/src/content/content.gql.schema.ts +++ b/src/content/content.gql.schema.ts @@ -23,6 +23,7 @@ export const contentGqlSchema = /* GraphQL */ ` size: String body: String border: String + background: String image: String position: String width: String @@ -48,6 +49,7 @@ export const contentGqlSchema = /* GraphQL */ ` size: String body: String border: String + background: String image: String position: String width: String diff --git a/src/content/content.spec.ts b/src/content/content.spec.ts index 15ce294..8cf29a9 100644 --- a/src/content/content.spec.ts +++ b/src/content/content.spec.ts @@ -31,6 +31,7 @@ it('should normalize invalid composition', () => { size: 'h6', body: '', border: 'true', + background: '', image: '', width: '100%', position: 'top', diff --git a/src/content/mappers.ts b/src/content/mappers.ts index 42c1e8c..7407483 100644 --- a/src/content/mappers.ts +++ b/src/content/mappers.ts @@ -5,6 +5,7 @@ export const createEmptyModule = (): ContentModule => ({ size: 'h6', body: '', border: 'true', + background: '', image: '', position: 'top', width: '100%', diff --git a/src/content/types.ts b/src/content/types.ts index c55d1cd..db4718d 100644 --- a/src/content/types.ts +++ b/src/content/types.ts @@ -16,6 +16,7 @@ export type ContentModule = { size: string body: string border: 'true' | 'false' + background: string image: string position: 'top' | 'bottom' | 'left' | 'right' width: string