Skip to content

Commit

Permalink
[DEV-11526] Fix conflicting types
Browse files Browse the repository at this point in the history
  • Loading branch information
e1himself committed Sep 8, 2023
1 parent ddef4a1 commit 4586481
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ function buildPlaceholdersExtensionConfiguration({
withEmbedPlaceholders: withEmbeds,
withSocialPostPlaceholders: withEmbeds,
withPastedUrlsUnfurling:
withPlaceholders && withPlaceholders.withPastedUrlsUnfurling
? withEmbeds
withEmbeds && withPlaceholders
? withPlaceholders.withPastedUrlsUnfurling
: undefined,
};
}
Expand Down
4 changes: 2 additions & 2 deletions packages/slate-editor/src/modules/editor/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ export interface EditorProps {
withLists?: boolean;
withPlaceholders?: Pick<
PlaceholdersExtensionParameters,
'format' | 'removable' | 'withMediaPlaceholders'
> & { withPastedUrlsUnfurling?: boolean };
'format' | 'removable' | 'withMediaPlaceholders' | 'withPastedUrlsUnfurling'
>;
withPressContacts?: false | PlaceholdersExtensionParameters['withContactPlaceholders'];
withRichFormattingMenu?:
| boolean
Expand Down

0 comments on commit 4586481

Please sign in to comment.