Skip to content

Commit 9b97b5a

Browse files
committed
chore: bump deps
1 parent 8933bfc commit 9b97b5a

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@
4040
"watch": "father dev"
4141
},
4242
"dependencies": {
43-
"@babel/runtime": "^7.18.0",
44-
"@rc-component/portal": "^1.0.0-9",
43+
"@rc-component/portal": "^2.0.0",
4544
"@rc-component/trigger": "^2.0.0",
46-
"classnames": "^2.3.2",
47-
"rc-util": "^5.24.4"
45+
"@rc-component/util": "^1.2.1",
46+
"classnames": "^2.3.2"
4847
},
4948
"devDependencies": {
5049
"@rc-component/father-plugin": "^2.0.3",

src/Mask.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import classNames from 'classnames';
33
import Portal from '@rc-component/portal';
44
import type { PosInfo } from './hooks/useTarget';
5-
import useId from 'rc-util/lib/hooks/useId';
5+
import useId from '@rc-component/lib/hooks/useId';
66
import type { SemanticName, TourProps } from './interface';
77

88
const COVER_PROPS = {

src/Tour.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import Portal from '@rc-component/portal';
44
import type { TriggerRef } from '@rc-component/trigger';
55
import Trigger from '@rc-component/trigger';
66
import classNames from 'classnames';
7-
import useLayoutEffect from 'rc-util/lib/hooks/useLayoutEffect';
8-
import useMergedState from 'rc-util/lib/hooks/useMergedState';
7+
import useLayoutEffect from '@rc-component/lib/hooks/useLayoutEffect';
8+
import useMergedState from '@rc-component/lib/hooks/useMergedState';
99
import { useMemo } from 'react';
1010
import { useClosable } from './hooks/useClosable';
1111
import useTarget from './hooks/useTarget';

src/TourStep/DefaultPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22
import type { TourStepProps } from '../interface';
33
import classNames from 'classnames';
4-
import pickAttrs from 'rc-util/lib/pickAttrs';
4+
import pickAttrs from '@rc-component/lib/pickAttrs';
55

66
export type DefaultPanelProps = Exclude<TourStepProps, 'closable'> & {
77
closable: Exclude<TourStepProps['closable'], boolean>;

src/hooks/useTarget.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import useEvent from 'rc-util/lib/hooks/useEvent';
2-
import useLayoutEffect from 'rc-util/lib/hooks/useLayoutEffect';
1+
import useEvent from '@rc-component/lib/hooks/useEvent';
2+
import useLayoutEffect from '@rc-component/lib/hooks/useLayoutEffect';
33
import { useMemo, useState } from 'react';
44
import type { TourStepInfo } from '..';
55
import { isInViewPort } from '../util';

tests/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { fireEvent, render, screen } from '@testing-library/react';
2-
import { spyElementPrototypes } from 'rc-util/lib/test/domHook';
2+
import { spyElementPrototypes } from '@rc-component/lib/test/domHook';
33
import type { ReactNode } from 'react';
44
import React, { StrictMode, useRef, useState } from 'react';
55
import { act } from 'react-dom/test-utils';

0 commit comments

Comments
 (0)