/**
 * Constants for navigation context storage in tab metadata.
 * Navigation contexts are stored directly in tab metadata instead of sessionStorage,
 * providing automatic cleanup when tabs are closed and better integration with the tab system.
 */

/**
 * Key used to store navigation contexts in tab metadata.
 * Contexts are stored as: tab.metadata[NAVIGATION_CONTEXT_METADATA_KEY][customScope]
 *
 * @example
 * ```typescript
 * // Structure in tab metadata:
 * tab.metadata = {
 *   'navigation-contexts': {
 *     'default': { data: { returnUrl: '/cart' }, createdAt: 123 },
 *     'customer-details': { data: { customerId: 42 }, createdAt: 456 }
 *   }
 * }
 * ```
 */
export const NAVIGATION_CONTEXT_METADATA_KEY = 'navigation-contexts';
