diff --git a/composer.json b/composer.json index a22afc4..4a6959c 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,8 @@ "league/commonmark": "^1.5", "calebporzio/sushi": "^2.1", "spatie/yaml-front-matter": "^2.0", - "unicorn-fail/emoji": "1.0.x-dev" + "unicorn-fail/emoji": "1.0.x-dev", + "arkecosystem/ui": "^2.36" }, "require-dev": { "friendsofphp/php-cs-fixer": "^2.18", diff --git a/composer.lock b/composer.lock index 6679433..fd4e259 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,137 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6dad5f292f9feedc34d4517a61eea1a4", + "content-hash": "dd5aa102d56a66b1de701d7a64adecb0", "packages": [ + { + "name": "arkecosystem/ui", + "version": "2.36.0", + "source": { + "type": "git", + "url": "https://github.com/ArkEcosystem/laravel-ui.git", + "reference": "cff871eec30177698d1024296e986a822387e10d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ArkEcosystem/laravel-ui/zipball/cff871eec30177698d1024296e986a822387e10d", + "reference": "cff871eec30177698d1024296e986a822387e10d", + "shasum": "" + }, + "require": { + "google/recaptcha": "^1.2", + "illuminate/bus": "^7.0|^8.0", + "illuminate/http": "^7.0|^8.0", + "illuminate/mail": "^7.0|^8.0", + "illuminate/support": "^7.0|^8.0", + "livewire/livewire": "^2.0", + "php": "^7.4|^8.0", + "pragmarx/google2fa-laravel": "^1.3", + "ruafozy/mersenne-twister": "^1.3", + "spatie/laravel-flash": "^1.7", + "spatie/laravel-schemaless-attributes": "^1.8" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.16", + "fzaninotto/faker": "^1.9.1", + "graham-campbell/analyzer": "^3.0", + "mockery/mockery": "^1.3.1", + "nunomaduro/larastan": "^0.6.4", + "nunomaduro/laravel-mojito": "^0.2.6", + "pestphp/pest": "^0.3.0", + "pestphp/pest-plugin-faker": "^0.3.0", + "pestphp/pest-plugin-laravel": "^0.3.0", + "pestphp/pest-plugin-livewire": "^0.3.0", + "phpunit/phpunit": "^9.3", + "psalm/plugin-laravel": "^1.4", + "rector/rector": "^0.8.14", + "vimeo/psalm": "^3.16" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "ARKEcosystem\\UserInterface\\UserInterfaceServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "ARKEcosystem\\UserInterface\\": "src/" + }, + "files": [ + "src/helpers.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "ItsANameToo", + "email": "itsanametoo@protonmail.com" + } + ], + "description": "User-Interface Scaffolding for Laravel. Powered by TailwindCSS.", + "support": { + "issues": "https://github.com/ArkEcosystem/laravel-ui/issues", + "source": "https://github.com/ArkEcosystem/laravel-ui/tree/2.36.0" + }, + "time": "2021-04-12T15:35:21+00:00" + }, + { + "name": "bacon/bacon-qr-code", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/Bacon/BaconQrCode.git", + "reference": "3e9d791b67d0a2912922b7b7c7312f4b37af41e4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Bacon/BaconQrCode/zipball/3e9d791b67d0a2912922b7b7c7312f4b37af41e4", + "reference": "3e9d791b67d0a2912922b7b7c7312f4b37af41e4", + "shasum": "" + }, + "require": { + "dasprid/enum": "^1.0.3", + "ext-iconv": "*", + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "phly/keep-a-changelog": "^1.4", + "phpunit/phpunit": "^7 | ^8 | ^9", + "squizlabs/php_codesniffer": "^3.4" + }, + "suggest": { + "ext-imagick": "to generate QR code images" + }, + "type": "library", + "autoload": { + "psr-4": { + "BaconQrCode\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Ben Scholzen 'DASPRiD'", + "email": "mail@dasprids.de", + "homepage": "https://dasprids.de/", + "role": "Developer" + } + ], + "description": "BaconQrCode is a QR code generator for PHP.", + "homepage": "https://github.com/Bacon/BaconQrCode", + "support": { + "issues": "https://github.com/Bacon/BaconQrCode/issues", + "source": "https://github.com/Bacon/BaconQrCode/tree/2.0.3" + }, + "time": "2020-10-30T02:02:47+00:00" + }, { "name": "brick/math", "version": "0.9.2", @@ -115,6 +244,53 @@ ], "time": "2020-11-02T18:15:45+00:00" }, + { + "name": "dasprid/enum", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/DASPRiD/Enum.git", + "reference": "5abf82f213618696dda8e3bf6f64dd042d8542b2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/DASPRiD/Enum/zipball/5abf82f213618696dda8e3bf6f64dd042d8542b2", + "reference": "5abf82f213618696dda8e3bf6f64dd042d8542b2", + "shasum": "" + }, + "require-dev": { + "phpunit/phpunit": "^7 | ^8 | ^9", + "squizlabs/php_codesniffer": "^3.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "DASPRiD\\Enum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Ben Scholzen 'DASPRiD'", + "email": "mail@dasprids.de", + "homepage": "https://dasprids.de/", + "role": "Developer" + } + ], + "description": "PHP 7.1 enum implementation", + "keywords": [ + "enum", + "map" + ], + "support": { + "issues": "https://github.com/DASPRiD/Enum/issues", + "source": "https://github.com/DASPRiD/Enum/tree/1.0.3" + }, + "time": "2020-10-02T16:03:48+00:00" + }, { "name": "dflydev/dot-access-data", "version": "v2.0.0", @@ -485,6 +661,58 @@ ], "time": "2020-12-29T14:50:06+00:00" }, + { + "name": "google/recaptcha", + "version": "1.2.4", + "source": { + "type": "git", + "url": "https://github.com/google/recaptcha.git", + "reference": "614f25a9038be4f3f2da7cbfd778dc5b357d2419" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/google/recaptcha/zipball/614f25a9038be4f3f2da7cbfd778dc5b357d2419", + "reference": "614f25a9038be4f3f2da7cbfd778dc5b357d2419", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.2.20|^2.15", + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^4.8.36|^5.7.27|^6.59|^7.5.11" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "autoload": { + "psr-4": { + "ReCaptcha\\": "src/ReCaptcha" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "Client library for reCAPTCHA, a free service that protects websites from spam and abuse.", + "homepage": "https://www.google.com/recaptcha/", + "keywords": [ + "Abuse", + "captcha", + "recaptcha", + "spam" + ], + "support": { + "forum": "https://groups.google.com/forum/#!forum/recaptcha", + "issues": "https://github.com/google/recaptcha/issues", + "source": "https://github.com/google/recaptcha" + }, + "time": "2020-03-31T17:50:54+00:00" + }, { "name": "graham-campbell/markdown", "version": "v13.1.1", @@ -1050,6 +1278,78 @@ ], "time": "2021-01-18T20:58:21+00:00" }, + { + "name": "livewire/livewire", + "version": "v2.4.0", + "source": { + "type": "git", + "url": "https://github.com/livewire/livewire.git", + "reference": "8055af7730938cd607616fde122825ed960a9b71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/livewire/livewire/zipball/8055af7730938cd607616fde122825ed960a9b71", + "reference": "8055af7730938cd607616fde122825ed960a9b71", + "shasum": "" + }, + "require": { + "illuminate/database": "^7.0|^8.0", + "illuminate/support": "^7.0|^8.0", + "illuminate/validation": "^7.0|^8.0", + "php": "^7.2.5|^8.0", + "symfony/http-kernel": "^5.0" + }, + "require-dev": { + "calebporzio/sushi": "^2.1", + "laravel/framework": "^7.0|^8.0", + "mockery/mockery": "^1.3.1", + "orchestra/testbench": "^5.0|^6.0", + "orchestra/testbench-dusk": "^5.2|^6.0", + "phpunit/phpunit": "^8.4|^9.0", + "psy/psysh": "@stable" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Livewire\\LivewireServiceProvider" + ], + "aliases": { + "Livewire": "Livewire\\Livewire" + } + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Livewire\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Caleb Porzio", + "email": "calebporzio@gmail.com" + } + ], + "description": "A front-end framework for Laravel.", + "support": { + "issues": "https://github.com/livewire/livewire/issues", + "source": "https://github.com/livewire/livewire/tree/v2.4.0" + }, + "funding": [ + { + "url": "https://github.com/calebporzio", + "type": "github" + } + ], + "time": "2021-02-23T17:44:50+00:00" + }, { "name": "monolog/monolog", "version": "2.2.0", @@ -1276,102 +1576,358 @@ }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "MIT" + ], + "authors": [ + { + "name": "Marius Sarca", + "email": "marius.sarca@gmail.com" + }, + { + "name": "Sorin Sarca", + "email": "sarca_sorin@hotmail.com" + } + ], + "description": "A library that can be used to serialize closures (anonymous functions) and arbitrary objects.", + "homepage": "https://opis.io/closure", + "keywords": [ + "anonymous functions", + "closure", + "function", + "serializable", + "serialization", + "serialize" + ], + "support": { + "issues": "https://github.com/opis/closure/issues", + "source": "https://github.com/opis/closure/tree/3.6.1" + }, + "time": "2020-11-07T02:01:34+00:00" + }, + { + "name": "paragonie/constant_time_encoding", + "version": "v2.4.0", + "source": { + "type": "git", + "url": "https://github.com/paragonie/constant_time_encoding.git", + "reference": "f34c2b11eb9d2c9318e13540a1dbc2a3afbd939c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/f34c2b11eb9d2c9318e13540a1dbc2a3afbd939c", + "reference": "f34c2b11eb9d2c9318e13540a1dbc2a3afbd939c", + "shasum": "" + }, + "require": { + "php": "^7|^8" + }, + "require-dev": { + "phpunit/phpunit": "^6|^7|^8|^9", + "vimeo/psalm": "^1|^2|^3|^4" + }, + "type": "library", + "autoload": { + "psr-4": { + "ParagonIE\\ConstantTime\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com", + "role": "Maintainer" + }, + { + "name": "Steve 'Sc00bz' Thomas", + "email": "steve@tobtu.com", + "homepage": "https://www.tobtu.com", + "role": "Original Developer" + } + ], + "description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)", + "keywords": [ + "base16", + "base32", + "base32_decode", + "base32_encode", + "base64", + "base64_decode", + "base64_encode", + "bin2hex", + "encoding", + "hex", + "hex2bin", + "rfc4648" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/constant_time_encoding/issues", + "source": "https://github.com/paragonie/constant_time_encoding" + }, + "time": "2020-12-06T15:14:20+00:00" + }, + { + "name": "phpoption/phpoption", + "version": "1.7.5", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "994ecccd8f3283ecf5ac33254543eb0ac946d525" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/994ecccd8f3283ecf5ac33254543eb0ac946d525", + "reference": "994ecccd8f3283ecf5ac33254543eb0ac946d525", + "shasum": "" + }, + "require": { + "php": "^5.5.9 || ^7.0 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "phpunit/phpunit": "^4.8.35 || ^5.7.27 || ^6.5.6 || ^7.0 || ^8.0 || ^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.7-dev" + } + }, + "autoload": { + "psr-4": { + "PhpOption\\": "src/PhpOption/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com" + }, + { + "name": "Graham Campbell", + "email": "graham@alt-three.com" + } + ], + "description": "Option Type for PHP", + "keywords": [ + "language", + "option", + "php", + "type" + ], + "support": { + "issues": "https://github.com/schmittjoh/php-option/issues", + "source": "https://github.com/schmittjoh/php-option/tree/1.7.5" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2020-07-20T17:29:33+00:00" + }, + { + "name": "pragmarx/google2fa", + "version": "8.0.0", + "source": { + "type": "git", + "url": "https://github.com/antonioribeiro/google2fa.git", + "reference": "26c4c5cf30a2844ba121760fd7301f8ad240100b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/antonioribeiro/google2fa/zipball/26c4c5cf30a2844ba121760fd7301f8ad240100b", + "reference": "26c4c5cf30a2844ba121760fd7301f8ad240100b", + "shasum": "" + }, + "require": { + "paragonie/constant_time_encoding": "^1.0|^2.0", + "php": "^7.1|^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.18", + "phpunit/phpunit": "^7.5.15|^8.5|^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "PragmaRX\\Google2FA\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Antonio Carlos Ribeiro", + "email": "acr@antoniocarlosribeiro.com", + "role": "Creator & Designer" + } + ], + "description": "A One Time Password Authentication package, compatible with Google Authenticator.", + "keywords": [ + "2fa", + "Authentication", + "Two Factor Authentication", + "google2fa" + ], + "support": { + "issues": "https://github.com/antonioribeiro/google2fa/issues", + "source": "https://github.com/antonioribeiro/google2fa/tree/8.0.0" + }, + "time": "2020-04-05T10:47:18+00:00" + }, + { + "name": "pragmarx/google2fa-laravel", + "version": "v1.4.1", + "source": { + "type": "git", + "url": "https://github.com/antonioribeiro/google2fa-laravel.git", + "reference": "f9014fd7ea36a1f7fffa233109cf59b209469647" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/antonioribeiro/google2fa-laravel/zipball/f9014fd7ea36a1f7fffa233109cf59b209469647", + "reference": "f9014fd7ea36a1f7fffa233109cf59b209469647", + "shasum": "" + }, + "require": { + "laravel/framework": ">=5.4.36|^8.0", + "php": ">=7.0", + "pragmarx/google2fa-qrcode": "^1.0" + }, + "require-dev": { + "orchestra/testbench": "3.4.*|3.5.*|3.6.*|3.7.*|4.*|5.*|6.*", + "phpunit/phpunit": "~5|~6|~7|~8" + }, + "suggest": { + "bacon/bacon-qr-code": "Required to generate inline QR Codes.", + "pragmarx/recovery": "Generate recovery codes." + }, + "type": "library", + "extra": { + "component": "package", + "frameworks": [ + "Laravel" + ], + "branch-alias": { + "dev-master": "0.2-dev" + }, + "laravel": { + "providers": [ + "PragmaRX\\Google2FALaravel\\ServiceProvider" + ], + "aliases": { + "Google2FA": "PragmaRX\\Google2FALaravel\\Facade" + } + } + }, + "autoload": { + "psr-4": { + "PragmaRX\\Google2FALaravel\\": "src/", + "PragmaRX\\Google2FALaravel\\Tests\\": "tests/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" ], "authors": [ { - "name": "Marius Sarca", - "email": "marius.sarca@gmail.com" - }, - { - "name": "Sorin Sarca", - "email": "sarca_sorin@hotmail.com" + "name": "Antonio Carlos Ribeiro", + "email": "acr@antoniocarlosribeiro.com", + "role": "Creator & Designer" } ], - "description": "A library that can be used to serialize closures (anonymous functions) and arbitrary objects.", - "homepage": "https://opis.io/closure", + "description": "A One Time Password Authentication package, compatible with Google Authenticator.", "keywords": [ - "anonymous functions", - "closure", - "function", - "serializable", - "serialization", - "serialize" + "Authentication", + "Two Factor Authentication", + "google2fa", + "laravel" ], "support": { - "issues": "https://github.com/opis/closure/issues", - "source": "https://github.com/opis/closure/tree/3.6.1" + "issues": "https://github.com/antonioribeiro/google2fa-laravel/issues", + "source": "https://github.com/antonioribeiro/google2fa-laravel/tree/v1.4.1" }, - "time": "2020-11-07T02:01:34+00:00" + "time": "2020-09-20T21:01:48+00:00" }, { - "name": "phpoption/phpoption", - "version": "1.7.5", + "name": "pragmarx/google2fa-qrcode", + "version": "v1.0.3", "source": { "type": "git", - "url": "https://github.com/schmittjoh/php-option.git", - "reference": "994ecccd8f3283ecf5ac33254543eb0ac946d525" + "url": "https://github.com/antonioribeiro/google2fa-qrcode.git", + "reference": "fd5ff0531a48b193a659309cc5fb882c14dbd03f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/994ecccd8f3283ecf5ac33254543eb0ac946d525", - "reference": "994ecccd8f3283ecf5ac33254543eb0ac946d525", + "url": "https://api.github.com/repos/antonioribeiro/google2fa-qrcode/zipball/fd5ff0531a48b193a659309cc5fb882c14dbd03f", + "reference": "fd5ff0531a48b193a659309cc5fb882c14dbd03f", "shasum": "" }, "require": { - "php": "^5.5.9 || ^7.0 || ^8.0" + "bacon/bacon-qr-code": "~1.0|~2.0", + "php": ">=5.4", + "pragmarx/google2fa": ">=4.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.4.1", - "phpunit/phpunit": "^4.8.35 || ^5.7.27 || ^6.5.6 || ^7.0 || ^8.0 || ^9.0" + "khanamiryan/qrcode-detector-decoder": "^1.0", + "phpunit/phpunit": "~4|~5|~6|~7" }, "type": "library", "extra": { + "component": "package", "branch-alias": { - "dev-master": "1.7-dev" + "dev-master": "1.0-dev" } }, "autoload": { "psr-4": { - "PhpOption\\": "src/PhpOption/" + "PragmaRX\\Google2FAQRCode\\": "src/", + "PragmaRX\\Google2FAQRCode\\Tests\\": "tests/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "Apache-2.0" + "MIT" ], "authors": [ { - "name": "Johannes M. Schmitt", - "email": "schmittjoh@gmail.com" - }, - { - "name": "Graham Campbell", - "email": "graham@alt-three.com" + "name": "Antonio Carlos Ribeiro", + "email": "acr@antoniocarlosribeiro.com", + "role": "Creator & Designer" } ], - "description": "Option Type for PHP", + "description": "QR Code package for Google2FA", "keywords": [ - "language", - "option", - "php", - "type" + "2fa", + "Authentication", + "Two Factor Authentication", + "google2fa", + "qr code", + "qrcode" ], "support": { - "issues": "https://github.com/schmittjoh/php-option/issues", - "source": "https://github.com/schmittjoh/php-option/tree/1.7.5" + "issues": "https://github.com/antonioribeiro/google2fa-qrcode/issues", + "source": "https://github.com/antonioribeiro/google2fa-qrcode/tree/master" }, - "funding": [ - { - "url": "https://github.com/GrahamCampbell", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", - "type": "tidelift" - } - ], - "time": "2020-07-20T17:29:33+00:00" + "time": "2019-03-20T16:42:58+00:00" }, { "name": "psr/container", @@ -1741,6 +2297,176 @@ ], "time": "2020-08-18T17:17:46+00:00" }, + { + "name": "ruafozy/mersenne-twister", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/ruafozy/php-mersenne-twister.git", + "reference": "83ca113aa1e5f924d3b5f03679b1480063cc7d94" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ruafozy/php-mersenne-twister/zipball/83ca113aa1e5f924d3b5f03679b1480063cc7d94", + "reference": "83ca113aa1e5f924d3b5f03679b1480063cc7d94", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.1.4" + }, + "type": "library", + "autoload": { + "files": [ + "src/mersenne_twister.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Pure-PHP Mersenne Twister", + "homepage": "https://github.com/ruafozy/php-mersenne-twister", + "keywords": [ + "PRNG", + "mersenne", + "random" + ], + "support": { + "issues": "https://github.com/ruafozy/php-mersenne-twister/issues", + "source": "https://github.com/ruafozy/php-mersenne-twister/tree/master" + }, + "time": "2015-02-21T10:26:45+00:00" + }, + { + "name": "spatie/laravel-flash", + "version": "1.8.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-flash.git", + "reference": "e91ad1a63227482d5cd394015f2e4e8a3e427f58" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-flash/zipball/e91ad1a63227482d5cd394015f2e4e8a3e427f58", + "reference": "e91ad1a63227482d5cd394015f2e4e8a3e427f58", + "shasum": "" + }, + "require": { + "illuminate/session": "^6.0|^7.0|^8.0", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "orchestra/testbench": "^4.0|^5.0|^6.0", + "phpunit/phpunit": "^8.0|^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Flash\\": "src" + }, + "files": [ + "src/helpers.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A lightweight package to flash messages", + "homepage": "https://github.com/spatie/laravel-flash", + "keywords": [ + "laravel-flash", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-flash/issues", + "source": "https://github.com/spatie/laravel-flash/tree/1.8.0" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + } + ], + "time": "2020-11-27T07:26:26+00:00" + }, + { + "name": "spatie/laravel-schemaless-attributes", + "version": "1.8.3", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-schemaless-attributes.git", + "reference": "e3037a509683fe7fc0a2681b6f404b90aeffdaf0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-schemaless-attributes/zipball/e3037a509683fe7fc0a2681b6f404b90aeffdaf0", + "reference": "e3037a509683fe7fc0a2681b6f404b90aeffdaf0", + "shasum": "" + }, + "require": { + "illuminate/database": "^5.6|^6.0|^7.0|^8.0", + "illuminate/support": "^5.6|^6.0|^7.0|^8.0", + "php": "^7.3|^8.0" + }, + "require-dev": { + "orchestra/testbench": "^3.6|^4.0|^5.0|^6.0", + "phpunit/phpunit": "^7.0|^8.0|^9.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\SchemalessAttributes\\SchemalessAttributesServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Spatie\\SchemalessAttributes\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Add schemaless attributes to Eloquent models", + "homepage": "https://github.com/spatie/laravel-schemaless-attributes", + "keywords": [ + "laravel-schemaless-attributes", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-schemaless-attributes/issues", + "source": "https://github.com/spatie/laravel-schemaless-attributes/tree/1.8.3" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + } + ], + "time": "2020-11-04T13:21:43+00:00" + }, { "name": "spatie/regex", "version": "1.4.2", @@ -5686,78 +6412,6 @@ }, "time": "2020-05-27T16:41:55+00:00" }, - { - "name": "livewire/livewire", - "version": "v2.4.0", - "source": { - "type": "git", - "url": "https://github.com/livewire/livewire.git", - "reference": "8055af7730938cd607616fde122825ed960a9b71" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/livewire/livewire/zipball/8055af7730938cd607616fde122825ed960a9b71", - "reference": "8055af7730938cd607616fde122825ed960a9b71", - "shasum": "" - }, - "require": { - "illuminate/database": "^7.0|^8.0", - "illuminate/support": "^7.0|^8.0", - "illuminate/validation": "^7.0|^8.0", - "php": "^7.2.5|^8.0", - "symfony/http-kernel": "^5.0" - }, - "require-dev": { - "calebporzio/sushi": "^2.1", - "laravel/framework": "^7.0|^8.0", - "mockery/mockery": "^1.3.1", - "orchestra/testbench": "^5.0|^6.0", - "orchestra/testbench-dusk": "^5.2|^6.0", - "phpunit/phpunit": "^8.4|^9.0", - "psy/psysh": "@stable" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Livewire\\LivewireServiceProvider" - ], - "aliases": { - "Livewire": "Livewire\\Livewire" - } - } - }, - "autoload": { - "files": [ - "src/helpers.php" - ], - "psr-4": { - "Livewire\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Caleb Porzio", - "email": "calebporzio@gmail.com" - } - ], - "description": "A front-end framework for Laravel.", - "support": { - "issues": "https://github.com/livewire/livewire/issues", - "source": "https://github.com/livewire/livewire/tree/v2.4.0" - }, - "funding": [ - { - "url": "https://github.com/calebporzio", - "type": "github" - } - ], - "time": "2021-02-23T17:44:50+00:00" - }, { "name": "mockery/mockery", "version": "1.4.3", diff --git a/config/markdown.php b/config/markdown.php index 433c6d1..543b363 100644 --- a/config/markdown.php +++ b/config/markdown.php @@ -186,4 +186,8 @@ 'max_nesting_level' => INF, + 'link_renderer_view' => 'ark::external-link', + 'link_renderer_view_attributes' => [ + 'inline' => true, + ], ]; diff --git a/src/Extensions/Link/LinkRenderer.php b/src/Extensions/Link/LinkRenderer.php index 67699b6..eea82a5 100644 --- a/src/Extensions/Link/LinkRenderer.php +++ b/src/Extensions/Link/LinkRenderer.php @@ -2,6 +2,7 @@ namespace ARKEcosystem\CommonMark\Extensions\Link; +use Illuminate\View\ComponentAttributeBag; use League\CommonMark\ElementRendererInterface; use League\CommonMark\HtmlElement; use League\CommonMark\Inline\Element\AbstractInline; @@ -58,10 +59,14 @@ public function render(AbstractInline $inline, ElementRendererInterface $htmlRen $text = $children; } - return view('components.external-link', [ - 'text' => $text, - 'url' => $attrs['href'], - ])->render(); + return view(config('markdown.link_renderer_view', 'ark::external-link'), array_merge( + config('markdown.link_renderer_view_attributes', ['inline' => true]), + [ + 'attributes' => new ComponentAttributeBag([]), + 'text' => $text, + 'url' => $attrs['href'], + ] + ))->render(); } public function setConfiguration(ConfigurationInterface $configuration)