diff --git a/packages/stencil-grapes-plugin/CHANGELOG.md b/packages/stencil-grapes-plugin/CHANGELOG.md new file mode 100644 index 0000000000..c1c52b897e --- /dev/null +++ b/packages/stencil-grapes-plugin/CHANGELOG.md @@ -0,0 +1,32 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [1.0.1] - 2021-06-23 + +### Added + +- Newly supported JS Doc tag: + - @uiOptions - must be valid JSON + +## [1.0.0] - 2021-04-21 + +### Added + +- Initial release. Creates a grapesjs.js file to be used as a plugin for the GrapesJS Editor. +- uiSchema is generated from each component's JS Doc tags + - Supported JS Doc tags: + - @uiWidget + - @uiOrder + - @uiEnum + - @uiEnumNames + - @uiType + +[unreleased]: https://github.com/saasquatch/freshest-themes/compare/servicetitan-components@1.0.1...HEAD +[1.0.1]: https://github.com/saasquatch/freshest-themes/releases/tag/servicetitan-components@1.0.1 +[1.0.0]: https://github.com/saasquatch/freshest-themes/releases/tag/servicetitan-components@1.0.0 diff --git a/packages/stencil-grapes-plugin/package.json b/packages/stencil-grapes-plugin/package.json index e448ace97d..4c8d3c8504 100644 --- a/packages/stencil-grapes-plugin/package.json +++ b/packages/stencil-grapes-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@saasquatch/stencil-grapes-plugin", - "version": "1.0.0", + "version": "1.0.1", "description": "A stencil docs generator for generating GrapesJS plugins", "source": "src/generator.ts", "main": "dist/generator.js", diff --git a/packages/stencil-grapes-plugin/src/generator.ts b/packages/stencil-grapes-plugin/src/generator.ts index 9f5abc4f59..17fda54041 100644 --- a/packages/stencil-grapes-plugin/src/generator.ts +++ b/packages/stencil-grapes-plugin/src/generator.ts @@ -90,6 +90,7 @@ function convertToGrapesJSMeta(docs: JsonDocs): GrapesJSModel[] { "ui:widget": tagValue(prop.docsTags, "uiWidget"), "ui:name": uiName(prop), "ui:help": prop.docs, + "ui:options": jsonTagValue(prop, "uiOptions"), }, }; },