Skip to content

Commit

Permalink
Merge pull request #149 from saasquatch/stencil-grapes-ui-options
Browse files Browse the repository at this point in the history
allow ability to include ui:options with widget
  • Loading branch information
00salmon committed Jun 23, 2021
2 parents 7f66d71 + 489b0ff commit df6ef8a
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
32 changes: 32 additions & 0 deletions packages/stencil-grapes-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion packages/stencil-grapes-plugin/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/stencil-grapes-plugin/src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
},
};
},
Expand Down

0 comments on commit df6ef8a

Please sign in to comment.