23 lines
679 B
JavaScript
23 lines
679 B
JavaScript
|
|
/**
|
||
|
|
* Legacy wrapper for DocumentControls
|
||
|
|
*
|
||
|
|
* This file provides backward compatibility for tests that reference
|
||
|
|
* DocumentControlsLegacy. It simply re-exports the current DocumentControls
|
||
|
|
* implementation with the legacy name.
|
||
|
|
*/
|
||
|
|
|
||
|
|
const { DocumentControls } = require('./document-controls.js');
|
||
|
|
|
||
|
|
// Re-export as legacy name for backward compatibility
|
||
|
|
const DocumentControlsLegacy = DocumentControls;
|
||
|
|
|
||
|
|
// Export for use in tests and other modules
|
||
|
|
if (typeof module !== 'undefined' && module.exports) {
|
||
|
|
module.exports = { DocumentControlsLegacy };
|
||
|
|
}
|
||
|
|
|
||
|
|
// Export for browser use
|
||
|
|
if (typeof window !== 'undefined') {
|
||
|
|
window.DocumentControlsLegacy = DocumentControls;
|
||
|
|
}
|