@portabletext/editor 1.18.3 → 1.18.4

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.
package/lib/index.cjs CHANGED
@@ -67,13 +67,11 @@ function compileSchemaDefinition(definition) {
67
67
  // fields to objects with the name `image`
68
68
  name: blockObject.name === "image" ? "tmp-image" : blockObject.name,
69
69
  title: blockObject.title,
70
- icon: blockObject.icon,
71
70
  fields: []
72
71
  })) ?? [], inlineObjects = definition?.inlineObjects?.map((inlineObject) => types.defineType({
73
72
  type: "object",
74
73
  name: inlineObject.name,
75
74
  title: inlineObject.title,
76
- icon: inlineObject.icon,
77
75
  fields: []
78
76
  })) ?? [], portableTextSchema = types.defineField({
79
77
  type: "array",
@@ -89,25 +87,21 @@ function compileSchemaDefinition(definition) {
89
87
  marks: {
90
88
  decorators: definition?.decorators?.map((decorator) => ({
91
89
  title: decorator.title ?? startCase__default.default(decorator.name),
92
- value: decorator.name,
93
- icon: decorator.icon
90
+ value: decorator.name
94
91
  })) ?? [],
95
92
  annotations: definition?.annotations?.map((annotation) => ({
96
93
  name: annotation.name,
97
94
  type: "object",
98
- title: annotation.title,
99
- icon: annotation.icon
95
+ title: annotation.title
100
96
  })) ?? []
101
97
  },
102
98
  lists: definition?.lists?.map((list) => ({
103
99
  value: list.name,
104
- title: list.title ?? startCase__default.default(list.name),
105
- icon: list.icon
100
+ title: list.title ?? startCase__default.default(list.name)
106
101
  })) ?? [],
107
102
  styles: definition?.styles?.map((style) => ({
108
103
  value: style.name,
109
- title: style.title ?? startCase__default.default(style.name),
110
- icon: style.icon
104
+ title: style.title ?? startCase__default.default(style.name)
111
105
  })) ?? []
112
106
  }]
113
107
  }), schema$1 = schema.Schema.compile({