UNPKG

@wordpress/editor

Version:
34 lines (31 loc) 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AUTOSAVE_PROPERTIES = exports.ONE_MINUTE_IN_MS = exports.PERMALINK_POSTNAME_REGEX = exports.TRASH_POST_NOTICE_ID = exports.SAVE_POST_NOTICE_ID = exports.STORE_NAME = exports.EDIT_MERGE_PROPERTIES = void 0; /** * Set of post properties for which edits should assume a merging behavior, * assuming an object value. * * @type {Set} */ const EDIT_MERGE_PROPERTIES = new Set(['meta']); /** * Constant for the store module (or reducer) key. * * @type {string} */ exports.EDIT_MERGE_PROPERTIES = EDIT_MERGE_PROPERTIES; const STORE_NAME = 'core/editor'; exports.STORE_NAME = STORE_NAME; const SAVE_POST_NOTICE_ID = 'SAVE_POST_NOTICE_ID'; exports.SAVE_POST_NOTICE_ID = SAVE_POST_NOTICE_ID; const TRASH_POST_NOTICE_ID = 'TRASH_POST_NOTICE_ID'; exports.TRASH_POST_NOTICE_ID = TRASH_POST_NOTICE_ID; const PERMALINK_POSTNAME_REGEX = /%(?:postname|pagename)%/; exports.PERMALINK_POSTNAME_REGEX = PERMALINK_POSTNAME_REGEX; const ONE_MINUTE_IN_MS = 60 * 1000; exports.ONE_MINUTE_IN_MS = ONE_MINUTE_IN_MS; const AUTOSAVE_PROPERTIES = ['title', 'excerpt', 'content']; exports.AUTOSAVE_PROPERTIES = AUTOSAVE_PROPERTIES; //# sourceMappingURL=constants.js.map