AddImageOptions: {
    center?: boolean;
    evented?: boolean;
    itemGroup?:
        | "Designs"
        | "Images"
        | "Text"
        | "Tools"
        | "Other";
    left?: number;
    metadata?: unknown;
    mode?: string;
    name?: string;
    previewUrl?: string;
    price?: AsukaPriceInput;
    registerUploadedAsset?: boolean;
    selectable?: boolean;
    source?: string;
    top?: number;
    upload?: AsukaUploadModuleConfig;
}

Type declaration

  • Optionalcenter?: boolean
  • Optionalevented?: boolean
  • OptionalitemGroup?:
        | "Designs"
        | "Images"
        | "Text"
        | "Tools"
        | "Other"

    Logical grouping for UX/features (layers filtering, colors scope, etc.)

  • Optionalleft?: number
  • Optionalmetadata?: unknown

    Optional metadata stored with the Upload module asset.

  • Optionalmode?: string

    Optional media/input mode propagated to the Upload module list.

  • Optionalname?: string

    Optional display name for URL-based uploads.

  • OptionalpreviewUrl?: string

    Optional preview URL for URL-based uploads.

  • Optionalprice?: AsukaPriceInput

    Optional base price for the created object (used by the pricing engine).

  • OptionalregisterUploadedAsset?: boolean

    Set to false to avoid registering URL adds in the shared Upload module list.

  • Optionalselectable?: boolean
  • Optionalsource?: string

    Logical upload source. When set on URL adds, the URL is also registered in the Upload module list.

  • Optionaltop?: number
  • Optionalupload?: AsukaUploadModuleConfig

    Optional one-off upload configuration override for file-based adds.