fix(lib/react)!: ReactJsxRuntime -> ReactJSXRuntime
JSX is JavaScript XML, which should be capitalized
This commit is contained in:
parent
84c6edcfe2
commit
78e8a96034
8 changed files with 22 additions and 22 deletions
|
|
@ -10,7 +10,7 @@ import {
|
|||
lookupModules,
|
||||
} from '@revenge-mod/modules/finders/lookup'
|
||||
import {
|
||||
ReactJsxRuntimeModuleId,
|
||||
ReactJSXRuntimeModuleId,
|
||||
ReactModuleId,
|
||||
ReactNativeModuleId,
|
||||
} from '@revenge-mod/react'
|
||||
|
|
@ -33,7 +33,7 @@ export let ActionSheetActionCreators: DiscordModules.Actions.ActionSheetActionCr
|
|||
byDependencies([
|
||||
undefined,
|
||||
ReactModuleId,
|
||||
ReactJsxRuntimeModuleId,
|
||||
ReactJSXRuntimeModuleId,
|
||||
DispatcherModuleId,
|
||||
relative(1),
|
||||
relative(2),
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {
|
|||
} from '@revenge-mod/modules/finders/filters'
|
||||
import { lookupModule } from '@revenge-mod/modules/finders/lookup'
|
||||
import {
|
||||
ReactJsxRuntimeModuleId,
|
||||
ReactJSXRuntimeModuleId,
|
||||
ReactModuleId,
|
||||
ReactNativeModuleId,
|
||||
} from '@revenge-mod/react'
|
||||
|
|
@ -61,7 +61,7 @@ export let FormSwitch: DiscordModules.Components.FormSwitch = proxify(() => {
|
|||
[relative(1), relative(2), undefined, relative(3)],
|
||||
ReactModuleId,
|
||||
ReactNativeModuleId,
|
||||
ReactJsxRuntimeModuleId,
|
||||
ReactJSXRuntimeModuleId,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import {
|
|||
} from '@revenge-mod/modules/finders/filters'
|
||||
import { lookupModule } from '@revenge-mod/modules/finders/lookup'
|
||||
import {
|
||||
ReactJsxRuntimeModuleId,
|
||||
ReactJSXRuntimeModuleId,
|
||||
ReactModuleId,
|
||||
ReactNativeModuleId,
|
||||
} from '@revenge-mod/react'
|
||||
|
|
@ -30,7 +30,7 @@ export let SettingListRenderer: SettingListRenderer = proxify(
|
|||
relative(1),
|
||||
relative(2),
|
||||
undefined,
|
||||
ReactJsxRuntimeModuleId,
|
||||
ReactJSXRuntimeModuleId,
|
||||
]),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
4
lib/externals/src/react-navigation.ts
vendored
4
lib/externals/src/react-navigation.ts
vendored
|
|
@ -5,7 +5,7 @@ import {
|
|||
preferExports,
|
||||
} from '@revenge-mod/modules/finders/filters'
|
||||
import { lookupModule } from '@revenge-mod/modules/finders/lookup'
|
||||
import { ReactJsxRuntimeModuleId, ReactModuleId } from '@revenge-mod/react'
|
||||
import { ReactJSXRuntimeModuleId, ReactModuleId } from '@revenge-mod/react'
|
||||
import { proxify } from '@revenge-mod/utils/proxy'
|
||||
|
||||
const { loose, relative } = byDependencies
|
||||
|
|
@ -52,7 +52,7 @@ export let ReactNavigationStack: typeof import('@react-navigation/stack') =
|
|||
loose([
|
||||
[[]],
|
||||
ReactModuleId,
|
||||
ReactJsxRuntimeModuleId,
|
||||
ReactJSXRuntimeModuleId,
|
||||
]),
|
||||
1,
|
||||
),
|
||||
|
|
|
|||
4
lib/externals/src/shopify.ts
vendored
4
lib/externals/src/shopify.ts
vendored
|
|
@ -5,7 +5,7 @@ import {
|
|||
} from '@revenge-mod/modules/finders/filters'
|
||||
import { lookupModule } from '@revenge-mod/modules/finders/lookup'
|
||||
import {
|
||||
ReactJsxRuntimeModuleId,
|
||||
ReactJSXRuntimeModuleId,
|
||||
ReactModuleId,
|
||||
ReactNativeModuleId,
|
||||
} from '@revenge-mod/react'
|
||||
|
|
@ -19,7 +19,7 @@ export let FlashList: typeof import('@shopify/flash-list') = proxify(
|
|||
byDependencies([
|
||||
ReactModuleId,
|
||||
ReactNativeModuleId,
|
||||
ReactJsxRuntimeModuleId,
|
||||
ReactJSXRuntimeModuleId,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ import type { Metro } from '@revenge-mod/modules/types'
|
|||
|
||||
export let ReactModuleId: Metro.ModuleID
|
||||
export let ReactNativeModuleId: Metro.ModuleID
|
||||
export let ReactJsxRuntimeModuleId: Metro.ModuleID
|
||||
export let ReactJSXRuntimeModuleId: Metro.ModuleID
|
||||
|
||||
export let React: typeof import('react')
|
||||
export let ReactNative: typeof import('react-native')
|
||||
export let ReactJsxRuntime: typeof import('react/jsx-runtime')
|
||||
export let ReactJSXRuntime: typeof import('react/jsx-runtime')
|
||||
|
||||
let RtCount = 0
|
||||
|
||||
|
|
@ -34,12 +34,12 @@ const unsubRN = waitForModules(
|
|||
|
||||
let RJsxRCount = 0
|
||||
|
||||
const unsubRJsxR = waitForModules(
|
||||
byProps<typeof ReactJsxRuntime>('jsxs'),
|
||||
const unsubRJSXR = waitForModules(
|
||||
byProps<typeof ReactJSXRuntime>('jsxs'),
|
||||
(exports, id) => {
|
||||
if (RJsxRCount++ === 2) return unsubRJsxR()
|
||||
if (RJsxRCount++ === 2) return unsubRJSXR()
|
||||
|
||||
ReactJsxRuntimeModuleId = id
|
||||
ReactJsxRuntime = exports
|
||||
ReactJSXRuntimeModuleId = id
|
||||
ReactJSXRuntime = exports
|
||||
},
|
||||
)
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { TokensModuleId } from '@revenge-mod/discord/common'
|
|||
import { byDependencies, byProps } from '@revenge-mod/modules/finders/filters'
|
||||
import { lookupModule } from '@revenge-mod/modules/finders/lookup'
|
||||
import {
|
||||
ReactJsxRuntimeModuleId,
|
||||
ReactJSXRuntimeModuleId,
|
||||
ReactModuleId,
|
||||
ReactNativeModuleId,
|
||||
} from '@revenge-mod/react'
|
||||
|
|
@ -13,7 +13,7 @@ import type { FC } from 'react'
|
|||
// Asset = relativeDep(1)
|
||||
const IconComponentFilter = [
|
||||
ReactModuleId,
|
||||
ReactJsxRuntimeModuleId,
|
||||
ReactJSXRuntimeModuleId,
|
||||
TokensModuleId,
|
||||
undefined,
|
||||
undefined,
|
||||
|
|
@ -26,7 +26,7 @@ const IconComponentFilter = [
|
|||
const MultiIconComponentFilterBase = [
|
||||
ReactModuleId,
|
||||
ReactNativeModuleId,
|
||||
ReactJsxRuntimeModuleId,
|
||||
ReactJSXRuntimeModuleId,
|
||||
TokensModuleId,
|
||||
undefined,
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import { ReactJsxRuntime } from '@revenge-mod/react'
|
||||
import { ReactJSXRuntime } from '@revenge-mod/react'
|
||||
import { isProxified, unproxify } from '@revenge-mod/utils/proxy'
|
||||
import type { ElementType } from 'react'
|
||||
|
||||
const { jsx: _jsx, jsxs: _jsxs, Fragment } = ReactJsxRuntime
|
||||
const { jsx: _jsx, jsxs: _jsxs, Fragment } = ReactJSXRuntime
|
||||
|
||||
const jsx = ((type, ...args) =>
|
||||
_jsx(unproxy(type as object), ...args)) as typeof _jsx
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue