Skip to content

Commit

Permalink
[CARE-5694] Drop the New prefix from icons
Browse files Browse the repository at this point in the history
This reverts commit dc7639f.
  • Loading branch information
mohammadxali committed Jul 18, 2024
1 parent 3710658 commit 48ac5f1
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions packages/slate-editor/src/modules/editor/menuOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ function* generateOptions(
): Generator<Omit<Option<MenuAction>, 'suggested'>> {
if (withHeadings) {
yield {
icon: Icons.NewIcon.Heading1,
icon: Icons.ComponentH1,
action: MenuAction.ADD_HEADING_1,
group: Group.TEXT_N_LAYOUT,
text: 'Heading 1',
keywords: ['title'],
description: 'Big section heading',
};
yield {
icon: Icons.NewIcon.Heading2,
icon: Icons.ComponentH2,
action: MenuAction.ADD_HEADING_2,
group: Group.TEXT_N_LAYOUT,
text: 'Heading 2',
Expand All @@ -150,7 +150,7 @@ function* generateOptions(

if (withParagraphs) {
yield {
icon: Icons.NewIcon.Text,
icon: Icons.ComponentText,
action: MenuAction.ADD_PARAGRAPH,
group: Group.TEXT_N_LAYOUT,
text: 'Text',
Expand All @@ -160,7 +160,7 @@ function* generateOptions(

if (withBlockquotes) {
yield {
icon: Icons.NewIcon.Quote,
icon: Icons.ComponentQuote,
action: MenuAction.ADD_QUOTE,
group: Group.TEXT_N_LAYOUT,
text: 'Quote',
Expand All @@ -171,7 +171,7 @@ function* generateOptions(

if (withCallouts) {
yield {
icon: Icons.NewIcon.Callout,
icon: Icons.ComponentCallout,
action: MenuAction.ADD_CALLOUT,
group: Group.TEXT_N_LAYOUT,
text: 'Callout',
Expand All @@ -183,7 +183,7 @@ function* generateOptions(

if (withDivider) {
yield {
icon: Icons.NewIcon.Divider,
icon: Icons.ComponentDivider,
action: MenuAction.ADD_DIVIDER,
group: Group.TEXT_N_LAYOUT,
text: 'Divider',
Expand All @@ -195,7 +195,7 @@ function* generateOptions(
if (withButtonBlocks) {
yield {
action: MenuAction.ADD_BUTTON_BLOCK,
icon: Icons.NewIcon.Button,
icon: Icons.ComponentButton,
group: Group.TEXT_N_LAYOUT,
text: 'Button',
description: 'Insert a link button',
Expand All @@ -206,7 +206,7 @@ function* generateOptions(
if (withTables) {
yield {
action: MenuAction.ADD_TABLE,
icon: Icons.NewIcon.Table,
icon: Icons.ComponentTable,
group: Group.TEXT_N_LAYOUT,
text: 'Table',
description: 'Insert a table',
Expand All @@ -216,7 +216,7 @@ function* generateOptions(
if (withImages && UploadcareEditor.isUploadcareEditor(editor)) {
yield {
action: MenuAction.ADD_IMAGE,
icon: Icons.NewIcon.Image,
icon: Icons.ComponentImage,
group: Group.MEDIA_CONTENT,
text: 'Image',
keywords: ['photo', 'picture', 'foto'],
Expand All @@ -227,7 +227,7 @@ function* generateOptions(
if (withGalleries && UploadcareEditor.isUploadcareEditor(editor)) {
yield {
action: MenuAction.ADD_GALLERY,
icon: Icons.NewIcon.ImageGallery,
icon: Icons.ComponentGallery,
group: Group.MEDIA_CONTENT,
text: 'Gallery',
description: 'Create an image composition',
Expand All @@ -237,7 +237,7 @@ function* generateOptions(
if (withGalleryBookmarks) {
yield {
action: MenuAction.ADD_GALLERY_BOOKMARK,
icon: Icons.NewIcon.GalleryBookmark,
icon: Icons.ComponentGallery,
group: Group.MEDIA_CONTENT,
text: 'Media gallery bookmark',
description: 'Add a link to your media gallery',
Expand All @@ -247,7 +247,7 @@ function* generateOptions(
if (withVideos) {
yield {
action: MenuAction.ADD_VIDEO,
icon: Icons.NewIcon.Video,
icon: Icons.ComponentVideo,
group: Group.MEDIA_CONTENT,
text: 'Video',
description: 'Place a video from a URL',
Expand All @@ -257,7 +257,7 @@ function* generateOptions(
if (withEmbedSocial) {
yield {
action: MenuAction.ADD_EMBED_SOCIAL,
icon: Icons.NewIcon.Embed,
icon: Icons.ComponentSocialPost,
group: Group.MEDIA_CONTENT,
text: 'Social post',
description: 'Embed a social media link',
Expand All @@ -267,7 +267,7 @@ function* generateOptions(
if (withAttachments && UploadcareEditor.isUploadcareEditor(editor)) {
yield {
action: MenuAction.ADD_ATTACHMENT,
icon: Icons.NewIcon.Attachment,
icon: Icons.ComponentAttachment,
group: Group.MEDIA_CONTENT,
text: 'File attachment',
description: 'Upload or link a file',
Expand All @@ -277,7 +277,7 @@ function* generateOptions(
if (withWebBookmarks) {
yield {
action: MenuAction.ADD_WEB_BOOKMARK,
icon: Icons.NewIcon.WebBookmark,
icon: Icons.ComponentWebBookmark,
group: Group.MEDIA_CONTENT,
text: 'Website bookmark',
keywords: ['link'],
Expand All @@ -288,7 +288,7 @@ function* generateOptions(
if (withEmbeds) {
yield {
action: MenuAction.ADD_PODCAST,
icon: Icons.NewIcon.Podcast,
icon: Icons.ComponentPodcast,
group: Group.MEDIA_CONTENT,
text: 'Podcast',
keywords: ['audio', 'transistor', 'rumble', 'anchor', 'spotify', 'apple', 'google'],
Expand All @@ -297,7 +297,7 @@ function* generateOptions(

yield {
action: MenuAction.ADD_AUDIO,
icon: Icons.NewIcon.Audio,
icon: Icons.ComponentAudio,
group: Group.MEDIA_CONTENT,
keywords: ['mp3', 'music', 'song'],
text: 'Audio',
Expand All @@ -306,7 +306,7 @@ function* generateOptions(

yield {
action: MenuAction.ADD_EMBED,
icon: Icons.NewIcon.Embed,
icon: Icons.ComponentEmbed,
group: Group.MEDIA_CONTENT,
text: 'Embed',
description: 'Insert embeddable content',
Expand All @@ -316,7 +316,7 @@ function* generateOptions(
if (withCoverage) {
yield {
action: MenuAction.ADD_COVERAGE,
icon: Icons.NewIcon.Coverage,
icon: Icons.ComponentCoverage,
group: Group.PREZLY_CONTENT,
text: 'Coverage',
description: 'Add a link to a Prezly Coverage',
Expand All @@ -326,7 +326,7 @@ function* generateOptions(
if (withPressContacts) {
yield {
action: MenuAction.ADD_CONTACT,
icon: Icons.NewIcon.SiteContact,
icon: Icons.ComponentContact,
group: Group.PREZLY_CONTENT,
text: 'Site contact',
keywords: ['signature'],
Expand All @@ -337,7 +337,7 @@ function* generateOptions(
if (withStoryBookmarks) {
yield {
action: MenuAction.ADD_STORY_BOOKMARK,
icon: Icons.NewIcon.StoryBookmark,
icon: Icons.ComponentStoryBookmark,
group: Group.PREZLY_CONTENT,
text: 'Story bookmark',
description: 'Embed your Prezly content',
Expand All @@ -347,7 +347,7 @@ function* generateOptions(
if (withStoryEmbeds) {
yield {
action: MenuAction.ADD_STORY_EMBED,
icon: Icons.NewIcon.Embed,
icon: Icons.ComponentWebBookmark,
group: Group.PREZLY_CONTENT,
text: 'Story embed',
description: 'Insert Prezly story content',
Expand All @@ -357,7 +357,7 @@ function* generateOptions(
if (withSnippets) {
yield {
action: MenuAction.ADD_SNIPPET,
icon: Icons.NewIcon.Snippet,
icon: Icons.ComponentSnippet,
group: Group.PREZLY_CONTENT,
text: 'Snippets',
description: 'Insert reusable content blocks',
Expand All @@ -368,7 +368,7 @@ function* generateOptions(
yield {
action: MenuAction.ADD_YOUTUBE,
keywords: ['video', 'yt', 'reels', 'utube'],
icon: Icons.NewIcon.Youtube,
icon: Icons.ComponentYouTube,
group: Group.EMBEDS,
text: 'YouTube',
description: 'Place a video from a URL',
Expand All @@ -378,7 +378,7 @@ function* generateOptions(
if (withEmbeds && withSpecificProviderOptions) {
yield {
action: MenuAction.ADD_X,
icon: Icons.NewIcon.Twitter,
icon: Icons.ComponentX,
group: Group.EMBEDS,
text: 'X',
description: 'Embed a social media link',
Expand All @@ -387,7 +387,7 @@ function* generateOptions(

yield {
action: MenuAction.ADD_INSTAGRAM,
icon: Icons.NewIcon.Instagram,
icon: Icons.ComponentInstagram,
group: Group.EMBEDS,
text: 'Instagram',
description: 'Embed a social media link',
Expand All @@ -396,46 +396,46 @@ function* generateOptions(
yield {
action: MenuAction.ADD_TIKTOK,
keywords: ['social', 'video'],
icon: Icons.NewIcon.Tiktok,
icon: Icons.ComponentTikTok,
group: Group.EMBEDS,
text: 'TikTok',
description: 'Embed a social media link',
};
yield {
action: MenuAction.ADD_DROPBOX,
icon: Icons.NewIcon.Dropbox,
icon: Icons.ComponentDropbox,
group: Group.EMBEDS,
text: 'Dropbox',
description: 'Embed a share link',
keywords: ['db', 'files', 'share'],
};
yield {
action: MenuAction.ADD_SOUNDCLOUD,
icon: Icons.NewIcon.Soundcloud,
icon: Icons.ComponentSoundCloud,
group: Group.EMBEDS,
text: 'SoundCloud',
description: 'Embed an audio link',
keywords: ['audio', 'mp3', 'music', 'song', 'track'],
};
yield {
action: MenuAction.ADD_SPOTIFY,
icon: Icons.NewIcon.Spotify,
icon: Icons.ComponentSpotify,
group: Group.EMBEDS,
text: 'Spotify',
description: 'Embed an audio link',
keywords: ['audio', 'mp3', 'music', 'song', 'track'],
};
yield {
action: MenuAction.ADD_FACEBOOK,
icon: Icons.NewIcon.Facebook,
icon: Icons.ComponentFacebook,
group: Group.EMBEDS,
text: 'Facebook',
description: 'Embed a social media link',
keywords: ['post', 'fb', 'social'],
};
yield {
action: MenuAction.ADD_GIPHY,
icon: Icons.NewIcon.Giphy,
icon: Icons.ComponentGiphy,
group: Group.EMBEDS,
text: 'Giphy',
description: 'Insert embeddable content',
Expand All @@ -447,7 +447,7 @@ function* generateOptions(
yield {
action: MenuAction.ADD_VIMEO,
keywords: ['video'],
icon: Icons.NewIcon.Vimeo,
icon: Icons.ComponentVimeo,
group: Group.EMBEDS,
text: 'Vimeo',
description: 'Place a video from a URL',
Expand All @@ -457,71 +457,71 @@ function* generateOptions(
if (withEmbeds && withSpecificProviderOptions) {
yield {
action: MenuAction.ADD_CALENDLY,
icon: Icons.NewIcon.Calendly,
icon: Icons.ComponentCalendly,
group: Group.EMBEDS,
text: 'Calendly',
description: 'Embed a calendar link',
keywords: ['invite', 'event', 'schedule'],
};
yield {
action: MenuAction.ADD_EVENTBRITE,
icon: Icons.NewIcon.Eventbrite,
icon: Icons.ComponentEventbrite,
group: Group.EMBEDS,
text: 'Eventbrite',
description: 'Embed an event link',
keywords: ['invite', 'event', 'schedule'],
};
yield {
action: MenuAction.ADD_MICROSOFT_TEAMS,
icon: Icons.NewIcon.MsTeams,
icon: Icons.ComponentMicrosoftTeams,
group: Group.EMBEDS,
text: 'Microsoft Teams',
description: 'Embed an event link',
keywords: ['teams', 'ms', 'meeting'],
};
yield {
action: MenuAction.ADD_GOOGLE_MAPS,
icon: Icons.NewIcon.GoogleMaps,
icon: Icons.ComponentGoogleMaps,
group: Group.EMBEDS,
text: 'Google Maps',
description: 'Embed a map',
keywords: ['map', 'address'],
};
yield {
action: MenuAction.ADD_GOOGLE_DOCS,
icon: Icons.NewIcon.GoogleDocs,
icon: Icons.ComponentGoogleDocs,
group: Group.EMBEDS,
text: 'Google Docs',
description: 'Embed a document',
keywords: ['doc', 'gdoc', 'document'],
};
yield {
action: MenuAction.ADD_GOOGLE_SHEETS,
icon: Icons.NewIcon.GoogleSheets,
icon: Icons.ComponentGoogleSheets,
group: Group.EMBEDS,
text: 'Google Sheets',
description: 'Embed a spreadsheet',
keywords: ['sheet', 'gsheet', 'spreadsheet'],
};
yield {
action: MenuAction.ADD_TYPEFORM,
icon: Icons.NewIcon.Typeform,
icon: Icons.ComponentTypeform,
group: Group.EMBEDS,
text: 'Typeform',
description: 'Insert a form',
keywords: ['form', 'survey'],
};
yield {
action: MenuAction.ADD_TALLY,
icon: Icons.NewIcon.Tally,
icon: Icons.ComponentTally,
group: Group.EMBEDS,
text: 'Tally',
description: 'Insert a form',
keywords: ['form', 'survey'],
};
yield {
action: MenuAction.ADD_PINTEREST,
icon: Icons.NewIcon.Pinterest,
icon: Icons.ComponentPinterest,
group: Group.EMBEDS,
text: 'Pinterest',
description: 'Embed a social media link',
Expand Down

0 comments on commit 48ac5f1

Please sign in to comment.