Skip to content

Commit

Permalink
fix(libraries/shared)!: move hooks and components submodules to `…
Browse files Browse the repository at this point in the history
…@revenge-mod/utils`
  • Loading branch information
PalmDevs committed Jan 5, 2025
1 parent da441a7 commit c18027a
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion libraries/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"module": "src/index.ts",
"type": "module",
"exports": {
"./components": "./src/components.tsx",
"./paths": "./src/paths.ts",
"./types": "./src/types.d.ts"
}
Expand Down
2 changes: 2 additions & 0 deletions libraries/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
"module": "src/index.ts",
"type": "module",
"exports": {
"./components": "./src/components.tsx",
"./enums": "./src/enums.ts",
"./errors": "./src/errors.ts",
"./hooks": "./src/hooks.ts",
"./react": "./src/react.ts",
"./library": "./src/library.ts",
"./observables": "./src/observables.ts",
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion libraries/utils/src/observables.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Observable, type Observer, type ObserverOptions } from '@gullerya/object-observer'
import { useRerenderer } from '@revenge-mod/shared/hooks'
import { useRerenderer } from '@revenge-mod/utils/hooks'

export function useObserve(observables: Observable[], opts?: ObserverOptions) {
const rerender = useRerenderer()
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/settings/pages/Plugins/Browser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { NavigationNative } from '@revenge-mod/modules/common'
import { ContextMenu, IconButton, Stack } from '@revenge-mod/modules/common/components'
import { FolderIcon } from '@revenge-mod/modules/common/components/icons'

import { Show } from '@revenge-mod/shared/components'
import { Show } from '@revenge-mod/utils/components'

import { memo, useEffect, useState, type ComponentProps } from 'react'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { getAssetIndexByName } from '@revenge-mod/assets'
import { FormSwitch } from '@revenge-mod/ui/components'
import { Show } from '@revenge-mod/utils/components'
import { useRerenderer } from '@revenge-mod/utils/hooks'

import { openAlert } from '@revenge-mod/modules/common'
import { AlertActionButton, AlertModal, IconButton } from '@revenge-mod/modules/common/components'
import { BundleUpdaterManager } from '@revenge-mod/modules/native'

import { registeredPlugins } from '@revenge-mod/plugins/internals'

import { Show } from '@revenge-mod/shared/components'
import { useRerenderer } from '@revenge-mod/shared/hooks'

import { useContext } from 'react'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { getAssetIndexByName } from '@revenge-mod/assets'
import { IconButton } from '@revenge-mod/modules/common/components'
import { SearchInput } from '@revenge-mod/ui/components'
import { Show } from '@revenge-mod/utils/components'

import { useContext } from 'react'
import { View } from 'react-native'

import { PluginSettingsPageContext, styles } from './shared'
import { Show } from '@revenge-mod/shared/components'

export default function PluginListSearchAndFilters() {
const { setQuery, ContextMenuComponent } = useContext(PluginSettingsPageContext)
Expand Down
3 changes: 1 addition & 2 deletions src/plugins/settings/pages/Plugins/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ import { type ComponentProps, memo, useContext, useState } from 'react'
import { ScrollView, View } from 'react-native'

import { useObserveStorage } from '@revenge-mod/storage'
import { useObservable } from '@revenge-mod/storage'

import { externalPluginsMetadata, registeredPlugins } from '@revenge-mod/plugins/internals'

import { Show } from '@revenge-mod/shared/components'
import { Show } from '@revenge-mod/utils/components'

import BrowsePluginsButton from './components/BrowsePluginsButton'
import { NoPlugins, NoResults } from './components/Illustrations'
Expand Down

0 comments on commit c18027a

Please sign in to comment.