Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
404 changes: 340 additions & 64 deletions packages/shared/src/components/fields/RichTextEditor/RichTextToolbar.tsx

Large diffs are not rendered by default.

423 changes: 277 additions & 146 deletions packages/shared/src/components/fields/RichTextInput.tsx

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions packages/shared/src/components/icons/Maximize/filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/shared/src/components/icons/Maximize/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { ReactElement } from 'react';
import React from 'react';
import type { IconProps } from '../../Icon';
import Icon from '../../Icon';
import OutlinedIcon from './outlined.svg';
import FilledIcon from './filled.svg';

export const MaximizeIcon = (props: IconProps): ReactElement => (
<Icon {...props} IconPrimary={OutlinedIcon} IconSecondary={FilledIcon} />
);
7 changes: 7 additions & 0 deletions packages/shared/src/components/icons/Maximize/outlined.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions packages/shared/src/components/icons/Minimize/filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/shared/src/components/icons/Minimize/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { ReactElement } from 'react';
import React from 'react';
import type { IconProps } from '../../Icon';
import Icon from '../../Icon';
import OutlinedIcon from './outlined.svg';
import FilledIcon from './filled.svg';

export const MinimizeIcon = (props: IconProps): ReactElement => (
<Icon {...props} IconPrimary={OutlinedIcon} IconSecondary={FilledIcon} />
);
7 changes: 7 additions & 0 deletions packages/shared/src/components/icons/Minimize/outlined.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions packages/shared/src/components/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,15 @@ export * from './Magic';
export * from './Mail';
export * from './Markdown';
export * from './Mastodon';
export * from './Maximize';
export * from './MedalBadge';
export * from './Megaphone';
export * from './Menu';
export * from './Merge';
export * from './Microphone';
export * from './Microsoft';
export * from './MiniClose';
export * from './Minimize';
export * from './Minus';
export * from './Moon';
export * from './MoveTo';
Expand Down
8 changes: 8 additions & 0 deletions packages/shared/src/components/modals/common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ const CreateSharedPostModal = dynamic(
),
);

const SmartComposerModal = dynamic(
() =>
import(
/* webpackChunkName: "smartComposerModal" */ './post/SmartComposerModal'
),
);

const ReportPostModal = dynamic(
() =>
import(
Expand Down Expand Up @@ -495,6 +502,7 @@ export const modals = {
[LazyModal.ReadingHistory]: ReadingHistoryModal,
[LazyModal.SquadPromotion]: SquadPromotionModal,
[LazyModal.CreateSharedPost]: CreateSharedPostModal,
[LazyModal.SmartComposer]: SmartComposerModal,
[LazyModal.ReportPost]: ReportPostModal,
[LazyModal.ReportComment]: ReportCommentModal,
[LazyModal.SquadNotifications]: SquadNotificationsModal,
Expand Down
1 change: 1 addition & 0 deletions packages/shared/src/components/modals/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export enum LazyModal {
ReadingHistory = 'readingHistory',
SquadPromotion = 'squadPromotion',
CreateSharedPost = 'createSharedPost',
SmartComposer = 'smartComposer',
ReasonSelection = 'reasonSelection',
ReportPost = 'reportPost',
ReportComment = 'reportComment',
Expand Down
Loading
Loading