Merge pull request #4485 from humhub/enh/updateClipboardPolyfill

Updated clipboard-polyfill to v3
This commit is contained in:
buddh4 2020-10-13 16:14:42 +02:00 committed by GitHub
commit 49c0aea8b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 534 additions and 390 deletions

View File

@ -30,7 +30,7 @@
"npm-asset/blueimp-gallery": "2.36.0",
"npm-asset/bootstrap-markdown": "2.10.*",
"npm-asset/bootstrap-tour": "0.11.0",
"npm-asset/clipboard-polyfill": "*",
"npm-asset/clipboard-polyfill": "3.0.*",
"npm-asset/font-awesome": "^4.7.0",
"npm-asset/humhub-prosemirror-richtext": "1.0.26",
"npm-asset/imagesloaded": "*",
@ -73,6 +73,7 @@
"codeception/specify": "^1.0",
"codeception/verify": "~0.5.0 || ~1.1.0",
"symfony/browser-kit": ">=2.7 <=4.2.4",
"phpcompatibility/php-compatibility": "*",
"yiisoft/yii2-debug": "~2.1.0",
"yiisoft/yii2-faker": "~2.0.0",
"yiisoft/yii2-gii": "~2.1.0"
@ -97,7 +98,7 @@
"scripts": {
"post-create-project-cmd": [
"yii\\composer\\Installer::postCreateProject"
]
],
},
"extra": {
"yii\\composer\\Installer::postCreateProject": {

911
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -21,11 +21,15 @@ class ClipboardJsAsset extends AssetBundle
/**
* @inheritdoc
*/
public $sourcePath = '@npm/clipboard-polyfill';
public $sourcePath = '@npm/clipboard-polyfill/dist/main';
/**
* @inheritdoc
*/
public $js = ['dist/clipboard-polyfill.js'];
public $js = ['clipboard-polyfill.js'];
public $publishOptions = [
'only' => ['clipboard-polyfill.js']
];
}