{"version":3,"file":"useGlobalContext.cjs","names":["GLOBAL_CONTEXT"],"sources":["../../src/GlobalContext/useGlobalContext.ts"],"sourcesContent":["import { useContext } from 'react';\nimport { GLOBAL_CONTEXT } from './constants';\nimport type { GlobalContext } from './types';\n\n/**\n * Internal hook that returns the full reactive global context object.\n *\n * Public components should use `getContext` or `setContext` instead. This hook\n * is kept for package internals that need direct access to the provider object.\n *\n * @returns The active Pastweb global context.\n * @internal\n */\nexport function useGlobalContext(): GlobalContext {\n  return useContext(GLOBAL_CONTEXT);\n}\n"],"mappings":";;;;;;;;;;;;;AAaA,SAAgB,mBAAkC;CAChD,QAAA,GAAA,MAAA,WAAA,CAAkBA,gCAAAA,cAAc;AAClC"}