From 9adb7bebdbe69996148c84b7fff5daad21687a42 Mon Sep 17 00:00:00 2001 From: Luis Sousa Date: Mon, 27 Feb 2023 10:36:52 -0300 Subject: [PATCH] feat: add responsive-layout autocomplete (#28) --- schemas/apps/responsive-layout.schema.json | 13 ++++++++++++ schemas/vtexio.schema.json | 24 ++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 schemas/apps/responsive-layout.schema.json diff --git a/schemas/apps/responsive-layout.schema.json b/schemas/apps/responsive-layout.schema.json new file mode 100644 index 0000000..004fccf --- /dev/null +++ b/schemas/apps/responsive-layout.schema.json @@ -0,0 +1,13 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Responsive Layout", + "description": "Responsive-layout allows you to declare layout structures that will only be rendered in a specific screen-size breakpoint.", + "type": "object", + "properties": { + "children": { + "title": "Block's chindren", + "type": "array", + "items": { "$ref": "./../shared/block.schema.json" } + } + } +} diff --git a/schemas/vtexio.schema.json b/schemas/vtexio.schema.json index 84aec7f..b7017f6 100644 --- a/schemas/vtexio.schema.json +++ b/schemas/vtexio.schema.json @@ -230,6 +230,18 @@ "^(search-banner#)|^(search-banner)$": { "$ref": "./apps/search/search-banner.schema.json" }, + "^(responsive-layout.desktop#)|^(responsive-layout.desktop)$": { + "$ref": "./apps/responsive-layout.schema.json" + }, + "^(responsive-layout.mobile#)|^(responsive-layout.mobile)$": { + "$ref": "./apps/responsive-layout.schema.json" + }, + "^(responsive-layout.tablet#)|^(responsive-layout.tablet)$": { + "$ref": "./apps/responsive-layout.schema.json" + }, + "^(responsive-layout.phone#)|^(responsive-layout.phone)$": { + "$ref": "./apps/responsive-layout.schema.json" + }, "^(vtex.store-components:search-bar#)|^(vtex.store-components:search-bar)$|^(search-bar#)|^(search-bar)$": { "$ref": "./apps/store-components/search-bar.schema.json" }, @@ -505,6 +517,18 @@ "product-summary-quantity": { "$ref": "./apps/product-quantity/product-summary-quantity.schema.json" }, + "responsive-layout.desktop": { + "$ref": "./apps/responsive-layout.schema.json" + }, + "responsive-layout.mobile": { + "$ref": "./apps/responsive-layout.schema.json" + }, + "responsive-layout.tablet": { + "$ref": "./apps/responsive-layout.schema.json" + }, + "responsive-layout.phone": { + "$ref": "./apps/responsive-layout.schema.json" + }, "rich-text": { "$ref": "./apps/rich-text.schema.json" },