Skip to content

Commit 7ff3718

Browse files
git-nandorclaude
andcommitted
fix(many): import cross-package deps from /latest in v2 components
Several v2 components imported cross-package types/components from the bare package entry (ui-options, ui-form-field, ui-expandable), which resolves to the v1 default and can pull v1 implementations/types into v2. Point these imports at the /latest entry instead. Affected: ui-color-picker, ui-drilldown, ui-toggle-details INSTUI-5120 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 154d301 commit 7ff3718

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/ui-color-picker/src/ColorPicker/v2/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424

2525
import React from 'react'
26-
import type { FormMessage } from '@instructure/ui-form-field'
26+
import type { FormMessage } from '@instructure/ui-form-field/latest'
2727
import type {
2828
WithStyleProps,
2929
ComponentStyle,

packages/ui-drilldown/src/Drilldown/v2/DrilldownOption/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import type { WithStyleProps } from '@instructure/emotion'
3131
import type {
3232
OptionsItemRenderProps,
3333
OptionsItemProps
34-
} from '@instructure/ui-options'
34+
} from '@instructure/ui-options/latest'
3535

3636
import Drilldown from '../index.js'
3737
import { Renderable } from '@instructure/shared-types'

packages/ui-drilldown/src/Drilldown/v2/DrilldownSeparator/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import type {
2828
AsElementType
2929
} from '@instructure/shared-types'
3030
import type { WithStyleProps } from '@instructure/emotion'
31-
import type { OptionsSeparatorProps } from '@instructure/ui-options'
31+
import type { OptionsSeparatorProps } from '@instructure/ui-options/latest'
3232
import type { NewComponentTypes } from '@instructure/ui-themes'
3333

3434
type DrilldownSeparatorOwnProps = {

packages/ui-toggle-details/src/ToggleDetails/v2/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ import {
2828
ChevronRightInstUIIcon,
2929
ChevronDownInstUIIcon
3030
} from '@instructure/ui-icons'
31-
import { Expandable } from '@instructure/ui-expandable'
31+
import { Expandable } from '@instructure/ui-expandable/latest'
3232
import { omitProps, pickProps } from '@instructure/ui-react-utils'
3333
import { isActiveElement } from '@instructure/ui-dom-utils'
3434

3535
import { withStyleNew } from '@instructure/emotion'
3636
import generateStyle from './styles.js'
3737
import type { ToggleDetailsProps } from './props'
3838
import { allowedProps } from './props.js'
39-
import type { ExpandableToggleProps } from '@instructure/ui-expandable'
39+
import type { ExpandableToggleProps } from '@instructure/ui-expandable/latest'
4040
import type { ViewProps } from '@instructure/ui-view/latest'
4141

4242
/**

packages/ui-toggle-details/src/ToggleGroup/v2/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ import {
3131
} from '@instructure/ui-react-utils'
3232
import { IconButton } from '@instructure/ui-buttons/latest'
3333
import { Transition } from '@instructure/ui-motion'
34-
import { Expandable } from '@instructure/ui-expandable'
35-
import type { ExpandableToggleProps } from '@instructure/ui-expandable'
34+
import { Expandable } from '@instructure/ui-expandable/latest'
35+
import type { ExpandableToggleProps } from '@instructure/ui-expandable/latest'
3636
import { isActiveElement } from '@instructure/ui-dom-utils'
3737
import { Flex } from '@instructure/ui-flex/latest'
3838
import { View } from '@instructure/ui-view/latest'

0 commit comments

Comments
 (0)