diff --git a/models/Badge.yaml b/models/Badge.yaml index 605b310b..7dd1bb0e 100644 --- a/models/Badge.yaml +++ b/models/Badge.yaml @@ -1,13 +1,17 @@ type: object name: Badge label: Badge +fieldGroups: + - name: settings + label: Settings fields: + - type: string + name: label + label: Label + description: The text in the badge - type: string name: elementId + group: settings label: Element ID description: The unique ID for an HTML element, must not contain whitespace default: '' - - type: string - name: label - label: Label - description: The text in the badge diff --git a/models/Button.yaml b/models/Button.yaml index 87d46545..1c68f699 100644 --- a/models/Button.yaml +++ b/models/Button.yaml @@ -1,12 +1,12 @@ type: object name: Button label: Button +fieldGroups: + - name: styles + label: Styles + - name: settings + label: Settings fields: - - type: string - name: elementId - label: Element ID - description: The unique ID for an HTML element, must not contain whitespace - default: '' - type: string name: label label: Label @@ -22,10 +22,12 @@ fields: default: '/' - type: boolean name: showIcon + group: styles label: Show icon default: false - type: enum name: icon + group: styles label: Icon options: - arrowLeft @@ -39,6 +41,7 @@ fields: default: arrowLeft - type: enum name: iconPosition + group: styles label: Icon position options: - left @@ -46,6 +49,7 @@ fields: default: right - type: enum name: style + group: styles label: Style options: - label: Link @@ -55,3 +59,9 @@ fields: - label: Secondary value: secondary default: secondary + - type: string + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/models/CheckboxFormControl.yaml b/models/CheckboxFormControl.yaml index abc7f319..d0a93362 100644 --- a/models/CheckboxFormControl.yaml +++ b/models/CheckboxFormControl.yaml @@ -1,6 +1,9 @@ type: object name: CheckboxFormControl label: Checkbox +fieldGroups: + - name: styles + label: Styles fields: - type: string name: name @@ -16,6 +19,7 @@ fields: default: false - type: enum name: width + group: styles label: Width options: - label: Full diff --git a/models/Config.yaml b/models/Config.yaml index d1de6e64..84d63e90 100644 --- a/models/Config.yaml +++ b/models/Config.yaml @@ -2,23 +2,6 @@ type: data name: Config label: Site configuration fields: - - type: enum - name: backgroundColor - label: Background color - options: - - label: White - value: bg-white - - label: Base - value: bg-base - - label: Primary - value: bg-primary - - label: Secondary - value: bg-secondary - - label: Complementary 1 - value: bg-complementary-1 - - label: Complementary 2 - value: bg-complementary-2 - default: bg-white - type: model name: navBar label: Navbar configuration diff --git a/models/ContactBlock.yaml b/models/ContactBlock.yaml index 538433cf..48618167 100644 --- a/models/ContactBlock.yaml +++ b/models/ContactBlock.yaml @@ -1,6 +1,9 @@ type: object name: ContactBlock label: Contact +fieldGroups: + - name: settings + label: Settings fields: - type: string name: phoneNumber @@ -21,4 +24,8 @@ fields: name: addressAltText label: Address alt text - type: string - name: elementId \ No newline at end of file + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/models/ContactSection.yaml b/models/ContactSection.yaml index d0a25a7c..14ddb3ad 100644 --- a/models/ContactSection.yaml +++ b/models/ContactSection.yaml @@ -6,10 +6,10 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - name: colors default: colors-h @@ -32,6 +32,7 @@ fields: - type: enum name: variant label: Arrangement + group: styles options: - label: Contact form with feature on the left value: variant-a @@ -40,6 +41,7 @@ fields: default: variant-b - type: model name: badge + group: styles label: Badge models: - Badge @@ -56,7 +58,7 @@ fields: - FormBlock default: type: FormBlock - idAttr: contact-form + elementId: contact-form action: /.netlify/functions/submission_created destination: '' fields: diff --git a/models/CtaSection.yaml b/models/CtaSection.yaml index 06922445..68a3832c 100644 --- a/models/CtaSection.yaml +++ b/models/CtaSection.yaml @@ -6,10 +6,10 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - type: enum name: variant @@ -22,6 +22,7 @@ fields: default: variant-b - type: model name: badge + group: styles label: Badge models: - Badge diff --git a/models/EmailFormControl.yaml b/models/EmailFormControl.yaml index 8b70ecee..8487601a 100644 --- a/models/EmailFormControl.yaml +++ b/models/EmailFormControl.yaml @@ -1,6 +1,9 @@ type: object name: EmailFormControl label: Email +fieldGroups: + - name: styles + label: Styles fields: - type: string name: name @@ -19,6 +22,7 @@ fields: default: false - type: enum name: width + group: styles label: Width options: - label: Full diff --git a/models/FeaturedPeopleSection.yaml b/models/FeaturedPeopleSection.yaml index d03e361f..935cdec7 100644 --- a/models/FeaturedPeopleSection.yaml +++ b/models/FeaturedPeopleSection.yaml @@ -6,13 +6,14 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - type: enum name: variant + group: styles label: Arrangement options: - label: Four columns, person info with image at the top @@ -24,6 +25,7 @@ fields: default: variant-a - type: model name: badge + group: styles label: Badge models: - Badge diff --git a/models/FeaturedPostsSection.yaml b/models/FeaturedPostsSection.yaml index 2191a751..90e0520b 100644 --- a/models/FeaturedPostsSection.yaml +++ b/models/FeaturedPostsSection.yaml @@ -6,13 +6,14 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - type: enum name: variant + group: styles label: Arrangement options: - label: Three columns, post thumbnail at the top @@ -22,6 +23,7 @@ fields: default: variant-b - type: model name: badge + group: styles label: Badge models: - Badge diff --git a/models/Footer.yaml b/models/Footer.yaml index 5f740486..2301ddfc 100644 --- a/models/Footer.yaml +++ b/models/Footer.yaml @@ -1,9 +1,15 @@ type: object name: Footer label: Footer +fieldGroups: + - name: styles + label: Styles + - name: settings + label: Settings fields: - type: enum name: colors + group: styles label: Colors options: - label: Base foreground on white background @@ -27,21 +33,19 @@ fields: default: colors-a - type: enum name: width + group: styles label: Width options: - wide - full default: wide - - type: string - name: title - label: Title - - type: boolean - name: isTitleVisible - label: Display title - type: model name: logo label: Logo models: [ImageBlock] + - type: string + name: title + label: Title - type: markdown name: text label: Text diff --git a/models/FormBlock.yaml b/models/FormBlock.yaml index d8d3d7d5..5db57bfb 100644 --- a/models/FormBlock.yaml +++ b/models/FormBlock.yaml @@ -1,16 +1,10 @@ type: object name: FormBlock label: Form +fieldGroups: + - name: settings + label: Settings fields: - - type: string - name: idAttr - label: ID (used for id and name attributes) - - type: string - name: action - label: Action (form submission URL) - - type: string - name: destination - label: Destination (email to redirect responses) - type: list name: fields label: Fields @@ -25,3 +19,16 @@ fields: - type: string name: submitLabel label: Submit button label + - type: string + name: elementId + group: settings + label: Element ID + description: The unique ID used for id and name attributes, must not contain whitespace + - type: string + name: action + group: settings + label: Action (form submission URL) + - type: string + name: destination + group: settings + label: Destination (email to redirect responses) diff --git a/models/HeroSection.yaml b/models/HeroSection.yaml index a0cb5fa2..f0a5b794 100644 --- a/models/HeroSection.yaml +++ b/models/HeroSection.yaml @@ -6,10 +6,10 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - name: colors default: colors-f @@ -29,21 +29,9 @@ fields: default: none - name: textAlign default: left - - type: enum - name: variant - label: Arrangement - options: - - label: Hero with feature on the right - value: variant-a - - label: Hero with feature on the left - value: variant-b - - label: Hero with feature at the top - value: variant-c - - label: Hero with feature at the bottom - value: variant-d - default: variant-a - type: model name: badge + group: styles label: Badge models: - Badge @@ -92,6 +80,15 @@ fields: type: ImageBlock url: /images/hero.png altText: Hero section image + - type: enum + name: featurePosition + label: Feature position + options: + - right + - left + - top + - bottom + default: right - type: model name: backgroundImage group: styles diff --git a/models/ImageBlock.yaml b/models/ImageBlock.yaml index d0811db4..25cb8cba 100644 --- a/models/ImageBlock.yaml +++ b/models/ImageBlock.yaml @@ -1,12 +1,12 @@ type: object name: ImageBlock label: Image +fieldGroups: + - name: styles + label: Styles + - name: settings + label: Settings fields: - - type: string - name: elementId - label: Element ID - description: The unique ID for an HTML element, must not contain whitespace - default: '' - type: image name: url label: Image @@ -21,6 +21,7 @@ fields: description: The caption of the image - type: number name: opacity + group: styles label: Opacity description: The opacity of the image controlType: 'slider' @@ -29,3 +30,9 @@ fields: step: 1 unit: '%' default: 100 + - type: string + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/models/Link.yaml b/models/Link.yaml index 91dcbe8f..28c13b34 100644 --- a/models/Link.yaml +++ b/models/Link.yaml @@ -1,12 +1,12 @@ type: object name: Link label: Link +fieldGroups: + - name: styles + label: Styles + - name: settings + label: Settings fields: - - type: string - name: elementId - label: Element ID - description: The unique ID for an HTML element, must not contain whitespace - default: '' - type: string name: label label: Label @@ -22,10 +22,12 @@ fields: default: '/' - type: boolean name: showIcon + group: styles label: Show icon default: false - type: enum name: icon + group: styles label: Icon options: - arrowLeft @@ -39,6 +41,7 @@ fields: default: arrowLeft - type: enum name: iconPosition + group: styles label: Icon position options: - left @@ -46,6 +49,7 @@ fields: default: right - type: enum name: style + group: styles label: Style options: - label: Link @@ -55,3 +59,9 @@ fields: - label: Secondary value: secondary default: link + - type: string + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/models/NavBar.yaml b/models/NavBar.yaml index 17925662..e632e58b 100644 --- a/models/NavBar.yaml +++ b/models/NavBar.yaml @@ -1,9 +1,15 @@ type: object name: NavBar label: Navbar +fieldGroups: + - name: styles + label: Styles + - name: settings + label: Settings fields: - type: enum name: desktopNavVariant + group: styles label: Desktop navigation arrangement options: - label: Navbar with logo and primary links on the left @@ -17,6 +23,7 @@ fields: default: variant-a - type: enum name: mobileNavVariant + group: styles label: Mobile navigation arrangement options: - label: Full-width mobile navigation @@ -26,6 +33,7 @@ fields: default: variant-a - type: enum name: primaryColors + group: styles label: Primary colors (navbar) options: - label: Base foreground on white background @@ -49,6 +57,7 @@ fields: default: colors-a - type: enum name: secondaryColors + group: styles label: Secondary colors (mobile navigation) options: - label: Base foreground on white background @@ -72,6 +81,7 @@ fields: default: colors-a - type: enum name: width + group: styles label: Width options: - wide diff --git a/models/PageLayout.yaml b/models/PageLayout.yaml index 3134702c..91881389 100644 --- a/models/PageLayout.yaml +++ b/models/PageLayout.yaml @@ -27,12 +27,12 @@ fields: contentAlignHoriz: center contentAlignVert: middle textAlign: left - title: This Is A Big Hero **Headline** + title: This Is A Big Hero Headline text: >- Aenean eros ipsum, interdum quis dignissim non, sollicitudin vitae nisl. Aenean vel aliquet elit, at blandit ipsum. Sed eleifend felis sit amet erat molestie, hendrerit malesuada justo ultrices. Nunc volutpat at erat - itae interdum. Ut nec massa eget lorem blandit condimentum et at risus. + itae interdum. Ut nec massa eget lorem blandit condimentum et at risus. actions: - type: Button label: Get Started @@ -46,4 +46,4 @@ fields: feature: type: ImageBlock url: /images/hero.png - altText: Image alt text \ No newline at end of file + altText: Image alt text diff --git a/models/Person.yaml b/models/Person.yaml index d2cb7e6e..e469ab42 100644 --- a/models/Person.yaml +++ b/models/Person.yaml @@ -1,10 +1,6 @@ name: Person label: Person fields: - - type: string - name: id - label: ID - default: johnna-doe - type: string name: firstName label: First name @@ -28,3 +24,7 @@ fields: default: url: /images/dianne-ameter.jpg altText: Product Marketing Manager + - type: string + name: id + label: ID + default: johnna-doe diff --git a/models/PostLayout.yaml b/models/PostLayout.yaml index 102b9687..721a5057 100644 --- a/models/PostLayout.yaml +++ b/models/PostLayout.yaml @@ -19,24 +19,17 @@ fields: label: Excerpt default: This is the excerpt of your blog post visible in the post feed or featured posts. - type: model - name: thumbImage - label: Thumbnail image + name: featuredImage + label: Featured image models: - ImageBlock default: type: ImageBlock url: /images/post-1.jpeg altText: Post thumbnail image - - type: list - name: topSections - label: Top sections - items: - type: model - groups: - - sectionComponent - type: list name: bottomSections - label: Bottom sections + label: Sections items: type: model groups: diff --git a/models/QuoteSection.yaml b/models/QuoteSection.yaml index 09c13733..b1dca668 100644 --- a/models/QuoteSection.yaml +++ b/models/QuoteSection.yaml @@ -6,10 +6,10 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - type: markdown name: quote @@ -27,6 +27,7 @@ fields: default: Product Marketing Manager at Acme - type: model name: backgroundImage + group: styles label: Background image models: - ImageBlock diff --git a/models/Section.yaml b/models/Section.yaml index 4ee112fc..fadca9c7 100644 --- a/models/Section.yaml +++ b/models/Section.yaml @@ -2,17 +2,11 @@ type: object name: Section label: Section fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - - type: string - name: elementId - group: settings - label: Element ID - description: The unique ID for an HTML element, must not contain whitespace - default: '' - type: enum name: colors group: styles @@ -119,3 +113,9 @@ fields: - center - right default: left + - type: string + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/models/SelectFormControl.yaml b/models/SelectFormControl.yaml index 1c47eb20..28090062 100644 --- a/models/SelectFormControl.yaml +++ b/models/SelectFormControl.yaml @@ -1,6 +1,9 @@ type: object name: SelectFormControl label: Select +fieldGroups: + - name: styles + label: Styles fields: - type: string name: name @@ -25,6 +28,7 @@ fields: default: false - type: enum name: width + group: styles label: Width options: - label: Full diff --git a/models/Social.yaml b/models/Social.yaml index c34c71e3..d7c45efa 100644 --- a/models/Social.yaml +++ b/models/Social.yaml @@ -1,12 +1,12 @@ type: object name: Social label: Social +fieldGroups: + - name: styles + label: Styles + - name: settings + label: Settings fields: - - type: string - name: elementId - label: Element ID - description: The unique ID for an HTML element, must not contain whitespace - default: '' - type: string name: label label: Label @@ -20,10 +20,12 @@ fields: default: '#' - type: boolean name: showIcon + group: styles label: Show icon default: false - type: enum name: icon + group: styles label: Icon options: - facebook @@ -34,6 +36,7 @@ fields: default: facebook - type: enum name: style + group: styles label: Style options: - label: Link @@ -43,3 +46,9 @@ fields: - label: Secondary value: secondary default: secondary + - type: string + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/models/Testimonial.yaml b/models/Testimonial.yaml index bb9e56c5..80cdce7f 100644 --- a/models/Testimonial.yaml +++ b/models/Testimonial.yaml @@ -1,6 +1,9 @@ type: object name: Testimonial label: Testimonial +fieldGroups: + - name: settings + label: Settings fields: - type: markdown name: quote @@ -20,7 +23,7 @@ fields: name: image label: Author image models: [ImageBlock] - default: + default: url: /images/dianne-ameter.jpg altText: Product Marketing Manager - type: model @@ -28,4 +31,8 @@ fields: label: Company logo models: [ImageBlock] - type: string - name: elementId \ No newline at end of file + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/models/TestimonialsSection.yaml b/models/TestimonialsSection.yaml index c60bbea7..8c265c4c 100644 --- a/models/TestimonialsSection.yaml +++ b/models/TestimonialsSection.yaml @@ -6,10 +6,10 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - name: colors default: colors-h @@ -32,6 +32,7 @@ fields: - type: enum name: variant label: Arrangement + group: styles options: - label: Testimonial with author image at the bottom value: variant-a @@ -40,6 +41,7 @@ fields: default: variant-b - type: model name: badge + group: styles label: Badge models: - Badge diff --git a/models/TextFormControl.yaml b/models/TextFormControl.yaml index bbc7b43a..83af371d 100644 --- a/models/TextFormControl.yaml +++ b/models/TextFormControl.yaml @@ -1,6 +1,9 @@ type: object name: TextFormControl label: Text +fieldGroups: + - name: styles + label: Styles fields: - type: string name: name @@ -19,6 +22,7 @@ fields: default: false - type: enum name: width + group: styles label: Width options: - label: Full diff --git a/models/TextSection.yaml b/models/TextSection.yaml index 6bc87e44..bed68e51 100644 --- a/models/TextSection.yaml +++ b/models/TextSection.yaml @@ -6,10 +6,10 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - name: colors default: colors-f @@ -31,6 +31,7 @@ fields: default: center - type: model name: badge + group: styles label: Badge models: - Badge diff --git a/models/TextareaFormControl.yaml b/models/TextareaFormControl.yaml index c5fadcd7..05813c4c 100644 --- a/models/TextareaFormControl.yaml +++ b/models/TextareaFormControl.yaml @@ -1,6 +1,9 @@ type: object name: TextareaFormControl label: Textarea +fieldGroups: + - name: styles + label: Styles fields: - type: string name: name @@ -19,6 +22,7 @@ fields: default: false - type: enum name: width + group: styles label: Width options: - label: Full diff --git a/models/VideoBlock.yaml b/models/VideoBlock.yaml index 5e290664..5d5338b8 100644 --- a/models/VideoBlock.yaml +++ b/models/VideoBlock.yaml @@ -1,12 +1,10 @@ type: object name: VideoBlock label: Video +fieldGroups: + - name: settings + label: Settings fields: - - type: string - name: elementId - label: Element ID - description: The unique ID for an HTML element, must not contain whitespace - default: '' - type: string name: url label: Video @@ -31,3 +29,9 @@ fields: name: controls label: Controls default: false + - type: string + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/public/models/Badge.yaml b/public/models/Badge.yaml index 605b310b..7dd1bb0e 100644 --- a/public/models/Badge.yaml +++ b/public/models/Badge.yaml @@ -1,13 +1,17 @@ type: object name: Badge label: Badge +fieldGroups: + - name: settings + label: Settings fields: + - type: string + name: label + label: Label + description: The text in the badge - type: string name: elementId + group: settings label: Element ID description: The unique ID for an HTML element, must not contain whitespace default: '' - - type: string - name: label - label: Label - description: The text in the badge diff --git a/public/models/Button.yaml b/public/models/Button.yaml index 87d46545..1c68f699 100644 --- a/public/models/Button.yaml +++ b/public/models/Button.yaml @@ -1,12 +1,12 @@ type: object name: Button label: Button +fieldGroups: + - name: styles + label: Styles + - name: settings + label: Settings fields: - - type: string - name: elementId - label: Element ID - description: The unique ID for an HTML element, must not contain whitespace - default: '' - type: string name: label label: Label @@ -22,10 +22,12 @@ fields: default: '/' - type: boolean name: showIcon + group: styles label: Show icon default: false - type: enum name: icon + group: styles label: Icon options: - arrowLeft @@ -39,6 +41,7 @@ fields: default: arrowLeft - type: enum name: iconPosition + group: styles label: Icon position options: - left @@ -46,6 +49,7 @@ fields: default: right - type: enum name: style + group: styles label: Style options: - label: Link @@ -55,3 +59,9 @@ fields: - label: Secondary value: secondary default: secondary + - type: string + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/public/models/CheckboxFormControl.yaml b/public/models/CheckboxFormControl.yaml index abc7f319..d0a93362 100644 --- a/public/models/CheckboxFormControl.yaml +++ b/public/models/CheckboxFormControl.yaml @@ -1,6 +1,9 @@ type: object name: CheckboxFormControl label: Checkbox +fieldGroups: + - name: styles + label: Styles fields: - type: string name: name @@ -16,6 +19,7 @@ fields: default: false - type: enum name: width + group: styles label: Width options: - label: Full diff --git a/public/models/Config.yaml b/public/models/Config.yaml index d1de6e64..84d63e90 100644 --- a/public/models/Config.yaml +++ b/public/models/Config.yaml @@ -2,23 +2,6 @@ type: data name: Config label: Site configuration fields: - - type: enum - name: backgroundColor - label: Background color - options: - - label: White - value: bg-white - - label: Base - value: bg-base - - label: Primary - value: bg-primary - - label: Secondary - value: bg-secondary - - label: Complementary 1 - value: bg-complementary-1 - - label: Complementary 2 - value: bg-complementary-2 - default: bg-white - type: model name: navBar label: Navbar configuration diff --git a/public/models/ContactBlock.yaml b/public/models/ContactBlock.yaml index 538433cf..48618167 100644 --- a/public/models/ContactBlock.yaml +++ b/public/models/ContactBlock.yaml @@ -1,6 +1,9 @@ type: object name: ContactBlock label: Contact +fieldGroups: + - name: settings + label: Settings fields: - type: string name: phoneNumber @@ -21,4 +24,8 @@ fields: name: addressAltText label: Address alt text - type: string - name: elementId \ No newline at end of file + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/public/models/ContactSection.yaml b/public/models/ContactSection.yaml index d0a25a7c..14ddb3ad 100644 --- a/public/models/ContactSection.yaml +++ b/public/models/ContactSection.yaml @@ -6,10 +6,10 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - name: colors default: colors-h @@ -32,6 +32,7 @@ fields: - type: enum name: variant label: Arrangement + group: styles options: - label: Contact form with feature on the left value: variant-a @@ -40,6 +41,7 @@ fields: default: variant-b - type: model name: badge + group: styles label: Badge models: - Badge @@ -56,7 +58,7 @@ fields: - FormBlock default: type: FormBlock - idAttr: contact-form + elementId: contact-form action: /.netlify/functions/submission_created destination: '' fields: diff --git a/public/models/CtaSection.yaml b/public/models/CtaSection.yaml index 06922445..68a3832c 100644 --- a/public/models/CtaSection.yaml +++ b/public/models/CtaSection.yaml @@ -6,10 +6,10 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - type: enum name: variant @@ -22,6 +22,7 @@ fields: default: variant-b - type: model name: badge + group: styles label: Badge models: - Badge diff --git a/public/models/EmailFormControl.yaml b/public/models/EmailFormControl.yaml index 8b70ecee..8487601a 100644 --- a/public/models/EmailFormControl.yaml +++ b/public/models/EmailFormControl.yaml @@ -1,6 +1,9 @@ type: object name: EmailFormControl label: Email +fieldGroups: + - name: styles + label: Styles fields: - type: string name: name @@ -19,6 +22,7 @@ fields: default: false - type: enum name: width + group: styles label: Width options: - label: Full diff --git a/public/models/FeaturedPeopleSection.yaml b/public/models/FeaturedPeopleSection.yaml index d03e361f..935cdec7 100644 --- a/public/models/FeaturedPeopleSection.yaml +++ b/public/models/FeaturedPeopleSection.yaml @@ -6,13 +6,14 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - type: enum name: variant + group: styles label: Arrangement options: - label: Four columns, person info with image at the top @@ -24,6 +25,7 @@ fields: default: variant-a - type: model name: badge + group: styles label: Badge models: - Badge diff --git a/public/models/FeaturedPostsSection.yaml b/public/models/FeaturedPostsSection.yaml index 2191a751..90e0520b 100644 --- a/public/models/FeaturedPostsSection.yaml +++ b/public/models/FeaturedPostsSection.yaml @@ -6,13 +6,14 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - type: enum name: variant + group: styles label: Arrangement options: - label: Three columns, post thumbnail at the top @@ -22,6 +23,7 @@ fields: default: variant-b - type: model name: badge + group: styles label: Badge models: - Badge diff --git a/public/models/Footer.yaml b/public/models/Footer.yaml index 5f740486..2301ddfc 100644 --- a/public/models/Footer.yaml +++ b/public/models/Footer.yaml @@ -1,9 +1,15 @@ type: object name: Footer label: Footer +fieldGroups: + - name: styles + label: Styles + - name: settings + label: Settings fields: - type: enum name: colors + group: styles label: Colors options: - label: Base foreground on white background @@ -27,21 +33,19 @@ fields: default: colors-a - type: enum name: width + group: styles label: Width options: - wide - full default: wide - - type: string - name: title - label: Title - - type: boolean - name: isTitleVisible - label: Display title - type: model name: logo label: Logo models: [ImageBlock] + - type: string + name: title + label: Title - type: markdown name: text label: Text diff --git a/public/models/FormBlock.yaml b/public/models/FormBlock.yaml index d8d3d7d5..5db57bfb 100644 --- a/public/models/FormBlock.yaml +++ b/public/models/FormBlock.yaml @@ -1,16 +1,10 @@ type: object name: FormBlock label: Form +fieldGroups: + - name: settings + label: Settings fields: - - type: string - name: idAttr - label: ID (used for id and name attributes) - - type: string - name: action - label: Action (form submission URL) - - type: string - name: destination - label: Destination (email to redirect responses) - type: list name: fields label: Fields @@ -25,3 +19,16 @@ fields: - type: string name: submitLabel label: Submit button label + - type: string + name: elementId + group: settings + label: Element ID + description: The unique ID used for id and name attributes, must not contain whitespace + - type: string + name: action + group: settings + label: Action (form submission URL) + - type: string + name: destination + group: settings + label: Destination (email to redirect responses) diff --git a/public/models/HeroSection.yaml b/public/models/HeroSection.yaml index a0cb5fa2..f0a5b794 100644 --- a/public/models/HeroSection.yaml +++ b/public/models/HeroSection.yaml @@ -6,10 +6,10 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - name: colors default: colors-f @@ -29,21 +29,9 @@ fields: default: none - name: textAlign default: left - - type: enum - name: variant - label: Arrangement - options: - - label: Hero with feature on the right - value: variant-a - - label: Hero with feature on the left - value: variant-b - - label: Hero with feature at the top - value: variant-c - - label: Hero with feature at the bottom - value: variant-d - default: variant-a - type: model name: badge + group: styles label: Badge models: - Badge @@ -92,6 +80,15 @@ fields: type: ImageBlock url: /images/hero.png altText: Hero section image + - type: enum + name: featurePosition + label: Feature position + options: + - right + - left + - top + - bottom + default: right - type: model name: backgroundImage group: styles diff --git a/public/models/ImageBlock.yaml b/public/models/ImageBlock.yaml index d0811db4..25cb8cba 100644 --- a/public/models/ImageBlock.yaml +++ b/public/models/ImageBlock.yaml @@ -1,12 +1,12 @@ type: object name: ImageBlock label: Image +fieldGroups: + - name: styles + label: Styles + - name: settings + label: Settings fields: - - type: string - name: elementId - label: Element ID - description: The unique ID for an HTML element, must not contain whitespace - default: '' - type: image name: url label: Image @@ -21,6 +21,7 @@ fields: description: The caption of the image - type: number name: opacity + group: styles label: Opacity description: The opacity of the image controlType: 'slider' @@ -29,3 +30,9 @@ fields: step: 1 unit: '%' default: 100 + - type: string + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/public/models/Link.yaml b/public/models/Link.yaml index 91dcbe8f..28c13b34 100644 --- a/public/models/Link.yaml +++ b/public/models/Link.yaml @@ -1,12 +1,12 @@ type: object name: Link label: Link +fieldGroups: + - name: styles + label: Styles + - name: settings + label: Settings fields: - - type: string - name: elementId - label: Element ID - description: The unique ID for an HTML element, must not contain whitespace - default: '' - type: string name: label label: Label @@ -22,10 +22,12 @@ fields: default: '/' - type: boolean name: showIcon + group: styles label: Show icon default: false - type: enum name: icon + group: styles label: Icon options: - arrowLeft @@ -39,6 +41,7 @@ fields: default: arrowLeft - type: enum name: iconPosition + group: styles label: Icon position options: - left @@ -46,6 +49,7 @@ fields: default: right - type: enum name: style + group: styles label: Style options: - label: Link @@ -55,3 +59,9 @@ fields: - label: Secondary value: secondary default: link + - type: string + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/public/models/NavBar.yaml b/public/models/NavBar.yaml index 17925662..e632e58b 100644 --- a/public/models/NavBar.yaml +++ b/public/models/NavBar.yaml @@ -1,9 +1,15 @@ type: object name: NavBar label: Navbar +fieldGroups: + - name: styles + label: Styles + - name: settings + label: Settings fields: - type: enum name: desktopNavVariant + group: styles label: Desktop navigation arrangement options: - label: Navbar with logo and primary links on the left @@ -17,6 +23,7 @@ fields: default: variant-a - type: enum name: mobileNavVariant + group: styles label: Mobile navigation arrangement options: - label: Full-width mobile navigation @@ -26,6 +33,7 @@ fields: default: variant-a - type: enum name: primaryColors + group: styles label: Primary colors (navbar) options: - label: Base foreground on white background @@ -49,6 +57,7 @@ fields: default: colors-a - type: enum name: secondaryColors + group: styles label: Secondary colors (mobile navigation) options: - label: Base foreground on white background @@ -72,6 +81,7 @@ fields: default: colors-a - type: enum name: width + group: styles label: Width options: - wide diff --git a/public/models/PageLayout.yaml b/public/models/PageLayout.yaml index 3134702c..91881389 100644 --- a/public/models/PageLayout.yaml +++ b/public/models/PageLayout.yaml @@ -27,12 +27,12 @@ fields: contentAlignHoriz: center contentAlignVert: middle textAlign: left - title: This Is A Big Hero **Headline** + title: This Is A Big Hero Headline text: >- Aenean eros ipsum, interdum quis dignissim non, sollicitudin vitae nisl. Aenean vel aliquet elit, at blandit ipsum. Sed eleifend felis sit amet erat molestie, hendrerit malesuada justo ultrices. Nunc volutpat at erat - itae interdum. Ut nec massa eget lorem blandit condimentum et at risus. + itae interdum. Ut nec massa eget lorem blandit condimentum et at risus. actions: - type: Button label: Get Started @@ -46,4 +46,4 @@ fields: feature: type: ImageBlock url: /images/hero.png - altText: Image alt text \ No newline at end of file + altText: Image alt text diff --git a/public/models/Person.yaml b/public/models/Person.yaml index d2cb7e6e..e469ab42 100644 --- a/public/models/Person.yaml +++ b/public/models/Person.yaml @@ -1,10 +1,6 @@ name: Person label: Person fields: - - type: string - name: id - label: ID - default: johnna-doe - type: string name: firstName label: First name @@ -28,3 +24,7 @@ fields: default: url: /images/dianne-ameter.jpg altText: Product Marketing Manager + - type: string + name: id + label: ID + default: johnna-doe diff --git a/public/models/PostLayout.yaml b/public/models/PostLayout.yaml index 102b9687..721a5057 100644 --- a/public/models/PostLayout.yaml +++ b/public/models/PostLayout.yaml @@ -19,24 +19,17 @@ fields: label: Excerpt default: This is the excerpt of your blog post visible in the post feed or featured posts. - type: model - name: thumbImage - label: Thumbnail image + name: featuredImage + label: Featured image models: - ImageBlock default: type: ImageBlock url: /images/post-1.jpeg altText: Post thumbnail image - - type: list - name: topSections - label: Top sections - items: - type: model - groups: - - sectionComponent - type: list name: bottomSections - label: Bottom sections + label: Sections items: type: model groups: diff --git a/public/models/QuoteSection.yaml b/public/models/QuoteSection.yaml index 09c13733..b1dca668 100644 --- a/public/models/QuoteSection.yaml +++ b/public/models/QuoteSection.yaml @@ -6,10 +6,10 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - type: markdown name: quote @@ -27,6 +27,7 @@ fields: default: Product Marketing Manager at Acme - type: model name: backgroundImage + group: styles label: Background image models: - ImageBlock diff --git a/public/models/Section.yaml b/public/models/Section.yaml index 4ee112fc..fadca9c7 100644 --- a/public/models/Section.yaml +++ b/public/models/Section.yaml @@ -2,17 +2,11 @@ type: object name: Section label: Section fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - - type: string - name: elementId - group: settings - label: Element ID - description: The unique ID for an HTML element, must not contain whitespace - default: '' - type: enum name: colors group: styles @@ -119,3 +113,9 @@ fields: - center - right default: left + - type: string + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/public/models/SelectFormControl.yaml b/public/models/SelectFormControl.yaml index 1c47eb20..28090062 100644 --- a/public/models/SelectFormControl.yaml +++ b/public/models/SelectFormControl.yaml @@ -1,6 +1,9 @@ type: object name: SelectFormControl label: Select +fieldGroups: + - name: styles + label: Styles fields: - type: string name: name @@ -25,6 +28,7 @@ fields: default: false - type: enum name: width + group: styles label: Width options: - label: Full diff --git a/public/models/Social.yaml b/public/models/Social.yaml index c34c71e3..d7c45efa 100644 --- a/public/models/Social.yaml +++ b/public/models/Social.yaml @@ -1,12 +1,12 @@ type: object name: Social label: Social +fieldGroups: + - name: styles + label: Styles + - name: settings + label: Settings fields: - - type: string - name: elementId - label: Element ID - description: The unique ID for an HTML element, must not contain whitespace - default: '' - type: string name: label label: Label @@ -20,10 +20,12 @@ fields: default: '#' - type: boolean name: showIcon + group: styles label: Show icon default: false - type: enum name: icon + group: styles label: Icon options: - facebook @@ -34,6 +36,7 @@ fields: default: facebook - type: enum name: style + group: styles label: Style options: - label: Link @@ -43,3 +46,9 @@ fields: - label: Secondary value: secondary default: secondary + - type: string + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/public/models/Testimonial.yaml b/public/models/Testimonial.yaml index bb9e56c5..80cdce7f 100644 --- a/public/models/Testimonial.yaml +++ b/public/models/Testimonial.yaml @@ -1,6 +1,9 @@ type: object name: Testimonial label: Testimonial +fieldGroups: + - name: settings + label: Settings fields: - type: markdown name: quote @@ -20,7 +23,7 @@ fields: name: image label: Author image models: [ImageBlock] - default: + default: url: /images/dianne-ameter.jpg altText: Product Marketing Manager - type: model @@ -28,4 +31,8 @@ fields: label: Company logo models: [ImageBlock] - type: string - name: elementId \ No newline at end of file + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/public/models/TestimonialsSection.yaml b/public/models/TestimonialsSection.yaml index c60bbea7..8c265c4c 100644 --- a/public/models/TestimonialsSection.yaml +++ b/public/models/TestimonialsSection.yaml @@ -6,10 +6,10 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - name: colors default: colors-h @@ -32,6 +32,7 @@ fields: - type: enum name: variant label: Arrangement + group: styles options: - label: Testimonial with author image at the bottom value: variant-a @@ -40,6 +41,7 @@ fields: default: variant-b - type: model name: badge + group: styles label: Badge models: - Badge diff --git a/public/models/TextFormControl.yaml b/public/models/TextFormControl.yaml index bbc7b43a..83af371d 100644 --- a/public/models/TextFormControl.yaml +++ b/public/models/TextFormControl.yaml @@ -1,6 +1,9 @@ type: object name: TextFormControl label: Text +fieldGroups: + - name: styles + label: Styles fields: - type: string name: name @@ -19,6 +22,7 @@ fields: default: false - type: enum name: width + group: styles label: Width options: - label: Full diff --git a/public/models/TextSection.yaml b/public/models/TextSection.yaml index 6bc87e44..bed68e51 100644 --- a/public/models/TextSection.yaml +++ b/public/models/TextSection.yaml @@ -6,10 +6,10 @@ extends: groups: - sectionComponent fieldGroups: - - name: settings - label: Settings - name: styles label: Styles + - name: settings + label: Settings fields: - name: colors default: colors-f @@ -31,6 +31,7 @@ fields: default: center - type: model name: badge + group: styles label: Badge models: - Badge diff --git a/public/models/TextareaFormControl.yaml b/public/models/TextareaFormControl.yaml index c5fadcd7..05813c4c 100644 --- a/public/models/TextareaFormControl.yaml +++ b/public/models/TextareaFormControl.yaml @@ -1,6 +1,9 @@ type: object name: TextareaFormControl label: Textarea +fieldGroups: + - name: styles + label: Styles fields: - type: string name: name @@ -19,6 +22,7 @@ fields: default: false - type: enum name: width + group: styles label: Width options: - label: Full diff --git a/public/models/VideoBlock.yaml b/public/models/VideoBlock.yaml index 5e290664..5d5338b8 100644 --- a/public/models/VideoBlock.yaml +++ b/public/models/VideoBlock.yaml @@ -1,12 +1,10 @@ type: object name: VideoBlock label: Video +fieldGroups: + - name: settings + label: Settings fields: - - type: string - name: elementId - label: Element ID - description: The unique ID for an HTML element, must not contain whitespace - default: '' - type: string name: url label: Video @@ -31,3 +29,9 @@ fields: name: controls label: Controls default: false + - type: string + name: elementId + group: settings + label: Element ID + description: The unique ID for an HTML element, must not contain whitespace + default: '' diff --git a/src/base/DefaultBaseLayout/index.js b/src/base/DefaultBaseLayout/index.js index ce9d58e6..05dc24fc 100644 --- a/src/base/DefaultBaseLayout/index.js +++ b/src/base/DefaultBaseLayout/index.js @@ -10,12 +10,7 @@ export default function DefaultBaseLayout(props) { const pageMeta = page?.__metadata || {}; return (