From 01a94cd7b82af5e8a9edde4bf9dc8a0ffdea51f1 Mon Sep 17 00:00:00 2001 From: krokodok Date: Thu, 7 Dec 2023 23:24:38 +0100 Subject: [PATCH] Add transform scope to social link variations --- .../src/social-link/variations.js | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/packages/block-library/src/social-link/variations.js b/packages/block-library/src/social-link/variations.js index af3219d2084c8..309e6566dd001 100644 --- a/packages/block-library/src/social-link/variations.js +++ b/packages/block-library/src/social-link/variations.js @@ -57,6 +57,7 @@ const variations = [ attributes: { service: 'wordpress' }, title: 'WordPress', icon: WordPressIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { @@ -64,126 +65,147 @@ const variations = [ attributes: { service: 'fivehundredpx' }, title: '500px', icon: FivehundredpxIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'amazon', attributes: { service: 'amazon' }, title: 'Amazon', icon: AmazonIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'bandcamp', attributes: { service: 'bandcamp' }, title: 'Bandcamp', icon: BandcampIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'behance', attributes: { service: 'behance' }, title: 'Behance', icon: BehanceIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'chain', attributes: { service: 'chain' }, title: 'Link', icon: ChainIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'codepen', attributes: { service: 'codepen' }, title: 'CodePen', icon: CodepenIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'deviantart', attributes: { service: 'deviantart' }, title: 'DeviantArt', icon: DeviantArtIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'dribbble', attributes: { service: 'dribbble' }, title: 'Dribbble', icon: DribbbleIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'dropbox', attributes: { service: 'dropbox' }, title: 'Dropbox', icon: DropboxIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'etsy', attributes: { service: 'etsy' }, title: 'Etsy', icon: EtsyIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'facebook', attributes: { service: 'facebook' }, title: 'Facebook', icon: FacebookIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'feed', attributes: { service: 'feed' }, title: 'RSS Feed', icon: FeedIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'flickr', attributes: { service: 'flickr' }, title: 'Flickr', icon: FlickrIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'foursquare', attributes: { service: 'foursquare' }, title: 'Foursquare', icon: FoursquareIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'goodreads', attributes: { service: 'goodreads' }, title: 'Goodreads', icon: GoodreadsIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'google', attributes: { service: 'google' }, title: 'Google', icon: GoogleIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'github', attributes: { service: 'github' }, title: 'GitHub', icon: GitHubIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'gravatar', attributes: { service: 'gravatar' }, title: 'Gravatar', icon: GravatarIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'instagram', attributes: { service: 'instagram' }, title: 'Instagram', icon: InstagramIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'lastfm', attributes: { service: 'lastfm' }, title: 'Last.fm', icon: LastfmIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'linkedin', attributes: { service: 'linkedin' }, title: 'LinkedIn', icon: LinkedInIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'mail', @@ -191,126 +213,147 @@ const variations = [ title: 'Mail', keywords: [ 'email', 'e-mail' ], icon: MailIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'mastodon', attributes: { service: 'mastodon' }, title: 'Mastodon', icon: MastodonIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'meetup', attributes: { service: 'meetup' }, title: 'Meetup', icon: MeetupIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'medium', attributes: { service: 'medium' }, title: 'Medium', icon: MediumIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'patreon', attributes: { service: 'patreon' }, title: 'Patreon', icon: PatreonIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'pinterest', attributes: { service: 'pinterest' }, title: 'Pinterest', icon: PinterestIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'pocket', attributes: { service: 'pocket' }, title: 'Pocket', icon: PocketIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'reddit', attributes: { service: 'reddit' }, title: 'Reddit', icon: RedditIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'skype', attributes: { service: 'skype' }, title: 'Skype', icon: SkypeIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'snapchat', attributes: { service: 'snapchat' }, title: 'Snapchat', icon: SnapchatIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'soundcloud', attributes: { service: 'soundcloud' }, title: 'SoundCloud', icon: SoundCloudIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'spotify', attributes: { service: 'spotify' }, title: 'Spotify', icon: SpotifyIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'telegram', attributes: { service: 'telegram' }, title: 'Telegram', icon: TelegramIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'threads', attributes: { service: 'threads' }, title: 'Threads', icon: ThreadsIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'tiktok', attributes: { service: 'tiktok' }, title: 'TikTok', icon: TiktokIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'tumblr', attributes: { service: 'tumblr' }, title: 'Tumblr', icon: TumblrIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'twitch', attributes: { service: 'twitch' }, title: 'Twitch', icon: TwitchIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'twitter', attributes: { service: 'twitter' }, title: 'Twitter', icon: TwitterIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'vimeo', attributes: { service: 'vimeo' }, title: 'Vimeo', icon: VimeoIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'vk', attributes: { service: 'vk' }, title: 'VK', icon: VkIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'whatsapp', attributes: { service: 'whatsapp' }, title: 'WhatsApp', icon: WhatsAppIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'x', @@ -318,18 +361,21 @@ const variations = [ keywords: [ 'twitter' ], title: 'X', icon: XIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'yelp', attributes: { service: 'yelp' }, title: 'Yelp', icon: YelpIcon, + scope: [ 'block', 'inserter', 'transform' ], }, { name: 'youtube', attributes: { service: 'youtube' }, title: 'YouTube', icon: YouTubeIcon, + scope: [ 'block', 'inserter', 'transform' ], }, ];