@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
63 lines (55 loc) • 1.64 kB
JavaScript
/* eslint-disable @atlaskit/editor/no-re-export -- VOLTC-139 tracks removal of these deprecated compatibility re-export shims. */
import { mediaSingleSpec } from './media-single-spec';
/**
* @name mediaSingle_node
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
* @additionalProperties true
*/
/**
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
* @additionalProperties true
*/
/**
* @name mediaSingle_caption_node
*/
/**
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
* @additionalProperties true
*/
/**
* @name mediaSingle_full_node
*/
export var defaultAttrs = {
width: {
default: null
},
// null makes small images to have original size by default
layout: {
default: 'center'
}
};
export var mediaSingle = mediaSingleSpec({
withCaption: false,
withExtendedWidthTypes: false
});
export var mediaSingleWithCaption = mediaSingleSpec({
withCaption: true,
withExtendedWidthTypes: false
});
export var mediaSingleWithWidthType = mediaSingleSpec({
withCaption: false,
withExtendedWidthTypes: true
});
export var mediaSingleFull = mediaSingleSpec({
withCaption: true,
withExtendedWidthTypes: true
});
export var mediaSingleFullWithLocalId = mediaSingleSpec({
withCaption: true,
withExtendedWidthTypes: true,
generateLocalId: true
});
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-re-exports -- Public compatibility re-export.
export { mediaSingleSpec } from './media-single-spec';
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-re-exports -- Public compatibility re-export.
export { toJSON } from './to-json';