Skip to content

Commit

Permalink
fix: Remove type imports from @react-types/shared (#610)
Browse files Browse the repository at this point in the history
Resolves #609 

**Before Merging:**
- Have Version Bump to have access to exports introduced in #2084
- Once merged, remove comments and redundant imports
  • Loading branch information
AkshatJawne authored Jul 9, 2024
1 parent df6786a commit 66dc4bf
Show file tree
Hide file tree
Showing 6 changed files with 225 additions and 316 deletions.
499 changes: 204 additions & 295 deletions package-lock.json

Large diffs are not rendered by default.

21 changes: 10 additions & 11 deletions plugins/ui/src/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,23 @@
"react-dom": "^17.0.2"
},
"dependencies": {
"@deephaven/chart": "^0.85.0",
"@deephaven/components": "^0.85.0",
"@deephaven/dashboard": "^0.85.0",
"@deephaven/dashboard-core-plugins": "^0.85.0",
"@deephaven/golden-layout": "^0.85.0",
"@deephaven/chart": "^0.85.1",
"@deephaven/components": "^0.85.1",
"@deephaven/dashboard": "^0.85.1",
"@deephaven/dashboard-core-plugins": "^0.85.1",
"@deephaven/golden-layout": "^0.85.1",
"@deephaven/grid": "^0.85.0",
"@deephaven/icons": "^0.85.0",
"@deephaven/iris-grid": "^0.85.0",
"@deephaven/jsapi-bootstrap": "^0.85.0",
"@deephaven/jsapi-components": "^0.85.0",
"@deephaven/iris-grid": "^0.85.1",
"@deephaven/jsapi-bootstrap": "^0.85.1",
"@deephaven/jsapi-components": "^0.85.1",
"@deephaven/jsapi-types": "^1.0.0-dev0.35.0",
"@deephaven/log": "^0.85.0",
"@deephaven/plugin": "^0.85.0",
"@deephaven/plugin": "^0.85.1",
"@deephaven/react-hooks": "^0.85.0",
"@deephaven/redux": "^0.85.0",
"@deephaven/redux": "^0.85.1",
"@deephaven/utils": "^0.85.0",
"@fortawesome/react-fontawesome": "^0.2.0",
"@react-types/shared": "^3.22.0",
"classnames": "^2.5.1",
"json-rpc-2.0": "^1.6.0",
"nanoid": "^5.0.7",
Expand Down
3 changes: 1 addition & 2 deletions plugins/ui/src/js/src/elements/RadioGroup.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import {
RadioGroup as DHRadioGroup,
RadioGroupProps as DHRadioGroupProps,
Orientation,
} from '@deephaven/components';
// TODO: web-client-ui#2084 Re-export @react-types/shared types
import { Orientation } from '@react-types/shared';
import { SerializedFocusEventProps } from './model/SerializedPropTypes';
import { useFocusEventCallback } from './hooks/useFocusEventCallback';

Expand Down
7 changes: 4 additions & 3 deletions plugins/ui/src/js/src/elements/hooks/useListViewProps.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { ReactElement } from 'react';
// TODO: web-client-ui#2084 Re-export @react-types/shared types
import type { SelectionMode } from '@react-types/shared';
import { ListViewProps as DHListViewProps } from '@deephaven/components';
import {
ListViewProps as DHListViewProps,
SelectionMode,
} from '@deephaven/components';
import { ListViewProps as DHListViewJSApiProps } from '@deephaven/jsapi-components';
import ObjectView, { ObjectViewProps } from '../ObjectView';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useCallback } from 'react';
// TODO: web-client-ui#2084 Re-export @react-types/shared types
import { PressEvent } from '@react-types/shared';
import { PressEvent } from '@deephaven/components';
import { getTargetName } from '../utils';

export function serializePressEvent(event: PressEvent): SerializedPressEvent {
Expand Down
8 changes: 5 additions & 3 deletions plugins/ui/src/js/src/elements/hooks/useSelectionProps.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { useCallback } from 'react';
// TODO: web-client-ui#2084 Re-export @react-types/shared types
import type { SelectionMode } from '@react-types/shared';
import type { ItemKey, ItemSelection } from '@deephaven/components';
import type {
ItemKey,
ItemSelection,
SelectionMode,
} from '@deephaven/components';

export type SerializedSelection = 'all' | ItemKey[];

Expand Down

0 comments on commit 66dc4bf

Please sign in to comment.