prepare for v2.1.5

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