Skip to content

Commit

Permalink
chore(deps): replace dependency is-hotkey with is-hotkey-esm ^1.0.0 (#…
Browse files Browse the repository at this point in the history
…6218)

* chore(deps): replace dependency is-hotkey with is-hotkey-esm ^1.0.0

* refactor: change `is-hotkey` imports `is-hotkey-esm`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Cody Olsen <[email protected]>
  • Loading branch information
renovate[bot] and stipsan authored Apr 5, 2024
1 parent 4385ca8 commit 12f25d5
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 31 deletions.
3 changes: 1 addition & 2 deletions packages/@sanity/portable-text-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@sanity/types": "3.36.4",
"@sanity/util": "3.36.4",
"debug": "^3.2.7",
"is-hotkey": "^0.2.0",
"is-hotkey-esm": "^1.0.0",
"lodash": "^4.17.21",
"slate": "0.100.0",
"slate-react": "0.101.0"
Expand All @@ -84,7 +84,6 @@
"@types/debug": "^4.1.5",
"@types/express": "^4.17.21",
"@types/express-ws": "^3.0.1",
"@types/is-hotkey": "^0.1.10",
"@types/lodash": "^4.14.149",
"@types/node": "^18.19.8",
"@types/node-ipc": "^9.2.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable max-statements */
/* eslint-disable complexity */
import {isPortableTextSpan, isPortableTextTextBlock} from '@sanity/types'
import isHotkey from 'is-hotkey'
import {isHotkey} from 'is-hotkey-esm'
import {type KeyboardEvent} from 'react'
import {Editor, Node, Path, Range, Transforms} from 'slate'
import {type ReactEditor} from 'slate-react'
Expand Down
3 changes: 1 addition & 2 deletions packages/@sanity/vision/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,12 @@
"@sanity/ui": "^2.0.14",
"@uiw/react-codemirror": "^4.11.4",
"hashlru": "^2.3.0",
"is-hotkey": "^0.2.0",
"is-hotkey-esm": "^1.0.0",
"json5": "^2.2.3",
"lodash": "^4.17.21"
},
"devDependencies": {
"@sanity/client": "^6.15.9",
"@types/is-hotkey": "^0.1.10",
"@types/lodash": "^4.14.149",
"react": "^18.2.0",
"sanity": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/vision/src/components/VisionGui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
type ToastContextValue,
Tooltip,
} from '@sanity/ui'
import isHotkey from 'is-hotkey'
import {isHotkey} from 'is-hotkey-esm'
import {type ChangeEvent, createRef, PureComponent, type RefObject} from 'react'
import {type TFunction} from 'sanity'

Expand Down
3 changes: 1 addition & 2 deletions packages/sanity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@
"@sanity/util": "3.36.4",
"@sanity/uuid": "^3.0.1",
"@tanstack/react-virtual": "3.0.0-beta.54",
"@types/is-hotkey": "^0.1.7",
"@types/react-copy-to-clipboard": "^5.0.2",
"@types/react-is": "^18.2.0",
"@types/shallow-equals": "^1.0.0",
Expand Down Expand Up @@ -253,7 +252,7 @@
"history": "^5.3.0",
"i18next": "^23.2.7",
"import-fresh": "^3.3.0",
"is-hotkey": "^0.2.0",
"is-hotkey-esm": "^1.0.0",
"jsdom": "^23.0.1",
"jsdom-global": "^3.0.2",
"json-lexer": "^1.2.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Card, Flex, useGlobalKeyDown, useLayer} from '@sanity/ui'
import isHotkey from 'is-hotkey'
import {isHotkey} from 'is-hotkey-esm'
import {type ReactNode, useCallback, useEffect, useState} from 'react'
import FocusLock from 'react-focus-lock'
import {styled} from 'styled-components'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {useGlobalKeyDown, useLayer} from '@sanity/ui'
import isHotkey from 'is-hotkey'
import {isHotkey} from 'is-hotkey-esm'
import {useCallback} from 'react'

import {GLOBAL_SEARCH_KEY} from '../constants'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {PortalProvider, useTheme, useToast} from '@sanity/ui'
import isHotkey from 'is-hotkey'
import {isHotkey} from 'is-hotkey-esm'
import {Fragment, memo, useCallback, useEffect, useState} from 'react'
import {_isCustomDocumentTypeDefinition, useSchema} from 'sanity'
import {useRouterState} from 'sanity/router'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
PortalProvider,
useElementRect,
} from '@sanity/ui'
import isHotkey from 'is-hotkey'
import {isHotkey} from 'is-hotkey-esm'
import {useCallback, useMemo, useState} from 'react'
import {useTranslation} from 'react-i18next'
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isHotkey from 'is-hotkey'
import {isHotkey} from 'is-hotkey-esm'
import * as React from 'react'
import {createElement, type ElementType, useCallback, useMemo, useState} from 'react'
import {type DocumentActionDescription, type DocumentActionProps, LegacyLayerProvider} from 'sanity'
Expand Down
32 changes: 14 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 12f25d5

Please sign in to comment.