Kaynağa Gözat

Merge branch 'master' into i/6169

Radek Kozieł 5 yıl önce
ebeveyn
işleme
5ceba9de21

+ 7 - 0
packages/ckeditor5-media-embed/CHANGELOG.md

@@ -1,6 +1,13 @@
 Changelog
 =========
 
+## [17.0.0](https://github.com/ckeditor/ckeditor5-media-embed/compare/v16.0.0...v17.0.0) (2020-02-19)
+
+### Other changes
+
+* Updated translations. ([7c9dca4](https://github.com/ckeditor/ckeditor5-media-embed/commit/7c9dca4))
+
+
 ## [16.0.0](https://github.com/ckeditor/ckeditor5-media-embed/compare/v15.0.0...v16.0.0) (2019-12-04)
 
 ### Other changes

+ 16 - 16
packages/ckeditor5-media-embed/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@ckeditor/ckeditor5-media-embed",
-  "version": "16.0.0",
+  "version": "17.0.0",
   "description": "Media Embed feature for CKEditor 5.",
   "keywords": [
     "ckeditor",
@@ -10,23 +10,23 @@
     "ckeditor5-plugin"
   ],
   "dependencies": {
-    "@ckeditor/ckeditor5-clipboard": "^16.0.0",
-    "@ckeditor/ckeditor5-core": "^16.0.0",
-    "@ckeditor/ckeditor5-engine": "^16.0.0",
-    "@ckeditor/ckeditor5-image": "^16.0.0",
-    "@ckeditor/ckeditor5-ui": "^16.0.0",
-    "@ckeditor/ckeditor5-undo": "^16.0.0",
-    "@ckeditor/ckeditor5-utils": "^16.0.0",
-    "@ckeditor/ckeditor5-widget": "^16.0.0"
+    "@ckeditor/ckeditor5-clipboard": "^17.0.0",
+    "@ckeditor/ckeditor5-core": "^17.0.0",
+    "@ckeditor/ckeditor5-engine": "^17.0.0",
+    "@ckeditor/ckeditor5-image": "^17.0.0",
+    "@ckeditor/ckeditor5-ui": "^17.0.0",
+    "@ckeditor/ckeditor5-undo": "^17.0.0",
+    "@ckeditor/ckeditor5-utils": "^17.0.0",
+    "@ckeditor/ckeditor5-widget": "^17.0.0"
   },
   "devDependencies": {
-    "@ckeditor/ckeditor5-basic-styles": "^16.0.0",
-    "@ckeditor/ckeditor5-editor-balloon": "^16.0.0",
-    "@ckeditor/ckeditor5-editor-classic": "^16.0.0",
-    "@ckeditor/ckeditor5-link": "^16.0.0",
-    "@ckeditor/ckeditor5-list": "^16.0.0",
-    "@ckeditor/ckeditor5-paragraph": "^16.0.0",
-    "@ckeditor/ckeditor5-typing": "^16.0.0",
+    "@ckeditor/ckeditor5-basic-styles": "^17.0.0",
+    "@ckeditor/ckeditor5-editor-balloon": "^17.0.0",
+    "@ckeditor/ckeditor5-editor-classic": "^17.0.0",
+    "@ckeditor/ckeditor5-link": "^17.0.0",
+    "@ckeditor/ckeditor5-list": "^17.0.0",
+    "@ckeditor/ckeditor5-paragraph": "^17.0.0",
+    "@ckeditor/ckeditor5-typing": "^17.0.0",
     "eslint": "^5.5.0",
     "eslint-config-ckeditor5": "^2.0.0",
     "husky": "^1.3.1",

+ 1 - 1
packages/ckeditor5-media-embed/src/mediaembedediting.js

@@ -141,7 +141,7 @@ export default class MediaEmbedEditing extends Plugin {
 				{
 					name: 'facebook',
 					url: /^facebook\.com/
-				},
+				}
 			]
 		} );
 

+ 1 - 1
packages/ckeditor5-media-embed/src/mediaembedtoolbar.js

@@ -45,7 +45,7 @@ export default class MediaEmbedToolbar extends Plugin {
 		widgetToolbarRepository.register( 'mediaEmbed', {
 			ariaLabel: t( 'Media toolbar' ),
 			items: editor.config.get( 'mediaEmbed.toolbar' ) || [],
-			getRelatedElement: getSelectedMediaViewWidget,
+			getRelatedElement: getSelectedMediaViewWidget
 		} );
 	}
 }

+ 13 - 13
packages/ckeditor5-media-embed/tests/mediaembedediting.js

@@ -100,7 +100,7 @@ describe( 'MediaEmbedEditing', () => {
 						providers: [
 							testProviders.A,
 							testProviders.B,
-							testProviders.C,
+							testProviders.C
 						]
 					} ).then( editor => {
 						editor.setData( '<figure class="media"><div data-oembed-url="foo.com/123"></div></figure>' );
@@ -149,7 +149,7 @@ describe( 'MediaEmbedEditing', () => {
 							testMediaUpcast( [
 								'https://www.dailymotion.com/video/foo',
 								'www.dailymotion.com/video/foo',
-								'dailymotion.com/video/foo',
+								'dailymotion.com/video/foo'
 							],
 							'<div style="position: relative; padding-bottom: 100%; height: 0; ">' +
 								'<iframe src="https://www.dailymotion.com/embed/video/foo" ' +
@@ -164,7 +164,7 @@ describe( 'MediaEmbedEditing', () => {
 								testMediaUpcast( [
 									'https://www.open.spotify.com/artist/foo',
 									'www.open.spotify.com/artist/foo',
-									'open.spotify.com/artist/foo',
+									'open.spotify.com/artist/foo'
 								],
 								'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;">' +
 									'<iframe src="https://open.spotify.com/embed/artist/foo" ' +
@@ -178,7 +178,7 @@ describe( 'MediaEmbedEditing', () => {
 								testMediaUpcast( [
 									'https://www.open.spotify.com/album/foo',
 									'www.open.spotify.com/album/foo',
-									'open.spotify.com/album/foo',
+									'open.spotify.com/album/foo'
 								],
 								'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;">' +
 									'<iframe src="https://open.spotify.com/embed/album/foo" ' +
@@ -192,7 +192,7 @@ describe( 'MediaEmbedEditing', () => {
 								testMediaUpcast( [
 									'https://www.open.spotify.com/track/foo',
 									'www.open.spotify.com/track/foo',
-									'open.spotify.com/track/foo',
+									'open.spotify.com/track/foo'
 								],
 								'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;">' +
 									'<iframe src="https://open.spotify.com/embed/track/foo" ' +
@@ -289,7 +289,7 @@ describe( 'MediaEmbedEditing', () => {
 							testMediaUpcast( [
 								'https://www.instagram.com/p/foo',
 								'www.instagram.com/p/foo',
-								'instagram.com/p/foo',
+								'instagram.com/p/foo'
 							] );
 						} );
 
@@ -297,7 +297,7 @@ describe( 'MediaEmbedEditing', () => {
 							testMediaUpcast( [
 								'https://www.twitter.com/foo/bar',
 								'www.twitter.com/foo/bar',
-								'twitter.com/foo/bar',
+								'twitter.com/foo/bar'
 							] );
 						} );
 
@@ -305,7 +305,7 @@ describe( 'MediaEmbedEditing', () => {
 							testMediaUpcast( [
 								'https://www.google.com/maps/foo',
 								'www.google.com/maps/foo',
-								'google.com/maps/foo',
+								'google.com/maps/foo'
 							] );
 						} );
 
@@ -313,7 +313,7 @@ describe( 'MediaEmbedEditing', () => {
 							testMediaUpcast( [
 								'https://www.flickr.com/foo/bar',
 								'www.flickr.com/foo/bar',
-								'flickr.com/foo/bar',
+								'flickr.com/foo/bar'
 							] );
 						} );
 
@@ -321,7 +321,7 @@ describe( 'MediaEmbedEditing', () => {
 							testMediaUpcast( [
 								'https://www.facebook.com/foo/bar',
 								'www.facebook.com/foo/bar',
-								'facebook.com/foo/bar',
+								'facebook.com/foo/bar'
 							] );
 						} );
 					} );
@@ -347,11 +347,11 @@ describe( 'MediaEmbedEditing', () => {
 				it( 'extend #providers but with the lower priority', () => {
 					return createTestEditor( {
 						providers: [
-							testProviders.A,
+							testProviders.A
 						],
 						extraProviders: [
 							testProviders.extraA,
-							testProviders.extraB,
+							testProviders.extraB
 						]
 					} ).then( editor => {
 						editor.setData( '<figure class="media"><div data-oembed-url="foo.com/123"></div></figure>' );
@@ -405,7 +405,7 @@ describe( 'MediaEmbedEditing', () => {
 						providers: [],
 						extraProviders: [
 							testProviders.A,
-							testProviders.B,
+							testProviders.B
 						],
 						removeProviders: [ 'A' ]
 					} ).then( editor => {

+ 2 - 4
packages/ckeditor5-media-embed/tests/mediaembedtoolbar.js

@@ -196,11 +196,9 @@ describe( 'MediaEmbedToolbar - integration with BalloonEditor', () => {
 			toolbar = widgetToolbarRepository._toolbarDefinitions.get( 'mediaEmbed' ).view;
 			balloon = editor.plugins.get( 'ContextualBalloon' );
 			balloonToolbar = editor.plugins.get( 'BalloonToolbar' );
-		} );
-	} );
 
-	beforeEach( () => {
-		editor.ui.focusTracker.isFocused = true;
+			editor.ui.focusTracker.isFocused = true;
+		} );
 	} );
 
 	afterEach( () => {

+ 4 - 4
packages/ckeditor5-media-embed/tests/mediaregistry.js

@@ -14,7 +14,7 @@ describe( 'MediaRegistry', () => {
 				{ name: 'dailymotion', url: [] },
 				{ name: 'spotify', url: [] },
 				{ name: 'youtube', url: [] },
-				{ name: 'vimeo', url: [] },
+				{ name: 'vimeo', url: [] }
 			];
 			const removeProviders = [ 'spotify' ];
 
@@ -28,10 +28,10 @@ describe( 'MediaRegistry', () => {
 			const providers = [
 				{ name: 'dailymotion', url: [] },
 				{ name: 'youtube', url: [] },
-				{ name: 'vimeo', url: [] },
+				{ name: 'vimeo', url: [] }
 			];
 			const extraProviders = [
-				{ name: 'spotify', url: [] },
+				{ name: 'spotify', url: [] }
 			];
 
 			const mediaRegistry = new MediaRegistry( {}, { providers, extraProviders } );
@@ -47,7 +47,7 @@ describe( 'MediaRegistry', () => {
 				{ url: [ /dailymotion\.com/ ] },
 				{ name: 'spotify', url: [] },
 				{ name: 'youtube', url: [] },
-				{ name: 'vimeo', url: [] },
+				{ name: 'vimeo', url: [] }
 			];
 
 			const mediaRegistry = new MediaRegistry( {}, { providers } );

+ 1 - 1
packages/ckeditor5-media-embed/tests/ui/mediaformview.js

@@ -116,7 +116,7 @@ describe( 'MediaFormView', () => {
 			expect( view._focusables.map( f => f ) ).to.have.members( [
 				view.urlInputView,
 				view.saveButtonView,
-				view.cancelButtonView,
+				view.cancelButtonView
 			] );
 		} );
 

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
packages/ckeditor5-media-embed/theme/icons/media-placeholder.svg