65 lines
1.2 KiB
TypeScript
65 lines
1.2 KiB
TypeScript
export enum EmbedTypesEnum {
|
|
block = "block",
|
|
display = "display",
|
|
download = "download",
|
|
inline = "inline",
|
|
link = "link",
|
|
}
|
|
|
|
export type EmbedTypes = keyof typeof EmbedTypesEnum
|
|
|
|
/** Copied from https://github.com/contentstack/contentstack-utils-javascript/blob/master/src/nodes/node-type.ts */
|
|
export enum RTETypeEnum {
|
|
a = "a",
|
|
blockquote = "blockquote",
|
|
code = "code",
|
|
doc = "doc",
|
|
embed = "embed",
|
|
h1 = "h1",
|
|
h2 = "h2",
|
|
h3 = "h3",
|
|
h4 = "h4",
|
|
h5 = "h5",
|
|
h6 = "h6",
|
|
hr = "hr",
|
|
img = "img",
|
|
li = "li",
|
|
ol = "ol",
|
|
p = "p",
|
|
reference = "reference",
|
|
table = "table",
|
|
tbody = "tbody",
|
|
td = "td",
|
|
text = "text",
|
|
tfoot = "tfoot",
|
|
th = "th",
|
|
thead = "thead",
|
|
tr = "tr",
|
|
ul = "ul",
|
|
ImageVault = "ImageVault",
|
|
fragment = "fragment",
|
|
}
|
|
|
|
export type RTEType = keyof typeof RTETypeEnum
|
|
|
|
export enum RTEItemTypeEnum {
|
|
asset = "asset",
|
|
entry = "entry",
|
|
}
|
|
|
|
export type RTEItemType = keyof typeof RTEItemTypeEnum
|
|
|
|
export enum AvailableParagraphFormatEnum {
|
|
"script-1" = "script-1",
|
|
"script-2" = "script-2",
|
|
"footnote" = "footnote",
|
|
"caption" = "caption",
|
|
"subtitle-1" = "subtitle-1",
|
|
"subtitle-2" = "subtitle-2",
|
|
}
|
|
|
|
export enum AvailableULFormatEnum {
|
|
"heart" = "heart",
|
|
"check" = "check",
|
|
}
|