UNPKG

@mitcsutt/kiln-dnd

Version:

Kiln drag and drop: sortable lists, boards, drop zones and grid layouts with one keyboard model and one announcer, rendered through kiln-ui

29 lines (28 loc) • 775 B
//#region src/testing/index.ts function e() { if (typeof window > "u") return; let e = globalThis; e.ResizeObserver ??= class { observe() {} unobserve() {} disconnect() {} }, typeof window.matchMedia != "function" && (window.matchMedia = (e) => ({ matches: !1, media: e, onchange: null, addListener: () => void 0, removeListener: () => void 0, addEventListener: () => void 0, removeEventListener: () => void 0, dispatchEvent: () => !1 })); let t = HTMLElement.prototype; t.showPopover ??= function() {}, t.hidePopover ??= function() {}; let n = Element.prototype; n.getAnimations ??= () => []; let r = Document.prototype; r.elementFromPoint ??= () => null; } //#endregion export { e as stubDndBrowserApis }; //# sourceMappingURL=index.js.map