Skip to content

Commit

Permalink
[base] Move all connector things over to base
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge authored and rexxars committed Oct 6, 2020
1 parent 5335c74 commit 4e9ad92
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 10 deletions.
4 changes: 4 additions & 0 deletions packages/@sanity/base/src/@types/parts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,8 @@ declare module 'part:@sanity/components/popover' {
export * from '@sanity/components/src/popover'
}

declare module 'part:@sanity/components/scroll' {
export * from '@sanity/components/src/scroll'
}

declare module 'all:part:*'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import {ConnectorsOverlay} from './ConnectorsOverlay'
import {Tracker, ConnectorContext} from '@sanity/base/lib/change-indicators'
import {Tracker, ConnectorContext} from '../'
import {Path} from '@sanity/types'
import {ScrollContainer} from 'part:@sanity/components/scroll'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import React from 'react'
import _scrollIntoView from 'scroll-into-view-if-needed'
import {
useReportedValues,
Reported,
TrackedChange,
TrackedArea
} from '@sanity/base/lib/change-indicators'
import {useReportedValues, Reported, TrackedChange, TrackedArea} from '../'
import {CONNECTOR_BOUNDS_MARGIN, DEBUG_LAYER_BOUNDS, VERTICAL_CONNECTOR_PADDING} from './constants'
import {Connector, drawLine, vLine} from './Connector'
import {Arrow} from './Arrow'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import {useReporter} from '@sanity/base/lib/change-indicators'
import {useReporter} from '../'

export function ReportChangesPanel(props: React.ComponentProps<'div'>) {
const ref = React.useRef<HTMLDivElement>(null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import classNames from 'classnames'
import Snackbar from 'part:@sanity/components/snackbar/default'
import React, {useCallback, useRef, useState} from 'react'
import {Path} from '@sanity/types'
import {ChangeConnectorRoot} from '../../components/changeConnector/ChangeConnectorRoot'
import {ReportChangesPanel} from '../../components/changeConnector/ReportChangesPanel'
import {ChangeConnectorRoot} from '@sanity/base/lib/change-indicators/overlay/ChangeConnectorRoot'
import {ReportChangesPanel} from '@sanity/base/lib/change-indicators/overlay/ReportChangesPanel'
import {usePaneRouter} from '../../contexts/PaneRouterContext'
import {useDeskToolFeatures} from '../../features'
import {ChangesPanel} from './changesPanel'
Expand Down

0 comments on commit 4e9ad92

Please sign in to comment.