UNPKG

@atlaskit/editor-plugin-card

Version:

Card plugin for @atlaskit/editor-core

18 lines (17 loc) • 748 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isIntersectionObserverSupported = void 0; /** * Mirrors the internal check in `@atlaskit/smart-card` * (`src/utils/is-intersection-observer-supported.tsx`), which is not part of that package's * public API and so cannot be imported here. * * Smart Card only forwards its `container` prop to `react-lazily-render` when * `IntersectionObserver` is unavailable. When it is available the prop is never read, so the * caller can skip resolving a scroll container entirely. */ var isIntersectionObserverSupported = exports.isIntersectionObserverSupported = function isIntersectionObserverSupported() { return typeof IntersectionObserver !== 'undefined'; };