<?php
declare(strict_types=1);

namespace PpPhp\Resources\Vendor\SortableJs;

use PpPhp\Core\Resources\Contracts\ResourcePackInterface;

final class Pack implements ResourcePackInterface
{
    public static function id(): string { return 'sortablejs'; }
    public static function label(): string { return 'SortableJS'; }
    public static function type(): string { return 'vendor'; }
    public static function version(): string { return '1.0.0'; }

    public static function metadata(): array
    {
        return ['library' => 'sortablejs', 'cdn' => true];
    }

    public static function assets(): array
    {
        return ['js' => ['https://cdn.jsdelivr.net/npm/sortablejs@1.15.2/Sortable.min.js']];
    }
}
