Edit in GitHubLog an issue

Shared Types

Asset

Represents an asset that can be loaded into a full editor component, or loaded in for an image quick action.

PropertyValue(s)Description
type
'image'
Type of asset (image)
dataType
'base64'
Type of data representation (base64 only right now)
data
string
Base 64 rendition of image asset

Callbacks

All the callbacks are optional and return void.

PropertyCallback FunctionDescription
onCancel
() => {}
Triggered when user closes the modal
onError
() => {}
Triggered upon error with associated error code
onLoadStart
() => {}
Triggered once modal begins to load
onLoad
() => {}
Triggered once modal is loaded
onPublishStart
() => {}
Triggered when "Publish"/"Download" is clicked
onPublish
Triggered when publish/download is complete

PublishParams

Asset-related information received with onPublish callback.

PropertyDescription
projectId
string generated for identifying the project
asset
Resulting asset: OutputAsset

QuickActionPublishParams

Asset-related information received with onPublish callback in quick actions.

PropertyDescription
projectId
string generated for identifying the project
asset
Resulting asset: OutputAsset
exportButtonId
id passed in the CustomExportButton at time of invoking openQuickAction

CCXOutputParams

All properties are optional. Allows you to define data type and file type of output asset.

PropertyValueDescription
fileType
'jpeg', 'png', 'mp4'
Output asset file type
outputType
'base64'
Output data type

ModalParams

All properties are optional. Allows you to define the UI constraints of the modal.

PropertyType/Value
parentElementId
string
size
padding
number
borderRadius
number

OutputAsset

Passed to the onPublish callback in PublishParams. Extends the Asset type with 3 additional properties.

PropertyValue(s)Description
type
'image', 'video'
Type of asset (image or video)
dataType
'base64'
Type of data representation
data
string
Base 64 rendition of video/image asset
fileType
'jpeg', 'png', 'mp4'
Type of output asset
(optional) fileName
string
Name of output asset
(optional) size
Dimensions of output asset

Size

Allows you to define the canvas size of the project created in the full editor.

PropertyValueDescription
width
number
minimum value = 0
height
number
minimum value = 0
unit
'px'/'in'/'mm'
pixels/inches/millimeters
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.