Skip to content

Commit

Permalink
Update composer.json dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Apr 17, 2024
1 parent a138324 commit 579b5f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 21 deletions.
16 changes: 3 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"npm-asset/filepond-plugin-image-preview": "^4.6",
"npm-asset/filepond-plugin-image-transform": "^3.8",
"npm-asset/filepond-plugin-pdf-preview": "^1.0",
"oomphinc/composer-installers-extender": "^2.0",
"php-forge/awesome-widget": "dev-main",
"php-forge/html": "dev-main",
"php-forge/awesome-widget": "^0.1",
"ui-awesome/html": "^0.1",
"ui-awesome/html-helper": "^0.1",
"yiisoft/yii2": "*"
},
"require-dev": {
Expand Down Expand Up @@ -55,16 +55,6 @@
},
"config-plugin-options": {
"source-directory": "config"
},
"installer-types": [
"bower-asset",
"npm-asset"
],
"installer-paths": {
"./node_modules/{$name}/": [
"type:bower-asset",
"type:npm-asset"
]
}
},
"config": {
Expand Down
9 changes: 3 additions & 6 deletions src/FilePond.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
namespace Yii2\Extensions\FilePond;

use JsonException;
use PHPForge\Html\Helper\CssClass;
use PHPForge\Html\Helper\Utils;
use PHPForge\Html\Tag;
use Yii2\Extensions\FilePond\Asset\FilePondAsset;
use Yii2\Extensions\FilePond\Asset\FilePondCdnAsset;
use UIAwesome\Html\{FormControl\Input\File, Helper\CssClass, Helper\Utils};
use Yii2\Extensions\FilePond\Asset\{FilePondAsset, FilePondCdnAsset};
use Yii;
use yii\widgets\InputWidget;

Expand Down Expand Up @@ -322,6 +319,6 @@ private function renderInputFile(): string
// input type="file" not supported value attribute.
unset($options['id'], $options['placeholder'], $options['value']);

return Tag::widget()->attributes($options)->id($this->id)->name($name)->tagName('input')->type('file')->render();
return File::widget()->attributes($options)->id($this->id)->name($name)->render();
}
}
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ protected function mockApplication(): void
[
'id' => 'testapp',
'aliases' => [
'@bower' => dirname(__DIR__) . '/node_modules',
'@npm' => dirname(__DIR__) . '/node_modules',
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset',
],
'basePath' => __DIR__,
'vendorPath' => dirname(__DIR__) . '/vendor',
Expand Down

0 comments on commit 579b5f6

Please sign in to comment.