Skip to content

Commit

Permalink
feat: add responsive-layout autocomplete (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
IncognitaDev authored Feb 27, 2023
1 parent 2f8a047 commit 9adb7be
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
13 changes: 13 additions & 0 deletions schemas/apps/responsive-layout.schema.json
Original file line number Diff line number Diff line change
@@ -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" }
}
}
}
24 changes: 24 additions & 0 deletions schemas/vtexio.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand Down

0 comments on commit 9adb7be

Please sign in to comment.