@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
81 lines (72 loc) • 2.37 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.mediaSingleFullWithLocalId = exports.mediaSingleFull = exports.mediaSingle = exports.defaultAttrs = void 0;
Object.defineProperty(exports, "mediaSingleSpec", {
enumerable: true,
get: function get() {
return _mediaSingleSpec.mediaSingleSpec;
}
});
exports.mediaSingleWithWidthType = exports.mediaSingleWithCaption = void 0;
Object.defineProperty(exports, "toJSON", {
enumerable: true,
get: function get() {
return _toJson.toJSON;
}
});
var _mediaSingleSpec = require("./media-single-spec");
var _toJson = require("./to-json");
/* eslint-disable @atlaskit/editor/no-re-export -- VOLTC-139 tracks removal of these deprecated compatibility re-export shims. */
/**
* @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
*/
var defaultAttrs = exports.defaultAttrs = {
width: {
default: null
},
// null makes small images to have original size by default
layout: {
default: 'center'
}
};
var mediaSingle = exports.mediaSingle = (0, _mediaSingleSpec.mediaSingleSpec)({
withCaption: false,
withExtendedWidthTypes: false
});
var mediaSingleWithCaption = exports.mediaSingleWithCaption = (0, _mediaSingleSpec.mediaSingleSpec)({
withCaption: true,
withExtendedWidthTypes: false
});
var mediaSingleWithWidthType = exports.mediaSingleWithWidthType = (0, _mediaSingleSpec.mediaSingleSpec)({
withCaption: false,
withExtendedWidthTypes: true
});
var mediaSingleFull = exports.mediaSingleFull = (0, _mediaSingleSpec.mediaSingleSpec)({
withCaption: true,
withExtendedWidthTypes: true
});
var mediaSingleFullWithLocalId = exports.mediaSingleFullWithLocalId = (0, _mediaSingleSpec.mediaSingleSpec)({
withCaption: true,
withExtendedWidthTypes: true,
generateLocalId: true
});
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-re-exports -- Public compatibility re-export.
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-re-exports -- Public compatibility re-export.