addOnUISdk.constants
A set of constants used throughout the Add-on UI SDK for type-safe development. See the Add-on UI SDK Constants Guide for practical examples and usage patterns.
Most constants support dual access (import statement OR addOnUISdk.constants.*), but four constants require an import statement: AppEvent, ColorPickerEvent, SupportedMimeTypes, and EntrypointType.
Import Quick Reference
Dual Access (Most Constants)
You can access these constants in two ways:
// Option 1: Import statement (recommended)
import { Range, RenditionFormat, Variant } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// Option 2: Constants object
addOnUISdk.constants.Range.currentPage
Import Required (Four Constants Only)
These four constants must be imported with an import statement and will return undefined if accessed through addOnUISdk.constants.*:
AppEvent- Events dispatched by the Add-on SDKColorPickerEvent- Color picker custom eventsSupportedMimeTypes- MIME types for PDF conversionEntrypointType- Add-on entry point types
import { AppEvent, ColorPickerEvent, SupportedMimeTypes, EntrypointType } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
Constants Reference
Complete technical specifications organized by functional category.
BitRate
import { BitRate } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.BitRate
Bit rate values in bits per second for video renditions.
mbps44000000mbps88000000mbps1010000000mbps1212000000mbps1515000000mbps2525000000mbps5050000000BleedUnit
import { BleedUnit } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.BleedUnit
Units for page bleed measurements.
inmmButtonType
import { ButtonType } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.ButtonType
Types of buttons that can be pressed in modal dialogs.
primarysecondarycancelcloseAppEvent
import { AppEvent } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// ⚠️ Named export only - NOT available in addOnUISdk.constants
Events dispatched by the Add-on SDK.
themechange"themechange"localechange"localechange"formatchange"formatchange"reset"reset"dragstart"dragstart"dragend"dragend"dragcancel"dragcancel"documentIdAvailable"documentIdAvailable"documentLinkAvailable"documentLinkAvailable"documentPublishedLinkAvailable"documentPublishedLinkAvailable"documentTitleChange"documentTitleChange"documentExportAllowedChange"documentExportAllowedChange"AuthorizationStatus
import { AuthorizationStatus } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.AuthorizationStatus
OAuth authorization status values.
authorizedcancellederrorColorPickerEvent
import { ColorPickerEvent } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// ⚠️ Named export only - NOT available in addOnUISdk.constants
Custom events dispatched by the Color Picker component.
colorChange"colorpicker-color-change"close"colorpicker-close"ColorPickerPlacement
import { ColorPickerPlacement } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.ColorPickerPlacement
Placement options for the color picker popover relative to anchor element.
topbottomleftrightDeviceClass
import { DeviceClass } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.DeviceClass
Device form factors where the add-on is running.
mobiletabletdesktopDialogResultType
import { DialogResultType } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.DialogResultType
Types of modal dialog results.
alertinputcustomEditorPanel
import { EditorPanel } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.EditorPanel
Adobe Express Editor panels that can be opened programmatically.
searchyourStufftemplatesmediatextelementsgridsbrandsaddOnsElementsTabs
import { ElementsTabs } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.ElementsTabs
Tabs within the Editor's Elements panel.
designAssetsbackgroundsshapesstockIconschartsEntrypointType
import { EntrypointType } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// ⚠️ Named export only - NOT available in addOnUISdk.constants
Types of add-on entry points (currently only panel is supported).
panelFieldType
import { FieldType } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.FieldType
Input field types supported in Simple Dialog.
textFileSizeLimitUnit
import { FileSizeLimitUnit } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.FileSizeLimitUnit
Units for file size limits.
KBMBFrameRate
import { FrameRate } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.FrameRate
Frame rate values in frames per second for video renditions.
fps23_97623.976fps2424fps2525fps29_9729.97fps3030fps6060LinkOptions
import { LinkOptions } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.LinkOptions
Types of document links that can be generated.
documentpublishedMediaTabs
import { MediaTabs } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.MediaTabs
Tabs within the Editor's Media panel.
videoaudiophotosPanelActionType
import { PanelActionType } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.PanelActionType
Types of actions that can be performed on Editor panels.
searchnavigatePlatformEnvironment
import { PlatformEnvironment } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.PlatformEnvironment
Environment where the add-on is running.
appwebPlatformType
import { PlatformType } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.PlatformType
Specific platform/operating system where the add-on is running.
iOSiPadOSchromeOSandroidchromeBrowserfirefoxBrowseredgeBrowsersamsungBrowsersafariBrowserunknownRange
import { Range } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.Range
Page range options for document renditions.
currentPageentireDocumentspecificPagesRenditionFormat
import { RenditionFormat } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.RenditionFormat
Output formats for document renditions.
jpg"image/jpeg"png"image/png"mp4"video/mp4"pdf"application/pdf"pptx"application/vnd.openxmlformats-officedocument.presentationml.presentation"RenditionIntent
import { RenditionIntent } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.RenditionIntent
Intent for creating renditions (affects optimization).
previewexportprintRenditionType
import { RenditionType } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.RenditionType
Type of rendition being created.
pageRuntimeType
import { RuntimeType } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.RuntimeType
Runtime type of the entrypoint creating the backend object.
panelindex.html)scriptcode.js)dialogSupportedMimeTypes
import { SupportedMimeTypes } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// ⚠️ Named export only - NOT available in addOnUISdk.constants
MIME types for original source assets that can be converted to PDF.
docxgdocVariant
import { Variant } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.Variant
Dialog variants that determine appearance and behavior.
confirmationinformationwarningdestructiveerrorinputcustomVideoResolution
import { VideoResolution } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OR
addOnUISdk.constants.VideoResolution
Video resolution options for MP4 renditions.
sd480phd720pfhd1080pqhd1440puhd2160pcustomImport Generator
Use these copy-paste ready import statements for common scenarios:
Complete Import (All Constants)
// Import everything (use this if you're unsure)
import addOnUISdk, {
// Import-required constants
AppEvent, ColorPickerEvent, SupportedMimeTypes, EntrypointType,
// Dual-access constants (most common)
Range, RenditionFormat, RenditionIntent, Variant, ButtonType, FieldType,
PlatformType, DeviceClass, PlatformEnvironment, EditorPanel, MediaTabs, ElementsTabs,
AuthorizationStatus, DialogResultType, RuntimeType, BleedUnit, PanelActionType,
ColorPickerPlacement, VideoResolution, FrameRate, BitRate, FileSizeLimitUnit, LinkOptions
} from "https://express.adobe.com/static/add-on-sdk/sdk.js";
By Use Case
// Document Export & Rendering
import addOnUISdk, { Range, RenditionFormat, RenditionIntent } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// Modal Dialogs & UI
import addOnUISdk, { Variant, ButtonType, FieldType, DialogResultType } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// Event Handling (Import Required!)
import addOnUISdk, { AppEvent, ColorPickerEvent } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// Platform Detection
import addOnUISdk, { PlatformType, DeviceClass, PlatformEnvironment } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// Editor Navigation
import addOnUISdk, { EditorPanel, MediaTabs, ElementsTabs, PanelActionType } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// File Types & MIME (Import Required!)
import addOnUISdk, { SupportedMimeTypes } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
// OAuth & Authorization
import addOnUISdk, { AuthorizationStatus } from "https://express.adobe.com/static/add-on-sdk/sdk.js";
Related Resources
- Add-on UI SDK Constants Guide - Practical examples and usage patterns
- Import Quick Reference - Fast lookup for import requirements
- Import Generator - Copy-paste ready import statements