{"version":3,"file":"sessionTranscriptRenderer.cjs","names":[],"sources":["../../../src/web/lib/sessionTranscriptRenderer.ts"],"sourcesContent":["import type { ThreadViewOptions } from '@agimon-ai/po-core/web';\nimport type { ReactNode } from 'react';\n\ntype SessionTranscriptRenderer = (sessionId: string, options?: ThreadViewOptions) => ReactNode;\n\nlet render: SessionTranscriptRenderer | undefined;\n\n/** Binds the host's conversation view of another session without exposing host stores to plugins. */\nexport function bindSessionTranscriptRenderer(renderer: SessionTranscriptRenderer): void {\n  render = renderer;\n}\n\nexport function releaseSessionTranscriptRenderer(): void {\n  render = undefined;\n}\n\n/** The bound conversation view, or nothing before the app mounts and in unit tests. */\nexport function renderSessionTranscript(sessionId: string, options?: ThreadViewOptions): ReactNode {\n  return render?.(sessionId, options) ?? null;\n}\n"],"mappings":";AAKA,IAAI;;AAGJ,SAAgB,8BAA8B,UAA2C;CACvF,SAAS;AACX;AAEA,SAAgB,mCAAyC;CACvD,SAAS,KAAA;AACX;;AAGA,SAAgB,wBAAwB,WAAmB,SAAwC;CACjG,OAAO,SAAS,WAAW,OAAO,KAAK;AACzC"}