project-standalo-note-to-app/.workflow/versions/v001/contexts/component_app_iframe_viewer...

49 lines
1.1 KiB
YAML

task_id: task_create_component_app_iframe_viewer
entity_id: component_app_iframe_viewer
generated_at: '2025-12-19T06:08:12.200530'
workflow_version: v001
target:
type: component
definition:
id: component_app_iframe_viewer
name: AppIframeViewer
props:
- name: htmlContent
type: string
required: true
description: HTML content to render in iframe
- name: title
type: string
required: true
description: App title for accessibility
events:
- name: onLoadComplete
payload: void
description: Fired when iframe finishes loading
uses_apis: []
uses_components: []
internal_state:
- isLoading
- iframeRef
variants:
- default
- fullscreen
related:
models: []
apis: []
components: []
dependencies:
entity_ids: []
definitions: []
files:
to_create:
- app/components/AppIframeViewer.tsx
reference: []
acceptance:
- criterion: Component renders without errors
verification: Import and render in test
- criterion: Props are typed correctly
verification: TypeScript compilation
- criterion: Events fire correctly
verification: Test event handlers