UNPKG

@zendesk/react-measure-timing-hooks

Version:

react hooks for measuring time to interactive and time to render of components

49 lines 1.61 kB
"use strict"; /** * Copyright Zendesk, Inc. * * Use of this source code is governed under the Apache License, Version 2.0 * found at http://www.apache.org/licenses/LICENSE-2.0. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.DEFAULT_TIMEOUT_MS = exports.DEFAULT_DEBOUNCE_MS = exports.DEFAULT_GARBAGE_COLLECT_MS = exports.OBSERVER_SOURCE = exports.MARKER = exports.ACTION_TYPE = exports.INFORMATIVE_STAGES = exports.ERROR_STAGES = exports.DEFAULT_LOADING_STAGES = exports.DEFAULT_STAGES = void 0; exports.DEFAULT_STAGES = { INACTIVE: 'inactive', LOADING: 'loading', LOADING_MORE: 'loading-more', ERROR: 'error', ERROR_BOUNDARY: 'error-caught-by-error-boundary', READY: 'ready', }; exports.DEFAULT_LOADING_STAGES = [ exports.DEFAULT_STAGES.LOADING, exports.DEFAULT_STAGES.LOADING_MORE, ]; exports.ERROR_STAGES = [ exports.DEFAULT_STAGES.ERROR, exports.DEFAULT_STAGES.ERROR_BOUNDARY, ]; exports.INFORMATIVE_STAGES = { INITIAL: 'initial', TIMEOUT: 'timeout', DEPENDENCY_CHANGE: 'dependency-change', INTERACTIVE: 'interactive', RENDERED: 'rendered', INCOMPLETE_RENDER: 'incomplete-render', }; exports.ACTION_TYPE = { RENDER: 'render', UNRESPONSIVE: 'unresponsive', STAGE_CHANGE: 'stage-change', DEPENDENCY_CHANGE: 'dependency-change', }; exports.MARKER = { START: 'start', END: 'end', POINT: 'point', }; exports.OBSERVER_SOURCE = 'observer'; exports.DEFAULT_GARBAGE_COLLECT_MS = 2_000; exports.DEFAULT_DEBOUNCE_MS = 500; exports.DEFAULT_TIMEOUT_MS = 45_000; //# sourceMappingURL=constants.js.map