Skip to content

Commit bb208c1

Browse files
committed
chore: bump deps
1 parent 1867fce commit bb208c1

14 files changed

+32
-33
lines changed

assets/select.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
@import '~rc-select/assets/index';
1+
@import '~@rc-component/select/assets/index';
22

33
@select-prefix: ~'rc-tree-select';

examples/form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React, { Component } from 'react';
2-
import Select from 'rc-select';
2+
import Select from '@rc-component/select';
33
import Form, { useForm, Field } from 'rc-field-form';
44
import TreeSelect from '../src';
5-
import 'rc-select/assets/index.less';
5+
import '@rc-component/select/assets/index.less';
66
import '../assets/index.less';
77
import { gData } from './utils/dataUtil';
88

package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "rc-tree-select",
3-
"version": "5.27.0",
2+
"name": "@rc-component/tree-select",
3+
"version": "1.0.0",
44
"description": "tree-select ui component for react",
55
"keywords": [
66
"react",
@@ -35,7 +35,7 @@
3535
"lint": "eslint src/ examples/ --ext .tsx,.ts,.jsx,.js",
3636
"now-build": "npm run build",
3737
"prepare": "husky && dumi setup",
38-
"prepublishOnly": "npm run compile && np --yolo --no-publish --any-branch",
38+
"prepublishOnly": "npm run compile && rc-np",
3939
"prettier": "prettier '{src,tests}/**/*.{ts,tsx}' 'tests/**/*.js' --write",
4040
"start": "dumi dev",
4141
"test": "rc-test"
@@ -44,15 +44,15 @@
4444
"*": "prettier --write --ignore-unknown"
4545
},
4646
"dependencies": {
47-
"@babel/runtime": "^7.25.7",
4847
"classnames": "2.x",
49-
"rc-select": "~14.16.2",
48+
"@rc-component/select": "~1.0.0",
5049
"rc-tree": "~5.13.0",
51-
"rc-util": "^5.43.0"
50+
"@rc-component/util": "^1.2.1"
5251
},
5352
"devDependencies": {
54-
"@rc-component/father-plugin": "^1.1.0",
55-
"@rc-component/trigger": "^1.18.3",
53+
"@rc-component/father-plugin": "^2.0.2",
54+
"@rc-component/np": "^1.0.3",
55+
"@rc-component/trigger": "^3.0.0",
5656
"@testing-library/react": "^12.1.5",
5757
"@types/jest": "^29.5.13",
5858
"@types/node": "^22.7.5",
@@ -73,7 +73,6 @@
7373
"glob": "^11.0.0",
7474
"husky": "^9.1.6",
7575
"lint-staged": "^15.2.10",
76-
"np": "^10.0.7",
7776
"prettier": "^3.3.3",
7877
"rc-dialog": "^9.6.0",
7978
"rc-field-form": "^2.4.0",

src/OptionList.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { useBaseProps } from 'rc-select';
2-
import type { RefOptionListProps } from 'rc-select/lib/OptionList';
1+
import { useBaseProps } from '@rc-component/select';
2+
import type { RefOptionListProps } from '@rc-component/select/lib/OptionList';
33
import type { TreeProps } from 'rc-tree';
44
import Tree from 'rc-tree';
55
import { UnstableContext } from 'rc-tree';
66
import type { EventDataNode, ScrollTo } from 'rc-tree/lib/interface';
7-
import KeyCode from 'rc-util/lib/KeyCode';
8-
import useMemo from 'rc-util/lib/hooks/useMemo';
7+
import KeyCode from '@rc-component/util/lib/KeyCode';
8+
import useMemo from '@rc-component/util/lib/hooks/useMemo';
99
import * as React from 'react';
1010
import LegacyContext from './LegacyContext';
1111
import TreeSelectContext from './TreeSelectContext';
1212
import type { DataNode, Key, SafeKey } from './interface';
1313
import { getAllKeys, isCheckDisabled } from './utils/valueUtil';
14-
import { useEvent } from 'rc-util';
14+
import { useEvent } from '@rc-component/util';
1515

1616
const HIDDEN_STYLE = {
1717
width: 0,

src/TreeSelect.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import type { BaseSelectPropsWithoutPrivate, BaseSelectRef } from 'rc-select';
2-
import { BaseSelect } from 'rc-select';
3-
import useId from 'rc-select/lib/hooks/useId';
1+
import type { BaseSelectPropsWithoutPrivate, BaseSelectRef } from '@rc-component/select';
2+
import { BaseSelect } from '@rc-component/select';
3+
import useId from '@rc-component/select/lib/hooks/useId';
44
import type { IconType } from 'rc-tree/lib/interface';
55
import type { ExpandAction } from 'rc-tree/lib/Tree';
66
import { conductCheck } from 'rc-tree/lib/utils/conductUtil';
7-
import useMergedState from 'rc-util/lib/hooks/useMergedState';
8-
import warning from 'rc-util/lib/warning';
7+
import useMergedState from '@rc-component/util/lib/hooks/useMergedState';
8+
import warning from '@rc-component/util/lib/warning';
99
import * as React from 'react';
1010
import useCache from './hooks/useCache';
1111
import useCheckedKeys from './hooks/useCheckedKeys';

src/hooks/useDataEntities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import { convertDataToEntities } from 'rc-tree/lib/utils/treeUtil';
33
import type { DataEntity } from 'rc-tree/lib/interface';
44
import type { SafeKey, FieldNames } from '../interface';
5-
import warning from 'rc-util/lib/warning';
5+
import warning from '@rc-component/util/lib/warning';
66
import { isNil } from '../utils/valueUtil';
77

88
export default (treeData: any, fieldNames: FieldNames) =>

src/utils/legacyUtil.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
2-
import toArray from 'rc-util/lib/Children/toArray';
3-
import warning from 'rc-util/lib/warning';
2+
import toArray from '@rc-component/util/lib/Children/toArray';
3+
import warning from '@rc-component/util/lib/warning';
44
import type {
55
DataNode,
66
ChangeEventExtra,

src/utils/warningPropsUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import warning from 'rc-util/lib/warning';
1+
import warning from '@rc-component/util/lib/warning';
22
import type { TreeSelectProps } from '../TreeSelect';
33
import { toArray } from './valueUtil';
44

tests/Select.SearchInput.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React, { useState } from 'react';
33
import { mount } from 'enzyme';
44
import { render, fireEvent } from '@testing-library/react';
55
import TreeSelect, { TreeNode } from '../src';
6-
import KeyCode from 'rc-util/lib/KeyCode';
6+
import KeyCode from '@rc-component/util/lib/KeyCode';
77

88
describe('TreeSelect.SearchInput', () => {
99
it('select item will clean searchInput', () => {

tests/Select.maxCount.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { render, fireEvent, within } from '@testing-library/react';
2-
import KeyCode from 'rc-util/lib/KeyCode';
2+
import KeyCode from '@rc-component/util/lib/KeyCode';
33
import { keyDown, keyUp } from './util';
44
import React from 'react';
55
import TreeSelect from '../src';

tests/Select.multiple.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable no-undef */
22
import { render, fireEvent, within } from '@testing-library/react';
33
import { mount } from 'enzyme';
4-
import KeyCode from 'rc-util/lib/KeyCode';
4+
import KeyCode from '@rc-component/util/lib/KeyCode';
55
import React from 'react';
66
import TreeSelect, { TreeNode } from '../src';
77
import focusTest from './shared/focusTest';

tests/Select.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { render } from '@testing-library/react';
22
import { mount } from 'enzyme';
3-
import KeyCode from 'rc-util/lib/KeyCode';
3+
import KeyCode from '@rc-component/util/lib/KeyCode';
44
import React from 'react';
55
import TreeSelect, { TreeNode } from '../src';
66
import focusTest from './shared/focusTest';
77
import { selectNode } from './util';
8-
import type { BaseSelectRef } from 'rc-select';
8+
import type { BaseSelectRef } from '@rc-component/select';
99

1010
const mockScrollTo = jest.fn();
1111

tests/Select.tree.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable no-undef, react/no-multi-comp, no-console */
22
import React from 'react';
33
import { mount } from 'enzyme';
4-
import { resetWarned } from 'rc-util/lib/warning';
4+
import { resetWarned } from '@rc-component/util/lib/warning';
55
import TreeSelect, { TreeNode as SelectNode } from '../src';
66

77
describe('TreeSelect.tree', () => {

tests/Select.warning.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { mount } from 'enzyme';
3-
import { resetWarned } from 'rc-util/lib/warning';
3+
import { resetWarned } from '@rc-component/util/lib/warning';
44
import TreeSelect from '../src';
55

66
describe('TreeSelect.warning', () => {

0 commit comments

Comments
 (0)