Skip to content

Commit

Permalink
fix: tidy merge conflicts from rebasing the feature branch
Browse files Browse the repository at this point in the history
  • Loading branch information
augustobmoura authored and dmaklygin committed Jul 3, 2023
1 parent 20df1f7 commit d6cc8d0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { renderHook } from '@testing-library/react-hooks'
import { getTypographyClassName } from '@toptal/picasso'
import type { TypographyOptions } from '@toptal/picasso'

import useTypographyClasses from './useTypographyClasses'
import getTypographyClassName from '../../../Typography/utils/get-typography-class-name/get-typography-class-name'
import type { TypographyOptions } from '../../../Typography/utils/get-typography-class-name/get-typography-class-name'

jest.mock('../../../Typography/styles', () => ({
__esModule: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import type { OmitInternalProps } from '@toptal/picasso-shared'

import type { Props } from './RichTextEditor'
export type {
CustomEmojiGroup,
ChangeHandler as RichTextEditorChangeHandler,
} from './types'
export type { CustomEmojiGroup, RichTextEditorChangeHandler } from './types'

export { default } from './RichTextEditor'
export type RichTextEditorProps = OmitInternalProps<Props>
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import type { OmitInternalProps } from '@toptal/picasso-shared'
import { render } from '@toptal/picasso/test-utils'
import { InputMultilineAdornment } from '@toptal/picasso'

import RichTextEditor from './RichTextEditor'
import type { Props } from './RichTextEditor'
import LexicalEditor from '../LexicalEditor'
import { useCounter } from './hooks'
import InputMultilineAdornment from '../InputMultilineAdornment'

jest.mock('../utils/use-deprecation-warnings', () => ({
usePropDeprecationWarning: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ export type CounterMessageSetter = (
isError: boolean
) => string

export type { ChangeHandler, TextLengthChangeHandler } from '../LexicalEditor'
export type {
ChangeHandler,
ChangeHandler as RichTextEditorChangeHandler,
TextLengthChangeHandler,
} from '../LexicalEditor'

// @todo: remove this when we remove the old editor
export type { CustomEmojiGroup, CustomEmoji } from '../QuillEditor'
5 changes: 4 additions & 1 deletion packages/picasso-rich-text-editor/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export { default as RichTextEditor } from './RichTextEditor'
export type { RichTextEditorProps } from './RichTextEditor'
export type {
RichTextEditorProps,
RichTextEditorChangeHandler,
} from './RichTextEditor'
export { default as RichText } from './RichText'
export type { RichTextProps, ASTType } from './RichText'

0 comments on commit d6cc8d0

Please sign in to comment.