@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
66 lines (65 loc) • 3.09 kB
TypeScript
import { Schema } from 'prosemirror-model';
/**
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
**/
export interface JIRASchemaConfig {
allowLists?: boolean;
allowMentions?: boolean;
allowEmojis?: boolean;
allowLinks?: boolean;
allowAdvancedTextFormatting?: boolean;
allowCodeBlock?: boolean;
allowBlockQuote?: boolean;
allowSubSup?: boolean;
allowMedia?: boolean;
allowTextColor?: boolean;
allowTables?: boolean;
}
/**
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
**/
export default function makeSchema(config: JIRASchemaConfig): Schema<string, string>;
/**
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
**/
export declare function isSchemaWithLists(schema: Schema): boolean;
/**
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
**/
export declare function isSchemaWithMentions(schema: Schema): boolean;
/**
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
**/
export declare function isSchemaWithEmojis(schema: Schema): boolean;
/**
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
**/
export declare function isSchemaWithLinks(schema: Schema): boolean;
/**
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
**/
export declare function isSchemaWithAdvancedTextFormattingMarks(schema: Schema): boolean;
/**
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
**/
export declare function isSchemaWithSubSupMark(schema: Schema): boolean;
/**
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
**/
export declare function isSchemaWithCodeBlock(schema: Schema): boolean;
/**
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
**/
export declare function isSchemaWithBlockQuotes(schema: Schema): boolean;
/**
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
**/
export declare function isSchemaWithMedia(schema: Schema): boolean;
/**
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
**/
export declare function isSchemaWithTextColor(schema: Schema): boolean;
/**
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
**/
export declare function isSchemaWithTables(schema: Schema): boolean;