UNPKG

3.09 kBTypeScriptView Raw
1import { Schema } from 'prosemirror-model';
2/**
3 * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
4 **/
5export interface JIRASchemaConfig {
6 allowLists?: boolean;
7 allowMentions?: boolean;
8 allowEmojis?: boolean;
9 allowLinks?: boolean;
10 allowAdvancedTextFormatting?: boolean;
11 allowCodeBlock?: boolean;
12 allowBlockQuote?: boolean;
13 allowSubSup?: boolean;
14 allowMedia?: boolean;
15 allowTextColor?: boolean;
16 allowTables?: boolean;
17}
18/**
19 * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
20 **/
21export default function makeSchema(config: JIRASchemaConfig): Schema<string, string>;
22/**
23 * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
24 **/
25export declare function isSchemaWithLists(schema: Schema): boolean;
26/**
27 * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
28 **/
29export declare function isSchemaWithMentions(schema: Schema): boolean;
30/**
31 * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
32 **/
33export declare function isSchemaWithEmojis(schema: Schema): boolean;
34/**
35 * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
36 **/
37export declare function isSchemaWithLinks(schema: Schema): boolean;
38/**
39 * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
40 **/
41export declare function isSchemaWithAdvancedTextFormattingMarks(schema: Schema): boolean;
42/**
43 * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
44 **/
45export declare function isSchemaWithSubSupMark(schema: Schema): boolean;
46/**
47 * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
48 **/
49export declare function isSchemaWithCodeBlock(schema: Schema): boolean;
50/**
51 * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
52 **/
53export declare function isSchemaWithBlockQuotes(schema: Schema): boolean;
54/**
55 * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
56 **/
57export declare function isSchemaWithMedia(schema: Schema): boolean;
58/**
59 * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
60 **/
61export declare function isSchemaWithTextColor(schema: Schema): boolean;
62/**
63 * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
64 **/
65export declare function isSchemaWithTables(schema: Schema): boolean;