@sanity/assist 1.0.3 → 1.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/assist",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "sanity",
@@ -122,19 +122,7 @@ function serializeMember(
122
122
  name: name,
123
123
  type: typeName,
124
124
  title: type.title,
125
- values:
126
- type.jsonType === 'string' && type?.options?.list
127
- ? type?.options?.list.map((v) => (typeof v === 'string' ? v : v.value ?? `${v.title}`))
128
- : undefined,
129
- of: 'of' in type && type.name === 'array' ? arrayOf(type, schema, options) : undefined,
130
- to:
131
- 'to' in type && type.name === 'reference'
132
- ? refToTypeNames(type as ReferenceSchemaType)
133
- : undefined,
134
- fields:
135
- 'fields' in type && inlineTypes.includes(typeName)
136
- ? serializeFields(schema, type, options)
137
- : undefined,
125
+ ...getBaseFields(schema, type, typeName, options),
138
126
  })
139
127
  }
140
128