cc-everywhere

Interface: TextToImageAppConfig

Extends

Extended by

Properties

Property
Type
Description
Inherited from
useClientAuth?
boolean
Flag to explicitly opt-in to use client authentication. When true, client access token will be fetched from the partner and used in the module. This is only relevant for Edit Image and Text to Image modules. Should not be passed for other workflows. Default false
BaseAppConfig.useClientAuth
callbacks?
Callbacks
-
BaseAppConfig.callbacks
metaData?
Record<string, string>
Property to pass metadata to target application
BaseAppConfig.metaData
headerBarColorTheme?
ColorTheme
Theming options for the TextToImage Editor header bar. Default ColorTheme.LIGHT
-
editorTitle?
string
Property to configure the title
-
promptText?
string
-
-
promptInputPlaceholder?
string
Placeholder text for the prompt input field. This text will be displayed in the input field when it is empty, guiding users on what to enter.
-
imageDimensions?
ImageDimensions
The dimensions of the image that the user can generate. If provided, the user will be restricted to generating images of the specified dimensions.
-
imageStyleReference?
Asset
Asset to be passed as style reference for generating images
-
imageCompositionReference?
Asset
Asset to be passed as composition reference for generating images
-
appVersion?
TextToImageAppVersion
Specifies the version of the Generate Image experience to be enabled. This setting allows the selection between the older and the newer interface version. When set to the latest version (V2), users will get access to the updated interface and features. By default, the older experience (V1) is displayed. Enabling the latest version introduces the following key features: - Enhanced User Interface: Redesigned with a new Carousel and Grid view. - Community Wall: An endless collection of generated images with prompts that users can select from to kickstart their image generation journey. - Fast Mode: Images can be generated faster with lesser details, great for simple topics, backgrounds, most illustrations, and close portraits. - Improved Prompt Bar: Includes prompt suggestions for a better user experience. - Rich Previews: Provides a more interactive and engaging preview experience. - And more! Default V1
-
editDropdownOptions?
EditDropdownOptionConfig[]
Options to be passed for Edit dropdown. NOTE: This property is supported only in the new Generate Image experience. Default [ { option: EditFurtherIntent.APPLY_ADJUSTMENT }, { option: EditFurtherIntent.APPLY_EFFECTS }, { option: EditFurtherIntent.REMOVE_BACKGROUND }, { option: EditFurtherIntent.REMOVE_OBJECT }, { option: EditFurtherIntent.INSERT_OBJECT } ]
-
publishConfig?
PublishConfig
Config to be set for Publish action. NOTE: This property is supported only in the new Generate Image experience. Default { * id: "saveToHostApp", * label: "Save", * outputType: "base64" * }
-
thumbnailOptions?
ThumbnailOption[]
Options passed to be displayed on the thumbnail. NOTE: This property is supported only in the new Generate Image experience. Default [ ThumbnailOption.EDIT_DROPDOWN, ThumbnailOption.RICH_PREVIEW ]
-
fastModeConfig?
FastModeConfig
Configuration for enabling or disabling fast mode in the Text to Image module. NOTE: This property is supported only in the new Generate Image experience and when FAST_MODE is set to true in featureConfig. Default { * defaultFastModeState: 'off' * }
-
featureConfig?
Partial<Record<TextToImageFeature, boolean>>
Configuration for enabling or disabling specific features in the Text to Image module. NOTE: This property is supported only in the new Generate Image experience. Default { * [TextToImageFeatureType.COMMUNITY_WALL]: false, * [TextToImageFeatureType.FAST_MODE]: false * }
-
communityWallConfig?
CommunityWallConfig
-
-
isPromptSafe?
(prompt) => Promise<PromptSafetyCheckResponse>
Callback to check if a prompt is safe for image generation. This allows partners to implement their own prompt moderation logic.
-
hideFeedbackMenu?
boolean
Flag to hide feedback menu in the header bar. Default false
-
panelSettings?
PanelSettings
Configuration for panel settings. Allows users to customize various options that affect the image generation process.
-