Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@stackbit/datocms-plugin-typed-list

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stackbit/datocms-plugin-typed-list - npm Package Compare versions

Comparing version
0.1.0
to
0.1.1
docs/configuring-options.png

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"],

@@ -5,4 +5,18 @@ ## Typed List field editor plugin for DatoCMS

![Editing fields](docs/editing-list.png)
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:
![Configuring options](docs/configuring-options.png)
![Editing options](docs/editing-options.png)
TODOs:
- rearange items
- convert to React
- add more types (color, url, etc.)