import { FORMATTED_TEXT_SCHEMAS } from '..'; import { BaseFormattedNodes, FormattedText } from '../formatted-text/v1/formattedText'; import { PrimitiveType } from '../jsonTypeResolution/TypeResolver'; export const FormattedTextType = PrimitiveType({ ...FORMATTED_TEXT_SCHEMAS.v1, title: 'FormattedText', }); export type FormattedTextType = typeof FormattedTextType; export const FastFormattedTextType = PrimitiveType({ title: 'FormattedText', }); export const BaseFormattedTextType = PrimitiveType({ definitions: FORMATTED_TEXT_SCHEMAS.v1.definitions, oneOf: [ { type: 'string' }, { type: 'array', items: { $ref: '#/definitions/BaseFormattedNodes', }, }, ], title: 'FormattedText', }); export type BaseFormattedTextType = typeof BaseFormattedTextType; export const ComponentInputFormattedTextType = PrimitiveType({ type: 'string', title: 'FormattedText', }); export type ComponentInputFormattedTextType = typeof ComponentInputFormattedTextType;