@atlaskit/editor-plugin-placeholder
Version:
Placeholder plugin for @atlaskit/editor-core.
18 lines (15 loc) • 1.47 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.placeholderTestId = exports.nodeTypesWithSyncBlockPlaceholderText = exports.nodeTypesWithShortPlaceholderText = exports.nodeTypesWithLongPlaceholderText = exports.TYPEWRITER_TYPE_DELAY = exports.TYPEWRITER_TYPED_AND_DELETED_DELAY = exports.TYPEWRITER_PAUSE_BEFORE_ERASE = exports.TYPEWRITER_ERASE_DELAY = exports.TYPEWRITER_CYCLE_DELAY = void 0;
var placeholderTestId = exports.placeholderTestId = 'placeholder-test-id';
// Typewriter animation timing constants
var TYPEWRITER_TYPE_DELAY = exports.TYPEWRITER_TYPE_DELAY = 50; // Delay between typing each character
var TYPEWRITER_PAUSE_BEFORE_ERASE = exports.TYPEWRITER_PAUSE_BEFORE_ERASE = 2000; // Pause before starting to erase text
var TYPEWRITER_ERASE_DELAY = exports.TYPEWRITER_ERASE_DELAY = 40; // Delay between erasing each character
var TYPEWRITER_CYCLE_DELAY = exports.TYPEWRITER_CYCLE_DELAY = 500; // Delay before starting next cycle
var TYPEWRITER_TYPED_AND_DELETED_DELAY = exports.TYPEWRITER_TYPED_AND_DELETED_DELAY = 1500; // Delay before starting animation after user typed and deleted
var nodeTypesWithLongPlaceholderText = exports.nodeTypesWithLongPlaceholderText = ['expand', 'panel'];
var nodeTypesWithShortPlaceholderText = exports.nodeTypesWithShortPlaceholderText = ['tableCell', 'tableHeader'];
var nodeTypesWithSyncBlockPlaceholderText = exports.nodeTypesWithSyncBlockPlaceholderText = ['bodiedSyncBlock'];