@stackbit/datocms-plugin-typed-list
Advanced tools
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
+3
-3
| { | ||
| "name": "@stackbit/datocms-plugin-typed-list", | ||
| "homepage": "https://github.com/stackbithq/datocms-plugin-typed-list#readme", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "description": "Plugin for editing typed list (list of strings, enums, numbers) in DatoCMS using JSON field", | ||
@@ -10,6 +10,6 @@ "main": "index.js", | ||
| }, | ||
| "files": ["public"], | ||
| "files": ["public", "docs"], | ||
| "datoCmsPlugin": { | ||
| "title": "Typed List Editor", | ||
| "previewImage": "docs/preview.gif", | ||
| "previewImage": "docs/editing-list.png", | ||
| "entryPoint": "public/index.html", | ||
@@ -16,0 +16,0 @@ "fieldTypes": ["json"], |
+14
-0
@@ -5,4 +5,18 @@ ## Typed List field editor plugin for DatoCMS | ||
|  | ||
| When installing this plugin on a JSON field, you can configure two properties: | ||
| - `type`: defines the type of the array items. Possible values `string` and `number`. Default is `string`. | ||
| - `options`: when `type` is set to string, you can specify string of comma separated values allowed to be inserted into the array. This is done by replacing the regular text field to select dropdown. Note, this is not a validation rule but a user interface feature. | ||
| Example: | ||
|  | ||
|  | ||
| TODOs: | ||
| - rearange items | ||
| - convert to React | ||
| - add more types (color, url, etc.) |
301826
3047.63%8
60%22
175%