<?php

return [
    /*
    |--------------------------------------------------------------------------
    | Twill Media Library configuration
    |--------------------------------------------------------------------------
    |
    | This allows you to provide the package with your configuration
    | for the media library disk, endpoint type and others options depending
    | on your endpoint type.
    |
    | Supported endpoint types: 'local' and 's3'.
    | Set cascade_delete to true to delete files on the storage too when
    | deleting from the media library.
    | If using the 'local' endpoint type, define a 'local_path' to store files.
    | Supported image services:
    | - 'A17\Twill\Services\MediaLibrary\Imgix'
    | - 'A17\Twill\Services\MediaLibrary\TwicPics'
    | - 'A17\Twill\Services\MediaLibrary\Local'
    |
     */
    'disk' => env('MEDIA_LIBRARY_DISK', 'twill_media_library'),
    'endpoint_type' => env('MEDIA_LIBRARY_ENDPOINT_TYPE', 'local'),
    'cascade_delete' => env('MEDIA_LIBRARY_CASCADE_DELETE', false),
    'local_path' => env('MEDIA_LIBRARY_LOCAL_PATH', 'uploads'),
    'image_service' => env('MEDIA_LIBRARY_IMAGE_SERVICE', 'A17\Twill\Services\MediaLibrary\Glide'),
    'acl' => env('MEDIA_LIBRARY_ACL', 'private'),
    'filesize_limit' => env('MEDIA_LIBRARY_FILESIZE_LIMIT', 50),
    'allowed_extensions' => ['svg', 'jpg', 'gif', 'png', 'jpeg'],
    'init_alt_text_from_filename' => true,
    'prefix_uuid_with_local_path' => config('twill.file_library.prefix_uuid_with_local_path', false),
    'translated_form_fields' => false,
    'show_file_name' => false,
    /*
    |--------------------------------------------------------------------------
    | Wysiwyg options for the caption field.
    |--------------------------------------------------------------------------
    */
    'media_caption_use_wysiwyg' => false,
    'media_caption_wysiwyg_options' => [
        'modules' => [
            'toolbar' => [
                'bold',
                'italic',
            ],
        ],
    ],
];
