mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
prepare for v2.1.5
This commit is contained in:
Generated
+55
-55
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "ddb7aadf973fbf84a14d002bdfa9c226",
|
||||
"content-hash": "9847ba2abb14c12d2e0b0d55e8251f79",
|
||||
"packages": [
|
||||
{
|
||||
"name": "brick/math",
|
||||
@@ -3162,31 +3162,31 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/cache",
|
||||
"version": "v7.0.0",
|
||||
"version": "v6.4.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/cache.git",
|
||||
"reference": "5e2376f726d61541b9617512e374808d12c1dc22"
|
||||
"reference": "ac2d25f97b17eec6e19760b6b9962a4f7c44356a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/cache/zipball/5e2376f726d61541b9617512e374808d12c1dc22",
|
||||
"reference": "5e2376f726d61541b9617512e374808d12c1dc22",
|
||||
"url": "https://api.github.com/repos/symfony/cache/zipball/ac2d25f97b17eec6e19760b6b9962a4f7c44356a",
|
||||
"reference": "ac2d25f97b17eec6e19760b6b9962a4f7c44356a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php": ">=8.1",
|
||||
"psr/cache": "^2.0|^3.0",
|
||||
"psr/log": "^1.1|^2|^3",
|
||||
"symfony/cache-contracts": "^2.5|^3",
|
||||
"symfony/service-contracts": "^2.5|^3",
|
||||
"symfony/var-exporter": "^6.4|^7.0"
|
||||
"symfony/var-exporter": "^6.3.6|^7.0"
|
||||
},
|
||||
"conflict": {
|
||||
"doctrine/dbal": "<3.6",
|
||||
"symfony/dependency-injection": "<6.4",
|
||||
"symfony/http-kernel": "<6.4",
|
||||
"symfony/var-dumper": "<6.4"
|
||||
"doctrine/dbal": "<2.13.1",
|
||||
"symfony/dependency-injection": "<5.4",
|
||||
"symfony/http-kernel": "<5.4",
|
||||
"symfony/var-dumper": "<5.4"
|
||||
},
|
||||
"provide": {
|
||||
"psr/cache-implementation": "2.0|3.0",
|
||||
@@ -3195,15 +3195,15 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"cache/integration-tests": "dev-master",
|
||||
"doctrine/dbal": "^3.6|^4",
|
||||
"doctrine/dbal": "^2.13.1|^3|^4",
|
||||
"predis/predis": "^1.1|^2.0",
|
||||
"psr/simple-cache": "^1.0|^2.0|^3.0",
|
||||
"symfony/config": "^6.4|^7.0",
|
||||
"symfony/dependency-injection": "^6.4|^7.0",
|
||||
"symfony/filesystem": "^6.4|^7.0",
|
||||
"symfony/http-kernel": "^6.4|^7.0",
|
||||
"symfony/messenger": "^6.4|^7.0",
|
||||
"symfony/var-dumper": "^6.4|^7.0"
|
||||
"symfony/config": "^5.4|^6.0|^7.0",
|
||||
"symfony/dependency-injection": "^5.4|^6.0|^7.0",
|
||||
"symfony/filesystem": "^5.4|^6.0|^7.0",
|
||||
"symfony/http-kernel": "^5.4|^6.0|^7.0",
|
||||
"symfony/messenger": "^5.4|^6.0|^7.0",
|
||||
"symfony/var-dumper": "^5.4|^6.0|^7.0"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
@@ -3238,7 +3238,7 @@
|
||||
"psr6"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/cache/tree/v7.0.0"
|
||||
"source": "https://github.com/symfony/cache/tree/v6.4.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -3254,7 +3254,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2023-11-25T15:40:35+00:00"
|
||||
"time": "2023-11-24T19:28:07+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/cache-contracts",
|
||||
@@ -3857,24 +3857,24 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/event-dispatcher",
|
||||
"version": "v7.0.0",
|
||||
"version": "v6.4.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/event-dispatcher.git",
|
||||
"reference": "c459b40ffe67c49af6fd392aac374c9edf8a027e"
|
||||
"reference": "d76d2632cfc2206eecb5ad2b26cd5934082941b6"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/c459b40ffe67c49af6fd392aac374c9edf8a027e",
|
||||
"reference": "c459b40ffe67c49af6fd392aac374c9edf8a027e",
|
||||
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/d76d2632cfc2206eecb5ad2b26cd5934082941b6",
|
||||
"reference": "d76d2632cfc2206eecb5ad2b26cd5934082941b6",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php": ">=8.1",
|
||||
"symfony/event-dispatcher-contracts": "^2.5|^3"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/dependency-injection": "<6.4",
|
||||
"symfony/dependency-injection": "<5.4",
|
||||
"symfony/service-contracts": "<2.5"
|
||||
},
|
||||
"provide": {
|
||||
@@ -3883,13 +3883,13 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"psr/log": "^1|^2|^3",
|
||||
"symfony/config": "^6.4|^7.0",
|
||||
"symfony/dependency-injection": "^6.4|^7.0",
|
||||
"symfony/error-handler": "^6.4|^7.0",
|
||||
"symfony/expression-language": "^6.4|^7.0",
|
||||
"symfony/http-foundation": "^6.4|^7.0",
|
||||
"symfony/config": "^5.4|^6.0|^7.0",
|
||||
"symfony/dependency-injection": "^5.4|^6.0|^7.0",
|
||||
"symfony/error-handler": "^5.4|^6.0|^7.0",
|
||||
"symfony/expression-language": "^5.4|^6.0|^7.0",
|
||||
"symfony/http-foundation": "^5.4|^6.0|^7.0",
|
||||
"symfony/service-contracts": "^2.5|^3",
|
||||
"symfony/stopwatch": "^6.4|^7.0"
|
||||
"symfony/stopwatch": "^5.4|^6.0|^7.0"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
@@ -3917,7 +3917,7 @@
|
||||
"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
|
||||
"homepage": "https://symfony.com",
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/event-dispatcher/tree/v7.0.0"
|
||||
"source": "https://github.com/symfony/event-dispatcher/tree/v6.4.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -3933,7 +3933,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2023-07-27T16:29:09+00:00"
|
||||
"time": "2023-07-27T06:52:43+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/event-dispatcher-contracts",
|
||||
@@ -8028,16 +8028,16 @@
|
||||
},
|
||||
{
|
||||
"name": "overtrue/phplint",
|
||||
"version": "9.5.3",
|
||||
"version": "9.5.6",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/overtrue/phplint.git",
|
||||
"reference": "584063a687abca041551e0b14c47fe9fc574b193"
|
||||
"reference": "3fdc395a816d1401091062c7a3bfb31252aed6c5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/overtrue/phplint/zipball/584063a687abca041551e0b14c47fe9fc574b193",
|
||||
"reference": "584063a687abca041551e0b14c47fe9fc574b193",
|
||||
"url": "https://api.github.com/repos/overtrue/phplint/zipball/3fdc395a816d1401091062c7a3bfb31252aed6c5",
|
||||
"reference": "3fdc395a816d1401091062c7a3bfb31252aed6c5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -8045,14 +8045,14 @@
|
||||
"ext-dom": "*",
|
||||
"ext-json": "*",
|
||||
"ext-mbstring": "*",
|
||||
"php": "^8.2",
|
||||
"symfony/cache": "^7.0",
|
||||
"symfony/console": "^7.0",
|
||||
"symfony/event-dispatcher": "^7.0",
|
||||
"symfony/finder": "^7.0",
|
||||
"symfony/options-resolver": "^7.0",
|
||||
"symfony/process": "^7.0",
|
||||
"symfony/yaml": "^7.0"
|
||||
"php": "^8.1",
|
||||
"symfony/cache": "^6.4 || ^7.0",
|
||||
"symfony/console": "^6.4 || ^7.0",
|
||||
"symfony/event-dispatcher": "^6.4 || ^7.0",
|
||||
"symfony/finder": "^6.4 || ^7.0",
|
||||
"symfony/options-resolver": "^6.4 || ^7.0",
|
||||
"symfony/process": "^6.4 || ^7.0",
|
||||
"symfony/yaml": "^6.4 || ^7.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"bamarni/composer-bin-plugin": "^1.4",
|
||||
@@ -8109,7 +8109,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/overtrue/phplint/issues",
|
||||
"source": "https://github.com/overtrue/phplint/tree/9.5.3"
|
||||
"source": "https://github.com/overtrue/phplint/tree/9.5.6"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -8117,7 +8117,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2024-10-11T07:13:25+00:00"
|
||||
"time": "2025-01-15T05:41:15+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phar-io/manifest",
|
||||
@@ -10398,20 +10398,20 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/options-resolver",
|
||||
"version": "v7.0.0",
|
||||
"version": "v6.4.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/options-resolver.git",
|
||||
"reference": "700ff4096e346f54cb628ea650767c8130f1001f"
|
||||
"reference": "22301f0e7fdeaacc14318928612dee79be99860e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/options-resolver/zipball/700ff4096e346f54cb628ea650767c8130f1001f",
|
||||
"reference": "700ff4096e346f54cb628ea650767c8130f1001f",
|
||||
"url": "https://api.github.com/repos/symfony/options-resolver/zipball/22301f0e7fdeaacc14318928612dee79be99860e",
|
||||
"reference": "22301f0e7fdeaacc14318928612dee79be99860e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php": ">=8.1",
|
||||
"symfony/deprecation-contracts": "^2.5|^3"
|
||||
},
|
||||
"type": "library",
|
||||
@@ -10445,7 +10445,7 @@
|
||||
"options"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/options-resolver/tree/v7.0.0"
|
||||
"source": "https://github.com/symfony/options-resolver/tree/v6.4.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -10461,7 +10461,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2023-08-08T10:20:21+00:00"
|
||||
"time": "2023-08-08T10:16:24+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-iconv",
|
||||
|
||||
+17
-17
@@ -15,26 +15,26 @@
|
||||
],
|
||||
"require": {
|
||||
"php": "^8.2",
|
||||
"inertiajs/inertia-laravel": "^1.0",
|
||||
"laravel/framework": "^11.0",
|
||||
"laravel/tinker": "^2.9",
|
||||
"livewire/livewire": "^3.4",
|
||||
"inertiajs/inertia-laravel": "^2.0.1",
|
||||
"laravel/framework": "^11.43.2",
|
||||
"laravel/tinker": "^2.10.1",
|
||||
"livewire/livewire": "^3.5.20",
|
||||
"php-flasher/php-flasher": "@dev",
|
||||
"spatie/laravel-csp": "^2.9",
|
||||
"spatie/laravel-ray": "^1.36"
|
||||
"spatie/laravel-csp": "^2.10.3",
|
||||
"spatie/laravel-ray": "^1.39.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"barryvdh/laravel-debugbar": "^3.14",
|
||||
"fakerphp/faker": "^1.23",
|
||||
"larastan/larastan": "^2.9",
|
||||
"laravel/pint": "^1.13",
|
||||
"laravel/sail": "^1.26",
|
||||
"mockery/mockery": "^1.6",
|
||||
"nunomaduro/collision": "^8.0",
|
||||
"pestphp/pest": "^2.34",
|
||||
"pestphp/pest-plugin-laravel": "^2.3",
|
||||
"spatie/laravel-ignition": "^2.4",
|
||||
"spatie/ray": "^1.41"
|
||||
"barryvdh/laravel-debugbar": "^3.15",
|
||||
"fakerphp/faker": "^1.24.1",
|
||||
"larastan/larastan": "^3.1",
|
||||
"laravel/pint": "^1.21",
|
||||
"laravel/sail": "^1.41",
|
||||
"mockery/mockery": "^1.6.12",
|
||||
"nunomaduro/collision": "^8.6.1",
|
||||
"pestphp/pest": "^3.7.4",
|
||||
"pestphp/pest-plugin-laravel": "^3.1",
|
||||
"spatie/laravel-ignition": "^2.9.1",
|
||||
"spatie/ray": "^1.41.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
Generated
+1846
-1508
File diff suppressed because it is too large
Load Diff
@@ -18,3 +18,7 @@
|
||||
APP_ENV=dev
|
||||
APP_SECRET=a2ee898b9e385a80ba8f7b11e97232b2
|
||||
###< symfony/framework-bundle ###
|
||||
|
||||
###> symfony/mailer ###
|
||||
MAILER_DSN=null://null
|
||||
###< symfony/mailer ###
|
||||
|
||||
+22
-21
@@ -16,21 +16,27 @@
|
||||
"php": ">=8.2",
|
||||
"ext-ctype": "*",
|
||||
"ext-iconv": "*",
|
||||
"nelmio/security-bundle": "^3.3",
|
||||
"nelmio/security-bundle": "^3.4.2",
|
||||
"php-flasher/php-flasher": "@dev",
|
||||
"phpstan/phpstan-symfony": "^1.3",
|
||||
"symfony/console": "7.0.*",
|
||||
"symfony/dotenv": "7.0.*",
|
||||
"symfony/flex": "^2",
|
||||
"symfony/framework-bundle": "7.0.*",
|
||||
"phpstan/phpstan-symfony": "^2.0.2",
|
||||
"symfony/console": "7.2.*",
|
||||
"symfony/dotenv": "7.2.*",
|
||||
"symfony/flex": "^2.4.7",
|
||||
"symfony/framework-bundle": "7.2.*",
|
||||
"symfony/monolog-bundle": "^3.10",
|
||||
"symfony/notifier": "7.0.*",
|
||||
"symfony/runtime": "7.0.*",
|
||||
"symfony/translation": "7.0.*",
|
||||
"symfony/twig-bundle": "7.0.*",
|
||||
"symfony/yaml": "7.0.*",
|
||||
"twig/extra-bundle": "^2.12|^3.0",
|
||||
"twig/twig": "^2.12|^3.0"
|
||||
"symfony/notifier": "7.2.*",
|
||||
"symfony/runtime": "7.2.*",
|
||||
"symfony/translation": "7.2.*",
|
||||
"symfony/twig-bundle": "7.2.*",
|
||||
"symfony/yaml": "7.2.*",
|
||||
"twig/extra-bundle": "^2.12|^3.20",
|
||||
"twig/twig": "^2.12|^3.20"
|
||||
},
|
||||
"require-dev": {
|
||||
"spatie/ray": "^1.41.5",
|
||||
"symfony/maker-bundle": "^1.62.1",
|
||||
"symfony/stopwatch": "7.2.*",
|
||||
"symfony/web-profiler-bundle": "7.2.*"
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
@@ -79,13 +85,8 @@
|
||||
"extra": {
|
||||
"symfony": {
|
||||
"allow-contrib": false,
|
||||
"require": "7.0.*"
|
||||
}
|
||||
},
|
||||
"require-dev": {
|
||||
"spatie/ray": "^1.41",
|
||||
"symfony/maker-bundle": "^1.58",
|
||||
"symfony/stopwatch": "7.0.*",
|
||||
"symfony/web-profiler-bundle": "7.0.*"
|
||||
"require": "7.2.*",
|
||||
"docker": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+7720
-3831
File diff suppressed because it is too large
Load Diff
@@ -13,4 +13,5 @@ return [
|
||||
Nelmio\SecurityBundle\NelmioSecurityBundle::class => ['all' => true],
|
||||
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
|
||||
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
|
||||
Symfony\UX\TwigComponent\TwigComponentBundle::class => ['all' => true],
|
||||
];
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
framework:
|
||||
mailer:
|
||||
dsn: '%env(MAILER_DSN)%'
|
||||
@@ -0,0 +1,5 @@
|
||||
twig_component:
|
||||
anonymous_template_directory: 'components/'
|
||||
defaults:
|
||||
# Namespace & directory for components
|
||||
App\Twig\Components\: 'components/'
|
||||
@@ -66,6 +66,18 @@
|
||||
"src/Kernel.php"
|
||||
]
|
||||
},
|
||||
"symfony/mailer": {
|
||||
"version": "7.2",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "main",
|
||||
"version": "4.3",
|
||||
"ref": "09051cfde49476e3c12cd3a0e44289ace1c75a4f"
|
||||
},
|
||||
"files": [
|
||||
"config/packages/mailer.yaml"
|
||||
]
|
||||
},
|
||||
"symfony/maker-bundle": {
|
||||
"version": "1.58",
|
||||
"recipe": {
|
||||
@@ -138,6 +150,27 @@
|
||||
"templates/base.html.twig"
|
||||
]
|
||||
},
|
||||
"symfony/uid": {
|
||||
"version": "7.2",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "main",
|
||||
"version": "7.0",
|
||||
"ref": "0df5844274d871b37fc3816c57a768ffc60a43a5"
|
||||
}
|
||||
},
|
||||
"symfony/ux-twig-component": {
|
||||
"version": "2.23",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "main",
|
||||
"version": "2.13",
|
||||
"ref": "67814b5f9794798b885cec9d3f48631424449a01"
|
||||
},
|
||||
"files": [
|
||||
"config/packages/twig_component.yaml"
|
||||
]
|
||||
},
|
||||
"symfony/web-profiler-bundle": {
|
||||
"version": "7.0",
|
||||
"recipe": {
|
||||
|
||||
@@ -9,5 +9,5 @@ return static function (MBConfig $config) {
|
||||
__DIR__.'/src',
|
||||
]);
|
||||
|
||||
$config->packageAliasFormat('2.x-dev');
|
||||
// $config->packageAliasFormat('2.x-dev');
|
||||
};
|
||||
|
||||
Generated
+272
-258
File diff suppressed because it is too large
Load Diff
+8
-8
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@flasher/php-flasher",
|
||||
"type": "module",
|
||||
"version": "2.1.4",
|
||||
"version": "2.1.5",
|
||||
"license": "MIT",
|
||||
"workspaces": [
|
||||
"src/Prime/Resources",
|
||||
@@ -19,15 +19,15 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^2.27.3",
|
||||
"@babel/core": "^7.26.0",
|
||||
"@babel/preset-env": "^7.26.0",
|
||||
"@babel/core": "^7.26.9",
|
||||
"@babel/preset-env": "^7.26.9",
|
||||
"@rollup/plugin-babel": "^6.0.4",
|
||||
"@rollup/plugin-commonjs": "^25.0.8",
|
||||
"@rollup/plugin-eslint": "^9.0.5",
|
||||
"@rollup/plugin-node-resolve": "^15.3.1",
|
||||
"@rollup/plugin-terser": "^0.4.4",
|
||||
"@rollup/plugin-typescript": "^11.1.6",
|
||||
"@types/node": "^20.17.14",
|
||||
"@types/node": "^20.17.19",
|
||||
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
||||
"@typescript-eslint/parser": "^7.18.0",
|
||||
"all-contributors-cli": "^6.26.1",
|
||||
@@ -38,20 +38,20 @@
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-airbnb-typescript": "^18.0.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-import-resolver-typescript": "^3.7.0",
|
||||
"eslint-import-resolver-typescript": "^3.8.3",
|
||||
"eslint-plugin-babel": "^5.3.1",
|
||||
"eslint-plugin-import": "^2.31.0",
|
||||
"eslint-plugin-prettier": "^5.2.2",
|
||||
"eslint-plugin-prettier": "^5.2.3",
|
||||
"postcss-discard-comments": "^6.0.2",
|
||||
"punycode": "^2.3.1",
|
||||
"rollup": "^4.30.1",
|
||||
"rollup": "^4.34.8",
|
||||
"rollup-plugin-cleanup": "^3.2.1",
|
||||
"rollup-plugin-clear": "^2.0.7",
|
||||
"rollup-plugin-copy": "^3.5.0",
|
||||
"rollup-plugin-filesize": "^10.0.0",
|
||||
"rollup-plugin-postcss": "^4.0.2",
|
||||
"rollup-plugin-progress": "^1.1.2",
|
||||
"sass": "^1.83.4",
|
||||
"sass": "^1.85.0",
|
||||
"ts-node": "^10.9.2",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.7.3"
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"illuminate/support": "^11.0|^12.0",
|
||||
"php-flasher/flasher": "^2.1.4"
|
||||
"php-flasher/flasher": "^2.1.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php-flasher/flasher-laravel": "^2.1.4",
|
||||
"php-flasher/flasher-noty": "^2.1.4"
|
||||
"php-flasher/flasher-laravel": "^2.1.5",
|
||||
"php-flasher/flasher-noty": "^2.1.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ class NotyPlugin extends AbstractPlugin {
|
||||
const options = Object.assign({ text: envelope.message, type: envelope.type }, envelope.options);
|
||||
const noty = new Noty(options);
|
||||
noty.show();
|
||||
(_a = noty.layoutDom) === null || _a === undefined ? undefined : _a.dataset.turboTemporary = '';
|
||||
(_a = noty.layoutDom) === null || _a === void 0 ? void 0 : _a.dataset.turboTemporary = '';
|
||||
});
|
||||
}
|
||||
renderOptions(options) {
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@
|
||||
const options = Object.assign({ text: envelope.message, type: envelope.type }, envelope.options);
|
||||
const noty = new Noty(options);
|
||||
noty.show();
|
||||
(_a = noty.layoutDom) === null || _a === undefined ? undefined : _a.dataset.turboTemporary = '';
|
||||
(_a = noty.layoutDom) === null || _a === void 0 ? void 0 : _a.dataset.turboTemporary = '';
|
||||
});
|
||||
}
|
||||
renderOptions(options) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@flasher/flasher-noty",
|
||||
"version": "2.1.4",
|
||||
"version": "2.1.5",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"main": "dist/flasher-noty.cjs.js",
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php-flasher/flasher": "^2.1.4"
|
||||
"php-flasher/flasher": "^2.1.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php-flasher/flasher-noty": "^2.1.4",
|
||||
"php-flasher/flasher-symfony": "^2.1.4"
|
||||
"php-flasher/flasher-noty": "^2.1.5",
|
||||
"php-flasher/flasher-symfony": "^2.1.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php-flasher/flasher-laravel": "^2.1.4",
|
||||
"php-flasher/flasher-notyf": "^2.1.4"
|
||||
"php-flasher/flasher-laravel": "^2.1.5",
|
||||
"php-flasher/flasher-notyf": "^2.1.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
+7
-7
@@ -217,11 +217,11 @@ var NotyfView = function () {
|
||||
};
|
||||
NotyfView.prototype.getXPosition = function (options) {
|
||||
var _a;
|
||||
return ((_a = options === null || options === undefined ? undefined : options.position) === null || _a === undefined ? undefined : _a.x) || 'right';
|
||||
return ((_a = options === null || options === void 0 ? void 0 : options.position) === null || _a === void 0 ? void 0 : _a.x) || 'right';
|
||||
};
|
||||
NotyfView.prototype.getYPosition = function (options) {
|
||||
var _a;
|
||||
return ((_a = options === null || options === undefined ? undefined : options.position) === null || _a === undefined ? undefined : _a.y) || 'bottom';
|
||||
return ((_a = options === null || options === void 0 ? void 0 : options.position) === null || _a === void 0 ? void 0 : _a.y) || 'bottom';
|
||||
};
|
||||
NotyfView.prototype.adjustContainerAlignment = function (options) {
|
||||
var align = this.X_POSITION_FLEX_MAP[this.getXPosition(options)];
|
||||
@@ -261,11 +261,11 @@ var NotyfView = function () {
|
||||
if (typeof iconOpts === 'string' || iconOpts instanceof String) iconContainer.innerHTML = new String(iconOpts).valueOf();
|
||||
if (typeof iconOpts === 'object') {
|
||||
var _a = iconOpts.tagName,
|
||||
tagName = _a === undefined ? 'i' : _a,
|
||||
tagName = _a === void 0 ? 'i' : _a,
|
||||
className_1 = iconOpts.className,
|
||||
text = iconOpts.text,
|
||||
_b = iconOpts.color,
|
||||
color = _b === undefined ? mainColor : _b;
|
||||
color = _b === void 0 ? mainColor : _b;
|
||||
var iconElement = this._createHTMLElement({
|
||||
tagName: tagName,
|
||||
className: className_1,
|
||||
@@ -300,7 +300,7 @@ var NotyfView = function () {
|
||||
notificationElem.classList.add("notyf__toast--dismissible");
|
||||
dismissButton.addEventListener('click', function (event) {
|
||||
var _a, _b;
|
||||
(_b = (_a = _this.events)[NotyfEvent.Dismiss]) === null || _b === undefined ? undefined : _b.call(_a, {
|
||||
(_b = (_a = _this.events)[NotyfEvent.Dismiss]) === null || _b === void 0 ? void 0 : _b.call(_a, {
|
||||
target: notification,
|
||||
event: event
|
||||
});
|
||||
@@ -309,7 +309,7 @@ var NotyfView = function () {
|
||||
}
|
||||
notificationElem.addEventListener('click', function (event) {
|
||||
var _a, _b;
|
||||
return (_b = (_a = _this.events)[NotyfEvent.Click]) === null || _b === undefined ? undefined : _b.call(_a, {
|
||||
return (_b = (_a = _this.events)[NotyfEvent.Click]) === null || _b === void 0 ? void 0 : _b.call(_a, {
|
||||
target: notification,
|
||||
event: event
|
||||
});
|
||||
@@ -472,7 +472,7 @@ class NotyfPlugin extends AbstractPlugin {
|
||||
envelopes.forEach((envelope) => {
|
||||
var _a;
|
||||
const options = Object.assign(Object.assign({}, envelope), envelope.options);
|
||||
(_a = this.notyf) === null || _a === undefined ? undefined : _a.open(options);
|
||||
(_a = this.notyf) === null || _a === void 0 ? void 0 : _a.open(options);
|
||||
});
|
||||
this.notyf.view.container.dataset.turboTemporary = '';
|
||||
this.notyf.view.a11yContainer.dataset.turboTemporary = '';
|
||||
|
||||
+7
-7
@@ -221,11 +221,11 @@
|
||||
};
|
||||
NotyfView.prototype.getXPosition = function (options) {
|
||||
var _a;
|
||||
return ((_a = options === null || options === undefined ? undefined : options.position) === null || _a === undefined ? undefined : _a.x) || 'right';
|
||||
return ((_a = options === null || options === void 0 ? void 0 : options.position) === null || _a === void 0 ? void 0 : _a.x) || 'right';
|
||||
};
|
||||
NotyfView.prototype.getYPosition = function (options) {
|
||||
var _a;
|
||||
return ((_a = options === null || options === undefined ? undefined : options.position) === null || _a === undefined ? undefined : _a.y) || 'bottom';
|
||||
return ((_a = options === null || options === void 0 ? void 0 : options.position) === null || _a === void 0 ? void 0 : _a.y) || 'bottom';
|
||||
};
|
||||
NotyfView.prototype.adjustContainerAlignment = function (options) {
|
||||
var align = this.X_POSITION_FLEX_MAP[this.getXPosition(options)];
|
||||
@@ -265,11 +265,11 @@
|
||||
if (typeof iconOpts === 'string' || iconOpts instanceof String) iconContainer.innerHTML = new String(iconOpts).valueOf();
|
||||
if (typeof iconOpts === 'object') {
|
||||
var _a = iconOpts.tagName,
|
||||
tagName = _a === undefined ? 'i' : _a,
|
||||
tagName = _a === void 0 ? 'i' : _a,
|
||||
className_1 = iconOpts.className,
|
||||
text = iconOpts.text,
|
||||
_b = iconOpts.color,
|
||||
color = _b === undefined ? mainColor : _b;
|
||||
color = _b === void 0 ? mainColor : _b;
|
||||
var iconElement = this._createHTMLElement({
|
||||
tagName: tagName,
|
||||
className: className_1,
|
||||
@@ -304,7 +304,7 @@
|
||||
notificationElem.classList.add("notyf__toast--dismissible");
|
||||
dismissButton.addEventListener('click', function (event) {
|
||||
var _a, _b;
|
||||
(_b = (_a = _this.events)[NotyfEvent.Dismiss]) === null || _b === undefined ? undefined : _b.call(_a, {
|
||||
(_b = (_a = _this.events)[NotyfEvent.Dismiss]) === null || _b === void 0 ? void 0 : _b.call(_a, {
|
||||
target: notification,
|
||||
event: event
|
||||
});
|
||||
@@ -313,7 +313,7 @@
|
||||
}
|
||||
notificationElem.addEventListener('click', function (event) {
|
||||
var _a, _b;
|
||||
return (_b = (_a = _this.events)[NotyfEvent.Click]) === null || _b === undefined ? undefined : _b.call(_a, {
|
||||
return (_b = (_a = _this.events)[NotyfEvent.Click]) === null || _b === void 0 ? void 0 : _b.call(_a, {
|
||||
target: notification,
|
||||
event: event
|
||||
});
|
||||
@@ -476,7 +476,7 @@
|
||||
envelopes.forEach((envelope) => {
|
||||
var _a;
|
||||
const options = Object.assign(Object.assign({}, envelope), envelope.options);
|
||||
(_a = this.notyf) === null || _a === undefined ? undefined : _a.open(options);
|
||||
(_a = this.notyf) === null || _a === void 0 ? void 0 : _a.open(options);
|
||||
});
|
||||
this.notyf.view.container.dataset.turboTemporary = '';
|
||||
this.notyf.view.a11yContainer.dataset.turboTemporary = '';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@flasher/flasher-notyf",
|
||||
"version": "2.1.4",
|
||||
"version": "2.1.5",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"main": "dist/flasher-notyf.cjs.js",
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php-flasher/flasher": "^2.1.4"
|
||||
"php-flasher/flasher": "^2.1.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php-flasher/flasher-notyf": "^2.1.4",
|
||||
"php-flasher/flasher-symfony": "^2.1.4"
|
||||
"php-flasher/flasher-notyf": "^2.1.5",
|
||||
"php-flasher/flasher-symfony": "^2.1.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
@@ -15,7 +15,7 @@ final readonly class Flasher implements FlasherInterface
|
||||
{
|
||||
use ForwardsCalls;
|
||||
|
||||
public const VERSION = '2.1.4';
|
||||
public const VERSION = '2.1.5';
|
||||
|
||||
public function __construct(
|
||||
private string $default,
|
||||
|
||||
+9
-9
@@ -99,8 +99,8 @@ class FlasherPlugin extends AbstractPlugin {
|
||||
renderEnvelopes(envelopes) {
|
||||
const render = () => envelopes.forEach((envelope) => {
|
||||
var _a, _b, _c, _d;
|
||||
const typeTimeout = (_b = (_a = this.options.timeout) !== null && _a !== undefined ? _a : this.options.timeouts[envelope.type]) !== null && _b !== undefined ? _b : 5000;
|
||||
const options = Object.assign(Object.assign(Object.assign({}, this.options), envelope.options), { timeout: (_c = envelope.options.timeout) !== null && _c !== undefined ? _c : typeTimeout, escapeHtml: ((_d = envelope.options.escapeHtml) !== null && _d !== undefined ? _d : this.options.escapeHtml) });
|
||||
const typeTimeout = (_b = (_a = this.options.timeout) !== null && _a !== void 0 ? _a : this.options.timeouts[envelope.type]) !== null && _b !== void 0 ? _b : 5000;
|
||||
const options = Object.assign(Object.assign(Object.assign({}, this.options), envelope.options), { timeout: (_c = envelope.options.timeout) !== null && _c !== void 0 ? _c : typeTimeout, escapeHtml: ((_d = envelope.options.escapeHtml) !== null && _d !== void 0 ? _d : this.options.escapeHtml) });
|
||||
this.addToContainer(this.createContainer(options), envelope, options);
|
||||
});
|
||||
document.readyState === 'loading' ? document.addEventListener('DOMContentLoaded', render) : render();
|
||||
@@ -130,7 +130,7 @@ class FlasherPlugin extends AbstractPlugin {
|
||||
notification.classList.add(...`fl-container${options.rtl ? ' fl-rtl' : ''}`.split(' '));
|
||||
options.direction === 'bottom' ? container.append(notification) : container.prepend(notification);
|
||||
requestAnimationFrame(() => notification.classList.add('fl-show'));
|
||||
(_a = notification.querySelector('.fl-close')) === null || _a === undefined ? undefined : _a.addEventListener('click', (event) => {
|
||||
(_a = notification.querySelector('.fl-close')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', (event) => {
|
||||
event.stopPropagation();
|
||||
this.removeNotification(notification);
|
||||
});
|
||||
@@ -166,7 +166,7 @@ class FlasherPlugin extends AbstractPlugin {
|
||||
notification.classList.remove('fl-show');
|
||||
notification.ontransitionend = () => {
|
||||
var _a, _b;
|
||||
!((_a = notification.parentElement) === null || _a === undefined ? undefined : _a.hasChildNodes()) && ((_b = notification.parentElement) === null || _b === undefined ? undefined : _b.remove());
|
||||
!((_a = notification.parentElement) === null || _a === void 0 ? void 0 : _a.hasChildNodes()) && ((_b = notification.parentElement) === null || _b === void 0 ? void 0 : _b.remove());
|
||||
notification.remove();
|
||||
};
|
||||
}
|
||||
@@ -202,7 +202,7 @@ class Flasher extends AbstractPlugin {
|
||||
this.themes = new Map();
|
||||
}
|
||||
render(response) {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const resolved = this.resolveResponse(response);
|
||||
yield this.addAssets([
|
||||
{
|
||||
@@ -287,7 +287,7 @@ class Flasher extends AbstractPlugin {
|
||||
if (!match) {
|
||||
return func;
|
||||
}
|
||||
const args = (_b = (_a = match[2]) === null || _a === undefined ? undefined : _a.split(',').map((arg) => arg.trim())) !== null && _b !== undefined ? _b : [];
|
||||
const args = (_b = (_a = match[2]) === null || _a === void 0 ? void 0 : _a.split(',').map((arg) => arg.trim())) !== null && _b !== void 0 ? _b : [];
|
||||
let body = match[3].trim();
|
||||
if (!body.startsWith('{')) {
|
||||
body = `{ return ${body}; }`;
|
||||
@@ -316,7 +316,7 @@ class Flasher extends AbstractPlugin {
|
||||
return alias === 'flasher' ? 'theme.flasher' : alias;
|
||||
}
|
||||
addAssets(assets) {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
for (const { urls, nonce, type } of assets) {
|
||||
for (const url of urls) {
|
||||
yield this.loadAsset(url, nonce, type);
|
||||
@@ -325,7 +325,7 @@ class Flasher extends AbstractPlugin {
|
||||
});
|
||||
}
|
||||
loadAsset(url, nonce, type) {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
if (document.querySelector(`${type === 'style' ? 'link' : 'script'}[src="${url}"]`)) {
|
||||
return;
|
||||
}
|
||||
@@ -354,7 +354,7 @@ class Flasher extends AbstractPlugin {
|
||||
return;
|
||||
}
|
||||
plugin = plugin.replace('theme.', '');
|
||||
const styles = ((_a = this.themes.get(plugin)) === null || _a === undefined ? undefined : _a.styles) || [];
|
||||
const styles = ((_a = this.themes.get(plugin)) === null || _a === void 0 ? void 0 : _a.styles) || [];
|
||||
response.styles = Array.from(new Set([...response.styles, ...styles]));
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+9
-9
@@ -105,8 +105,8 @@
|
||||
renderEnvelopes(envelopes) {
|
||||
const render = () => envelopes.forEach((envelope) => {
|
||||
var _a, _b, _c, _d;
|
||||
const typeTimeout = (_b = (_a = this.options.timeout) !== null && _a !== undefined ? _a : this.options.timeouts[envelope.type]) !== null && _b !== undefined ? _b : 5000;
|
||||
const options = Object.assign(Object.assign(Object.assign({}, this.options), envelope.options), { timeout: (_c = envelope.options.timeout) !== null && _c !== undefined ? _c : typeTimeout, escapeHtml: ((_d = envelope.options.escapeHtml) !== null && _d !== undefined ? _d : this.options.escapeHtml) });
|
||||
const typeTimeout = (_b = (_a = this.options.timeout) !== null && _a !== void 0 ? _a : this.options.timeouts[envelope.type]) !== null && _b !== void 0 ? _b : 5000;
|
||||
const options = Object.assign(Object.assign(Object.assign({}, this.options), envelope.options), { timeout: (_c = envelope.options.timeout) !== null && _c !== void 0 ? _c : typeTimeout, escapeHtml: ((_d = envelope.options.escapeHtml) !== null && _d !== void 0 ? _d : this.options.escapeHtml) });
|
||||
this.addToContainer(this.createContainer(options), envelope, options);
|
||||
});
|
||||
document.readyState === 'loading' ? document.addEventListener('DOMContentLoaded', render) : render();
|
||||
@@ -136,7 +136,7 @@
|
||||
notification.classList.add(...`fl-container${options.rtl ? ' fl-rtl' : ''}`.split(' '));
|
||||
options.direction === 'bottom' ? container.append(notification) : container.prepend(notification);
|
||||
requestAnimationFrame(() => notification.classList.add('fl-show'));
|
||||
(_a = notification.querySelector('.fl-close')) === null || _a === undefined ? undefined : _a.addEventListener('click', (event) => {
|
||||
(_a = notification.querySelector('.fl-close')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', (event) => {
|
||||
event.stopPropagation();
|
||||
this.removeNotification(notification);
|
||||
});
|
||||
@@ -172,7 +172,7 @@
|
||||
notification.classList.remove('fl-show');
|
||||
notification.ontransitionend = () => {
|
||||
var _a, _b;
|
||||
!((_a = notification.parentElement) === null || _a === undefined ? undefined : _a.hasChildNodes()) && ((_b = notification.parentElement) === null || _b === undefined ? undefined : _b.remove());
|
||||
!((_a = notification.parentElement) === null || _a === void 0 ? void 0 : _a.hasChildNodes()) && ((_b = notification.parentElement) === null || _b === void 0 ? void 0 : _b.remove());
|
||||
notification.remove();
|
||||
};
|
||||
}
|
||||
@@ -208,7 +208,7 @@
|
||||
this.themes = new Map();
|
||||
}
|
||||
render(response) {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const resolved = this.resolveResponse(response);
|
||||
yield this.addAssets([
|
||||
{
|
||||
@@ -293,7 +293,7 @@
|
||||
if (!match) {
|
||||
return func;
|
||||
}
|
||||
const args = (_b = (_a = match[2]) === null || _a === undefined ? undefined : _a.split(',').map((arg) => arg.trim())) !== null && _b !== undefined ? _b : [];
|
||||
const args = (_b = (_a = match[2]) === null || _a === void 0 ? void 0 : _a.split(',').map((arg) => arg.trim())) !== null && _b !== void 0 ? _b : [];
|
||||
let body = match[3].trim();
|
||||
if (!body.startsWith('{')) {
|
||||
body = `{ return ${body}; }`;
|
||||
@@ -322,7 +322,7 @@
|
||||
return alias === 'flasher' ? 'theme.flasher' : alias;
|
||||
}
|
||||
addAssets(assets) {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
for (const { urls, nonce, type } of assets) {
|
||||
for (const url of urls) {
|
||||
yield this.loadAsset(url, nonce, type);
|
||||
@@ -331,7 +331,7 @@
|
||||
});
|
||||
}
|
||||
loadAsset(url, nonce, type) {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
if (document.querySelector(`${type === 'style' ? 'link' : 'script'}[src="${url}"]`)) {
|
||||
return;
|
||||
}
|
||||
@@ -360,7 +360,7 @@
|
||||
return;
|
||||
}
|
||||
plugin = plugin.replace('theme.', '');
|
||||
const styles = ((_a = this.themes.get(plugin)) === null || _a === undefined ? undefined : _a.styles) || [];
|
||||
const styles = ((_a = this.themes.get(plugin)) === null || _a === void 0 ? void 0 : _a.styles) || [];
|
||||
response.styles = Array.from(new Set([...response.styles, ...styles]));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@flasher/flasher",
|
||||
"version": "2.1.4",
|
||||
"version": "2.1.5",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"main": "dist/flasher.cjs.js",
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php-flasher/flasher-laravel": "^2.1.4",
|
||||
"php-flasher/flasher-sweetalert": "^2.1.4"
|
||||
"php-flasher/flasher-laravel": "^2.1.5",
|
||||
"php-flasher/flasher-sweetalert": "^2.1.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
@@ -79,7 +79,7 @@ class AbstractPlugin {
|
||||
|
||||
class SweetAlertPlugin extends AbstractPlugin {
|
||||
renderEnvelopes(envelopes) {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
for (const envelope of envelopes) {
|
||||
yield this.renderEnvelope(envelope);
|
||||
}
|
||||
@@ -90,17 +90,17 @@ class SweetAlertPlugin extends AbstractPlugin {
|
||||
document.addEventListener('turbo:before-cache', () => {
|
||||
var _a;
|
||||
if (Swal.isVisible()) {
|
||||
(_a = Swal.getPopup()) === null || _a === undefined ? undefined : _a.style.setProperty('animation-duration', '0ms');
|
||||
(_a = Swal.getPopup()) === null || _a === void 0 ? void 0 : _a.style.setProperty('animation-duration', '0ms');
|
||||
Swal.close();
|
||||
}
|
||||
});
|
||||
}
|
||||
renderEnvelope(envelope) {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
var _a;
|
||||
let { options } = envelope;
|
||||
options = Object.assign(Object.assign({}, options), { icon: ((options === null || options === undefined ? undefined : options.icon) || envelope.type), text: ((options === null || options === undefined ? undefined : options.text) || envelope.message) });
|
||||
yield ((_a = this.sweetalert) === null || _a === undefined ? undefined : _a.fire(options).then((promise) => {
|
||||
options = Object.assign(Object.assign({}, options), { icon: ((options === null || options === void 0 ? void 0 : options.icon) || envelope.type), text: ((options === null || options === void 0 ? void 0 : options.text) || envelope.message) });
|
||||
yield ((_a = this.sweetalert) === null || _a === void 0 ? void 0 : _a.fire(options).then((promise) => {
|
||||
window.dispatchEvent(new CustomEvent('flasher:sweetalert:promise', { detail: {
|
||||
promise,
|
||||
envelope,
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
|
||||
class SweetAlertPlugin extends AbstractPlugin {
|
||||
renderEnvelopes(envelopes) {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
for (const envelope of envelopes) {
|
||||
yield this.renderEnvelope(envelope);
|
||||
}
|
||||
@@ -93,17 +93,17 @@
|
||||
document.addEventListener('turbo:before-cache', () => {
|
||||
var _a;
|
||||
if (Swal.isVisible()) {
|
||||
(_a = Swal.getPopup()) === null || _a === undefined ? undefined : _a.style.setProperty('animation-duration', '0ms');
|
||||
(_a = Swal.getPopup()) === null || _a === void 0 ? void 0 : _a.style.setProperty('animation-duration', '0ms');
|
||||
Swal.close();
|
||||
}
|
||||
});
|
||||
}
|
||||
renderEnvelope(envelope) {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
var _a;
|
||||
let { options } = envelope;
|
||||
options = Object.assign(Object.assign({}, options), { icon: ((options === null || options === undefined ? undefined : options.icon) || envelope.type), text: ((options === null || options === undefined ? undefined : options.text) || envelope.message) });
|
||||
yield ((_a = this.sweetalert) === null || _a === undefined ? undefined : _a.fire(options).then((promise) => {
|
||||
options = Object.assign(Object.assign({}, options), { icon: ((options === null || options === void 0 ? void 0 : options.icon) || envelope.type), text: ((options === null || options === void 0 ? void 0 : options.text) || envelope.message) });
|
||||
yield ((_a = this.sweetalert) === null || _a === void 0 ? void 0 : _a.fire(options).then((promise) => {
|
||||
window.dispatchEvent(new CustomEvent('flasher:sweetalert:promise', { detail: {
|
||||
promise,
|
||||
envelope,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@flasher/flasher-sweetalert",
|
||||
"version": "2.1.4",
|
||||
"version": "2.1.5",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"main": "dist/flasher-sweetalert.cjs.js",
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php-flasher/flasher": "^2.1.4"
|
||||
"php-flasher/flasher": "^2.1.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php-flasher/flasher-sweetalert": "^2.1.4",
|
||||
"php-flasher/flasher-symfony": "^2.1.4"
|
||||
"php-flasher/flasher-sweetalert": "^2.1.5",
|
||||
"php-flasher/flasher-symfony": "^2.1.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php-flasher/flasher": "^2.1.4",
|
||||
"php-flasher/flasher": "^2.1.5",
|
||||
"symfony/config": "^7.0",
|
||||
"symfony/console": "^7.0",
|
||||
"symfony/dependency-injection": "^7.0",
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php-flasher/flasher-laravel": "^2.1.4",
|
||||
"php-flasher/flasher-toastr": "^2.1.4"
|
||||
"php-flasher/flasher-laravel": "^2.1.5",
|
||||
"php-flasher/flasher-toastr": "^2.1.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@flasher/flasher-toastr",
|
||||
"version": "2.1.4",
|
||||
"version": "2.1.5",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"main": "dist/flasher-toastr.cjs.js",
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php-flasher/flasher": "^2.1.4"
|
||||
"php-flasher/flasher": "^2.1.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"php": ">=8.2",
|
||||
"php-flasher/flasher-symfony": "^2.1.4",
|
||||
"php-flasher/flasher-toastr": "^2.1.4"
|
||||
"php-flasher/flasher-symfony": "^2.1.5",
|
||||
"php-flasher/flasher-toastr": "^2.1.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
Reference in New Issue
Block a user