shel-neos-schema 1.3.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,6 +46,9 @@
46
46
  "defaultValue": {
47
47
  "$ref": "https://raw.githubusercontent.com/Sebobo/Shel.Neos.Schema/main/NodeTypes.Schema.json#/definitions/defaultValueType"
48
48
  },
49
+ "scope": {
50
+ "$ref": "https://raw.githubusercontent.com/Sebobo/Shel.Neos.Schema/main/NodeTypes.Schema.json#/definitions/scopeType"
51
+ },
49
52
  "search": {
50
53
  "type": "object"
51
54
  }
@@ -855,6 +855,10 @@
855
855
  "blockquote": {
856
856
  "type": "boolean",
857
857
  "description": "Allows wrapping text in a blockquote tag (Neos 8.3+)"
858
+ },
859
+ "styleDefinitions": {
860
+ "type": "array",
861
+ "description": "Allows defining custom styles for the inline editor (Neos 9.1+)"
858
862
  }
859
863
  }
860
864
  }
@@ -1262,6 +1266,15 @@
1262
1266
  "array"
1263
1267
  ]
1264
1268
  },
1269
+ "scopeType": {
1270
+ "type": "string",
1271
+ "enum": [
1272
+ "node",
1273
+ "specializations",
1274
+ "nodeAggregate"
1275
+ ],
1276
+ "description": "Property scopes. Since Neos 9.0."
1277
+ },
1265
1278
  "propertyTypes": {
1266
1279
  "anyOf": [
1267
1280
  {
@@ -1525,13 +1538,7 @@
1525
1538
  "$ref": "#/definitions/defaultValueType"
1526
1539
  },
1527
1540
  "scope": {
1528
- "type": "string",
1529
- "enum": [
1530
- "node",
1531
- "specializations",
1532
- "nodeAggregate"
1533
- ],
1534
- "description": "Property scopes. Since Neos 9.0."
1541
+ "$ref": "#/definitions/scopeType"
1535
1542
  },
1536
1543
  "search": {
1537
1544
  "type": "object",
@@ -45,6 +45,10 @@ My.Vendor:Content.Editors:
45
45
  formatting:
46
46
  strong: true
47
47
  blockquote: true
48
+ styleDefinitions:
49
+ - name: 'Brand color'
50
+ element: 'span'
51
+ classes: [ 'color__neos-brand' ]
48
52
 
49
53
  textField:
50
54
  type: string
@@ -7,6 +7,7 @@ Neos:
7
7
  'rangeEditor':
8
8
  type: integer
9
9
  defaultValue: 12
10
+ scope: nodeAggregate
10
11
  ui:
11
12
  inspector:
12
13
  editor: Neos.Neos/Inspector/Editors/RangeEditor
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shel-neos-schema",
3
3
  "description": "A tool to validate Neos YAML schema files like nodetypes and other configuration",
4
- "version": "1.3.0",
4
+ "version": "1.4.1",
5
5
  "main": "bin/validate.js",
6
6
  "author": "Sebastian Helzle <sebastian@helzle.it>",
7
7
  "license": "MIT",