Skip to content

Commit bf87dd2

Browse files
chore: update Ref dependency to latest version (#4023)
* chore(MountNode|Sidebar): update Ref dependency to latest version The @stardust-ui/{react-component-event-listener, react-component-ref} components have been moved to @fluentui/{react-component-event-listener, react-component-ref}. Change dependency so that the new packages are used, and upgrade to their latest versions. One wrinkle: `toRefObject()` was removed from `react-component-ref` (see microsoft/fluent-ui-react#2287). I've rewritten the code that depended on this function. * fix import * Update package.json * fix yarn.lock Co-authored-by: Oleksandr Fediashov <[email protected]>
1 parent 4dba2f1 commit bf87dd2

File tree

22 files changed

+44
-46
lines changed

22 files changed

+44
-46
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Third party
22

3-
export { Ref, RefProps } from '@stardust-ui/react-component-ref'
3+
export { Ref, RefProps } from '@fluentui/react-component-ref'
44

55
// Addons
66

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
"homepage": "https://github.com/Semantic-Org/Semantic-UI-React#readme",
6969
"dependencies": {
7070
"@babel/runtime": "^7.10.5",
71+
"@fluentui/react-component-event-listener": "~0.51.0",
72+
"@fluentui/react-component-ref": "~0.51.0",
7173
"@semantic-ui-react/event-stack": "^3.1.0",
72-
"@stardust-ui/react-component-event-listener": "~0.38.0",
73-
"@stardust-ui/react-component-ref": "~0.38.0",
7474
"clsx": "^1.1.1",
7575
"keyboard-key": "^1.1.0",
7676
"lodash": "^4.17.19",

src/addons/Portal/Portal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import EventStack from '@semantic-ui-react/event-stack'
2-
import { handleRef, Ref } from '@stardust-ui/react-component-ref'
2+
import { handleRef, Ref } from '@fluentui/react-component-ref'
33
import keyboardKey from 'keyboard-key'
44
import _ from 'lodash'
55
import PropTypes from 'prop-types'

src/addons/Portal/PortalInner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { handleRef, Ref } from '@stardust-ui/react-component-ref'
1+
import { handleRef, Ref } from '@fluentui/react-component-ref'
22
import _ from 'lodash'
33
import PropTypes from 'prop-types'
44
import React, { Component } from 'react'

src/addons/TextArea/TextArea.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Ref } from '@stardust-ui/react-component-ref'
1+
import { Ref } from '@fluentui/react-component-ref'
22
import _ from 'lodash'
33
import PropTypes from 'prop-types'
44
import React, { Component, createRef } from 'react'

src/behaviors/Visibility/Visibility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Ref } from '@stardust-ui/react-component-ref'
1+
import { Ref } from '@fluentui/react-component-ref'
22
import _ from 'lodash'
33
import PropTypes from 'prop-types'
44
import React, { Component, createRef } from 'react'

src/elements/Button/Button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Ref } from '@stardust-ui/react-component-ref'
1+
import { Ref } from '@fluentui/react-component-ref'
22
import cx from 'clsx'
33
import _ from 'lodash'
44
import PropTypes from 'prop-types'

src/elements/Input/Input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { handleRef } from '@stardust-ui/react-component-ref'
1+
import { handleRef } from '@fluentui/react-component-ref'
22
import cx from 'clsx'
33
import _ from 'lodash'
44
import PropTypes from 'prop-types'

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Third party
2-
export { Ref } from '@stardust-ui/react-component-ref'
2+
export { Ref } from '@fluentui/react-component-ref'
33

44
// Addons
55
export Confirm from './addons/Confirm'

src/lib/hooks/useClassNamesOnNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { isRefObject } from '@fluentui/react-component-ref'
12
import React from 'react'
2-
import { isRefObject } from '@stardust-ui/react-component-ref'
33

44
import useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect'
55

0 commit comments

Comments
 (0)