import { COMPONENT_TYPE } from '../common/constants' import BaseComponent from './base-component' import { StyleData } from './style' export type NoteSpanData = TextSpanData | ImageSpanData | HyperlinkSpanData export interface TextSpanData { style: StyleData text: string ///"", class: string///" ", // classes (i.e. style families) of this span } export interface ImageSpanData { style: StyleData class: string///" ", // classes (i.e. style families) of this image image: string///"xap:resources/.jpg" } export interface HyperlinkSpanData { style: StyleData, class: string, ///" ", // classes (i.e. style families) of this hyperlink href: string, ///"", spans: [ NoteSpanData, // ] } export interface NotesData { plain: { content: string ///"" } html: { content: { paragraphs: [ { style: StyleData spans: [ NoteSpanData ] }, ] } } } export default class Notes extends BaseComponent { componentType = COMPONENT_TYPE.NOTE }