@googleforcreators/story-editor package provides the core Web Stories editor web application. This is a platform-agnostic React component that can be embedded in any web application.
Installation
Basic Usage
The editor is provided as a React component with extensive configuration options:Key Exports
Components
StoryEditor (default export)
The main editor component:Dialog
Dialog component for modals:InterfaceSkeleton
Layout skeleton for the editor interface:Tooltip
Tooltip component:Context Providers
EditorConfigProvider
Provides configuration to the editor:FontContext
Manages font loading and usage:SidebarContext
Manages sidebar state:Utilities
getStoryPropsToSave
Prepares story data for saving:useLoadFontFiles
Hook for loading font files:getInUseFontsForPages
Extracts fonts used across pages:useIsUploadingToStory
Hook to check upload status:Theme & Styling
theme (default export)
The editor theme object:GlobalStyle
Global styles component:focusStyle
Focus style helper:Highlights
Editor highlighting system:Configuration
The editor accepts a comprehensive configuration object:Dependencies
The story editor depends on several other@googleforcreators packages:
@googleforcreators/animation- Animation support@googleforcreators/design-system- UI components@googleforcreators/elements- Element types@googleforcreators/fonts- Font management@googleforcreators/media- Media handling- And more (see package.json for full list)