Skip to content

Commit 4c96cd5

Browse files
committed
refactor: normalization directory structure
1 parent 33fe001 commit 4c96cd5

6 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/web/EnrichedTextInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import { useOnLinkDetected } from './useOnLinkDetected';
3535
import {
3636
prepareHtmlForTiptap,
3737
normalizeHtmlFromTiptap,
38-
} from './tiptapHtmlNormalizer';
38+
} from './normalization/tiptapHtmlNormalizer';
3939
import { ENRICHED_TEXT_INPUT_DEFAULT_PROPS } from '../utils/EnrichedTextInputDefaultProps';
4040
import { enrichedInputStyleToCSSProperties } from './styleConversion/enrichedInputStyleToCSSProperties';
4141
import { enrichedInputThemingToCSSProperties } from './styleConversion/enrichedInputThemingToCSSProperties';

src/web/__tests__/htmlNormalizer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* from the C++ suite. The expected outputs are the same as the native
44
* normalizer's outputs
55
*/
6-
import { normalizeHtml } from '../htmlNormalizer';
6+
import { normalizeHtml } from '../normalization/htmlNormalizer';
77

88
describe('htmlNormalizer', () => {
99
describe('TagRemappings', () => {
File renamed without changes.
File renamed without changes.

src/web/useOnChangeHtml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { type Editor } from '@tiptap/react';
22
import type { OnChangeHtmlEvent } from '../types';
33
import type { NativeSyntheticEvent } from 'react-native';
44
import { useOnEditorChange } from './useOnEditorChange';
5-
import { normalizeHtmlFromTiptap } from './tiptapHtmlNormalizer';
5+
import { normalizeHtmlFromTiptap } from './normalization/tiptapHtmlNormalizer';
66

77
export const useOnChangeHtml = (
88
editor: Editor,

0 commit comments

Comments
 (0)