/** * UI Utilities Module * Toast notifications (kept for backward compatibility) * * Other utilities have been moved to separate modules: * - Context menu: context-menu.js * - File upload: file-upload.js * - Dark mode: dark-mode.js * - Collection selector: collection-selector.js * - Editor drop handler: editor-drop-handler.js */ /** * Show toast notification * @param {string} message - The message to display * @param {string} type - The notification type (info, success, error, warning, danger, primary) */ function showNotification(message, type = 'info') { const container = document.getElementById('toastContainer') || createToastContainer(); const toast = document.createElement('div'); const bgClass = type === 'error' ? 'danger' : type === 'success' ? 'success' : type === 'warning' ? 'warning' : 'primary'; toast.className = `toast align-items-center text-white bg-${bgClass} border-0`; toast.setAttribute('role', 'alert'); toast.innerHTML = `