UNPKG

@atlaskit/adf-schema

Version:

Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs

219 lines (218 loc) 6.97 kB
/** * This file was automatically generated by @atlaskit/adf-schema-generator * DO NOT MODIFY IT BY HAND. Instead, modify the source files in "packages/adf-schema/src/next-schema" , * and run "yarn workspace @atlaskit/adf-schema build:schema:all" to regenerate this file. */ import { type PMMarkSpecFactoryInstance } from '../../schema/createPMSpecFactory'; import type { Mark } from '@atlaskit/editor-prosemirror/model'; export interface AlignmentMarkAttributes { align: 'center' | 'end'; } export interface AlignmentDefinition { type: 'alignment'; attrs: AlignmentMarkAttributes; } export interface AlignmentMark extends Mark { attrs: AlignmentMarkAttributes; } export declare const alignment: PMMarkSpecFactoryInstance<AlignmentMark>; export interface AnnotationMarkAttributes { id: string; annotationType: 'inlineComment'; } export interface AnnotationDefinition { type: 'annotation'; attrs: AnnotationMarkAttributes; } export interface AnnotationMark extends Mark { attrs: AnnotationMarkAttributes; } export declare const annotation: PMMarkSpecFactoryInstance<AnnotationMark>; export interface BackgroundColorMarkAttributes { color: string; } export interface BackgroundColorDefinition { type: 'backgroundColor'; attrs: BackgroundColorMarkAttributes; } export interface BackgroundColorMark extends Mark { attrs: BackgroundColorMarkAttributes; } export declare const backgroundColor: PMMarkSpecFactoryInstance<BackgroundColorMark>; export interface BorderMarkAttributes { size: number; color: string; } export interface BorderDefinition { type: 'border'; attrs: BorderMarkAttributes; } export interface BorderMark extends Mark { attrs: BorderMarkAttributes; } export declare const border: PMMarkSpecFactoryInstance<BorderMark>; export interface BreakoutMarkAttributes { mode: 'wide' | 'full-width'; width?: number; } export interface BreakoutDefinition { type: 'breakout'; attrs: BreakoutMarkAttributes; } export interface BreakoutMark extends Mark { attrs: BreakoutMarkAttributes; } export declare const breakout: PMMarkSpecFactoryInstance<BreakoutMark>; export interface CodeDefinition { type: 'code'; } export type CodeMark = Mark; export declare const code: PMMarkSpecFactoryInstance<Mark>; export interface ConfluenceInlineCommentMarkAttributes { reference: string; } export interface ConfluenceInlineCommentDefinition { type: 'confluenceInlineComment'; attrs: ConfluenceInlineCommentMarkAttributes; } export interface ConfluenceInlineCommentMark extends Mark { attrs: ConfluenceInlineCommentMarkAttributes; } export declare const confluenceInlineComment: PMMarkSpecFactoryInstance<ConfluenceInlineCommentMark>; export interface DataConsumerMarkAttributes { sources: Array<string>; } export interface DataConsumerDefinition { type: 'dataConsumer'; attrs: DataConsumerMarkAttributes; } export interface DataConsumerMark extends Mark { attrs: DataConsumerMarkAttributes; } export declare const dataConsumer: PMMarkSpecFactoryInstance<DataConsumerMark>; export interface EmDefinition { type: 'em'; } export type EmMark = Mark; export declare const em: PMMarkSpecFactoryInstance<Mark>; export interface FontSizeMarkAttributes { fontSize: 'small'; } export interface FontSizeDefinition { type: 'fontSize'; attrs: FontSizeMarkAttributes; } export interface FontSizeMark extends Mark { attrs: FontSizeMarkAttributes; } export declare const fontSize: PMMarkSpecFactoryInstance<FontSizeMark>; export interface FragmentMarkAttributes { localId: string; name?: string; } export interface FragmentDefinition { type: 'fragment'; attrs: FragmentMarkAttributes; } export interface FragmentMark extends Mark { attrs: FragmentMarkAttributes; } export declare const fragment: PMMarkSpecFactoryInstance<FragmentMark>; export interface IndentationMarkAttributes { level: number; } export interface IndentationDefinition { type: 'indentation'; attrs: IndentationMarkAttributes; } export interface IndentationMark extends Mark { attrs: IndentationMarkAttributes; } export declare const indentation: PMMarkSpecFactoryInstance<IndentationMark>; export interface LinkMarkAttributes { href: string; title?: string; id?: string; collection?: string; occurrenceKey?: string; __confluenceMetadata?: Record<string, unknown>; } export interface LinkDefinition { type: 'link'; attrs: LinkMarkAttributes; } export interface LinkMark extends Mark { attrs: LinkMarkAttributes; } export declare const link: PMMarkSpecFactoryInstance<LinkMark>; export interface StrikeDefinition { type: 'strike'; } export type StrikeMark = Mark; export declare const strike: PMMarkSpecFactoryInstance<Mark>; export interface StrongDefinition { type: 'strong'; } export type StrongMark = Mark; export declare const strong: PMMarkSpecFactoryInstance<Mark>; export interface SubsupMarkAttributes { type: 'sub' | 'sup'; } export interface SubsupDefinition { type: 'subsup'; attrs: SubsupMarkAttributes; } export interface SubsupMark extends Mark { attrs: SubsupMarkAttributes; } export declare const subsup: PMMarkSpecFactoryInstance<SubsupMark>; export interface TextColorMarkAttributes { color: string; } export interface TextColorDefinition { type: 'textColor'; attrs: TextColorMarkAttributes; } export interface TextColorMark extends Mark { attrs: TextColorMarkAttributes; } export declare const textColor: PMMarkSpecFactoryInstance<TextColorMark>; export interface TypeAheadQueryMarkAttributes { trigger: string; } export interface TypeAheadQueryDefinition { type: 'typeAheadQuery'; attrs: TypeAheadQueryMarkAttributes; } export interface TypeAheadQueryMark extends Mark { attrs: TypeAheadQueryMarkAttributes; } export declare const typeAheadQuery: PMMarkSpecFactoryInstance<TypeAheadQueryMark>; export interface UnderlineDefinition { type: 'underline'; } export type UnderlineMark = Mark; export declare const underline: PMMarkSpecFactoryInstance<Mark>; export interface UnsupportedMarkMarkAttributes { originalValue: Record<string, unknown>; } export interface UnsupportedMarkDefinition { type: 'unsupportedMark'; attrs: UnsupportedMarkMarkAttributes; } export interface UnsupportedMarkMark extends Mark { attrs: UnsupportedMarkMarkAttributes; } export declare const unsupportedMark: PMMarkSpecFactoryInstance<UnsupportedMarkMark>; export interface UnsupportedNodeAttributeMarkAttributes { unsupported: Record<string, unknown>; type: string; } export interface UnsupportedNodeAttributeDefinition { type: 'unsupportedNodeAttribute'; attrs: UnsupportedNodeAttributeMarkAttributes; } export interface UnsupportedNodeAttributeMark extends Mark { attrs: UnsupportedNodeAttributeMarkAttributes; } export declare const unsupportedNodeAttribute: PMMarkSpecFactoryInstance<UnsupportedNodeAttributeMark>;