UNPKG

@atlaskit/adf-schema

Version:

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

68 lines (67 loc) 3.12 kB
import type { Schema } from '@atlaskit/editor-prosemirror/model'; /** * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead. **/ export interface JIRASchemaConfig { allowAdvancedTextFormatting?: boolean; allowBlockQuote?: boolean; allowCodeBlock?: boolean; allowEmojis?: boolean; allowLinks?: boolean; allowLists?: boolean; allowMedia?: boolean; allowMentions?: boolean; allowSubSup?: boolean; allowTables?: boolean; allowTextColor?: boolean; } /** * Creates a Jira-specific ADF schema. * * @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 { isSchemaWithLists } from './is-schema-with-lists'; /** * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead. **/ export { isSchemaWithMentions } from './is-schema-with-mentions'; /** * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead. **/ export { isSchemaWithEmojis } from './is-schema-with-emojis'; /** * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead. **/ export { isSchemaWithLinks } from './is-schema-with-links'; /** * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead. **/ export { isSchemaWithAdvancedTextFormattingMarks } from './is-schema-with-advanced-text-formatting-marks'; /** * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead. **/ export { isSchemaWithSubSupMark } from './is-schema-with-sub-sup-mark'; /** * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead. **/ export { isSchemaWithCodeBlock } from './is-schema-with-code-block'; /** * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead. **/ export { isSchemaWithBlockQuotes } from './is-schema-with-block-quotes'; /** * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead. **/ export { isSchemaWithMedia } from './is-schema-with-media'; /** * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead. **/ export { isSchemaWithTextColor } from './is-schema-with-text-color'; /** * @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead. **/ export { isSchemaWithTables } from './is-schema-with-tables';