datocms-plugin-use-link-as-defaults
Version:
This plugin provides the developer with an easy way to configure fields that a CMS user can overwrite manually when linking an entity.
140 lines (139 loc) • 4.09 kB
JSON
{
"name": "datocms-plugin-use-link-as-defaults",
"homepage": "https://github.com/titel-media/datocms-plugin-use-link-as-defaults",
"version": "0.1.0",
"description": "This plugin provides the developer with an easy way to configure fields that a CMS user can overwrite manually when linking an entity.",
"main": "index.js",
"scripts": {
"start": "NODE_ENV=development webpack-dev-server --port 5500",
"dist": "NODE_ENV=production webpack --progress",
"addToProject": "yo datocms-plugin:add-to-project",
"prepublishOnly": "rimraf lib dist && mkdir dist && npm run dist",
"lint": "eslint \"./src/*.{js,jsx}\"",
"test": "echo 1"
},
"keywords": [
"datocms",
"datocms-plugin",
"field-addon",
"link-field",
"link",
"defaults",
"template",
"extend",
"default",
"overwrite",
"override"
],
"files": [
"dist",
"docs"
],
"author": "Highsnobiety <dev@highsnobiety.com>",
"license": "MIT",
"datoCmsPlugin": {
"title": "Use Link as Defaults",
"previewImage": "docs/preview.gif",
"coverImage": "docs/cover.png",
"entryPoint": "dist/index.html",
"pluginType": "field_addon",
"fieldTypes": [
"link"
],
"parameters": {
"global": [
{
"id": "developmentMode",
"label": "Development Mode",
"type": "boolean",
"default": false,
"hint": "Shows debug messages in console"
},
{
"id": "apiToken",
"label": "Read-Only API Token",
"type": "string",
"required": true,
"default": "",
"hint": "The plugin needs to fetch data in order to display it."
},
{
"id": "textNothingSet",
"label": "Text for nothing set state",
"type": "string",
"hint": "Default: Select a reference above"
},
{
"id": "textClearButton",
"label": "Text for Clear Button",
"type": "string",
"hint": "Default: Clear all fields"
},
{
"id": "textResetButton",
"label": "Text for Reset Button",
"type": "string",
"hint": "Default: Reset empty fields"
}
],
"instance": [
{
"id": "config",
"label": "Configuration",
"type": "json",
"required": true
}
]
}
},
"devDependencies": {
"@babel/cli": "^7.14.5",
"@babel/core": "^7.14.6",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-proposal-decorators": "^7.14.5",
"@babel/plugin-proposal-export-default-from": "^7.14.5",
"@babel/plugin-transform-runtime": "^7.14.5",
"@babel/preset-env": "^7.14.5",
"@babel/preset-react": "^7.14.5",
"@babel/register": "^7.14.5",
"@titelmedia/eslint-config-es6": "^1.5.0",
"babel-eslint": "^8.2.6",
"babel-loader": "^8.0.0-beta",
"babel-plugin-lodash": "^3.3.4",
"babel-plugin-module-resolver": "^4.1.0",
"css-loader": "^1.0.0",
"eslint": "^7.28.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-webpack": "^0.10.1",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.11.0",
"eslint-plugin-react-hooks": "^4.2.0",
"html-webpack-inline-source-plugin": "^0.0.10",
"html-webpack-plugin": "^3.2.0",
"mini-css-extract-plugin": "^0.4.3",
"node-sass": "^6.0.0",
"prettier": "^2.3.1",
"sass-loader": "^10.1.1",
"serve": "^10.0.2",
"style-loader": "^0.23.0",
"webpack": "^4.16.1",
"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.11.2"
},
"dependencies": {
"datocms-client": "^3.4.11",
"datocms-plugins-sdk": "^0.1.1",
"html-webpack-tags-plugin": "^2.0.17",
"immer": "^9.0.3",
"lodash": "^4.17.21",
"prop-types": "^15.6.2",
"react": "^16.5.2",
"react-dom": "^16.5.2"
},
"resolutions": {
"glob-parent": "^5.1.2",
"trim-newlines": "^3.0.1"
}
}