mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
Update dependency eslint-plugin-import to v2.25.2 (#1555)
* Update dependency eslint-plugin-import to v2.25.2 Signed-off-by: Renovate Bot <bot@renovateapp.com> Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> * Make type imports more explicit Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> * Enforce use of type imports Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
fc3a3fa1a9
commit
2abe40ef1d
264 changed files with 567 additions and 504 deletions
|
@ -5,10 +5,11 @@
|
|||
*/
|
||||
|
||||
import equal from 'fast-deep-equal'
|
||||
import { RefObject, useCallback, useEffect, useRef } from 'react'
|
||||
import type { RefObject } from 'react'
|
||||
import { useCallback, useEffect, useRef } from 'react'
|
||||
import useResizeObserver from 'use-resize-observer'
|
||||
import { LineMarkerPosition } from '../types'
|
||||
import { LineMarkers } from '../replace-components/linemarker/line-number-marker'
|
||||
import type { LineMarkerPosition } from '../types'
|
||||
import type { LineMarkers } from '../replace-components/linemarker/line-number-marker'
|
||||
|
||||
export const calculateLineMarkerPositions = (
|
||||
documentElement: HTMLDivElement,
|
||||
|
|
|
@ -4,17 +4,18 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { Element, isTag } from 'domhandler'
|
||||
import type { Element } from 'domhandler'
|
||||
import { isTag } from 'domhandler'
|
||||
import React, { Suspense } from 'react'
|
||||
import { convertNodeToReactElement } from '@hedgedoc/html-to-react/dist/convertNodeToReactElement'
|
||||
import {
|
||||
import type {
|
||||
ComponentReplacer,
|
||||
NativeRenderer,
|
||||
SubNodeTransform,
|
||||
ValidReactDomElement
|
||||
} from '../replace-components/ComponentReplacer'
|
||||
import { LineKeys } from '../types'
|
||||
import { NodeToReactElementTransformer } from '@hedgedoc/html-to-react/dist/NodeToReactElementTransformer'
|
||||
import type { LineKeys } from '../types'
|
||||
import type { NodeToReactElementTransformer } from '@hedgedoc/html-to-react/dist/NodeToReactElementTransformer'
|
||||
|
||||
export interface TextDifferenceResult {
|
||||
lines: LineKeys[]
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
*/
|
||||
|
||||
import { diffArrays } from 'diff'
|
||||
import { TextDifferenceResult } from './html-react-transformer'
|
||||
import { LineKeys } from '../types'
|
||||
import type { TextDifferenceResult } from './html-react-transformer'
|
||||
import type { LineKeys } from '../types'
|
||||
|
||||
export const calculateNewLineNumberMapping = (
|
||||
newMarkdownLines: string[],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue