From 1a88490aeb02b99bfd6772d126bd336d137d1e86 Mon Sep 17 00:00:00 2001 From: victorhmp Date: Fri, 1 Nov 2019 00:35:19 -0300 Subject: [PATCH 1/2] Add `image-uploader` widget to Image schema definition --- store/contentSchemas.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/store/contentSchemas.json b/store/contentSchemas.json index 896b17c..7cb97f4 100644 --- a/store/contentSchemas.json +++ b/store/contentSchemas.json @@ -5,7 +5,10 @@ "src": { "title": "admin/editor.image.src.title", "$ref": "app:vtex.native-types#/definitions/url", - "default": "" + "default": "", + "widget": { + "ui:widget": "image-uploader" + } }, "link": { "$ref": "app:vtex.native-types#/definitions/link", From 8f10f035fdf96f27bcb71bdd63017c643462178c Mon Sep 17 00:00:00 2001 From: victorhmp Date: Fri, 1 Nov 2019 00:38:12 -0300 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 206ef2a..f68dad9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added +- `image-uploader` widget to `Image` contentSchema. ## [0.2.1] - 2019-10-24