{"version":3,"file":"sessionContext.mjs","sources":["../../../../admin/src/components/CTBSession/sessionContext.ts"],"sourcesContent":["import { createContext } from 'react';\n\n/**\n * Context for managing CTB (Content Type Builder) session tracking.\n *\n * Session Lifecycle:\n * - Created: When CTBSessionProvider mounts\n * - Regenerated: After server restart, when navigating back to CTB from another page\n * - Used: Automatically attached to all CTB tracking events\n *\n * The session ID groups related tracking events together to understand user workflows\n * within a single CTB session.\n */\nexport interface CTBSessionContextValue {\n  /**\n   * Unique identifier for the current CTB session\n   * Format: ctb-{uuid}\n   */\n  sessionId: string | undefined;\n\n  /**\n   * Generates and sets a new session ID\n   * Called when starting a new CTB session (e.g., after navigation or server restart)\n   */\n  regenerateSessionId: () => void;\n}\n\nexport const CTBSessionContext = createContext<CTBSessionContextValue | null>(null);\n"],"names":["CTBSessionContext","createContext"],"mappings":";;AA2BO,MAAMA,iBAAAA,GAAoBC,aAAAA,CAA6C,IAAA;;;;"}