5 Commits

Author SHA1 Message Date
github-actions
3c5d5faa9f chore: bump version to v3.30.10 2025-05-29 11:17:05 +00:00
uShifty
ae640729ca fix(shared): Improper import of context (#18) 2025-05-27 11:18:45 +02:00
github-actions
3c405250b0 chore: bump version to v3.30.9 2025-05-18 13:25:19 +00:00
ANTOND.
7375e4054d docs: update cfxlua extension url (#16) 2025-05-18 14:45:54 +02:00
ANTOND.
22b3600a14 fix(web): re-apply patch for react-hot-toast (#13) 2025-05-18 14:32:22 +02:00
9 changed files with 292 additions and 239 deletions

View File

@@ -27,6 +27,6 @@ https://www.npmjs.com/package/@communityox/ox_lib
## 🖥️ Lua Language Server ## 🖥️ Lua Language Server
- Install [Lua Language Server](https://marketplace.visualstudio.com/items?itemName=sumneko.lua) to ease development with annotations, type checking, diagnostics, and more. - Install [Lua Language Server](https://marketplace.visualstudio.com/items?itemName=sumneko.lua) to ease development with annotations, type checking, diagnostics, and more.
- Install [cfxlua-vscode](https://marketplace.visualstudio.com/items?itemName=communityox.cfxlua-vscode) to add natives and cfxlua runtime declarations to LLS. - Install [CfxLua IntelliSense](https://marketplace.visualstudio.com/items?itemName=communityox.cfxlua-vscode-cox) to add natives and cfxlua runtime declarations to LLS.
- You can load ox_lib into your global development environment by modifying workspace/user settings "Lua.workspace.library" with the resource path. - You can load ox_lib into your global development environment by modifying workspace/user settings "Lua.workspace.library" with the resource path.
- e.g. "c:/fxserver/resources/ox_lib" - e.g. "c:/fxserver/resources/ox_lib"

View File

@@ -6,7 +6,7 @@ rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aw
name 'ox_lib' name 'ox_lib'
author 'Overextended' author 'Overextended'
version '3.30.8' version '3.30.10'
license 'LGPL-3.0-or-later' license 'LGPL-3.0-or-later'
repository 'https://github.com/communityox/ox_lib' repository 'https://github.com/communityox/ox_lib'
description 'A library of shared functions to utilise in other resources.' description 'A library of shared functions to utilise in other resources.'

View File

@@ -1,7 +1,7 @@
{ {
"name": "@communityox/ox_lib", "name": "@communityox/ox_lib",
"author": "Overextended", "author": "Overextended",
"version": "3.30.8", "version": "3.30.10",
"description": "JS/TS wrapper for ox_lib exports", "description": "JS/TS wrapper for ox_lib exports",
"main": "./shared/index.js", "main": "./shared/index.js",
"types": "./shared/index.d.ts", "types": "./shared/index.d.ts",

View File

@@ -1,5 +1,5 @@
import { cache } from '../cache/index'; import { cache } from '../cache/index';
import { context } from 'shared'; import { context } from '../../index';
import { Vector3 } from "@nativewrappers/client"; import { Vector3 } from "@nativewrappers/client";
interface NearbyVehicle { interface NearbyVehicle {

View File

@@ -21,7 +21,7 @@
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"react-hook-form": "^7.41.3", "react-hook-form": "^7.41.3",
"react-hot-toast": "^2.4.0", "react-hot-toast": "^2.5.2",
"react-markdown": "^8.0.1", "react-markdown": "^8.0.1",
"remark-gfm": "^3.0.1", "remark-gfm": "^3.0.1",
"tinycolor2": "^1.6.0", "tinycolor2": "^1.6.0",
@@ -46,6 +46,9 @@
}, },
}, },
}, },
"patchedDependencies": {
"react-hot-toast@2.5.2": "patches/react-hot-toast@2.5.2.patch",
},
"packages": { "packages": {
"@ampproject/remapping": ["@ampproject/remapping@2.3.0", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw=="], "@ampproject/remapping": ["@ampproject/remapping@2.3.0", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw=="],

View File

@@ -21,7 +21,7 @@
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"react-hook-form": "^7.41.3", "react-hook-form": "^7.41.3",
"react-hot-toast": "^2.4.0", "react-hot-toast": "^2.5.2",
"react-markdown": "^8.0.1", "react-markdown": "^8.0.1",
"remark-gfm": "^3.0.1", "remark-gfm": "^3.0.1",
"tinycolor2": "^1.6.0", "tinycolor2": "^1.6.0",
@@ -50,9 +50,7 @@
"prop-types": "^15.8.1", "prop-types": "^15.8.1",
"rimraf": "^3.0.2" "rimraf": "^3.0.2"
}, },
"pnpm": { "patchedDependencies": {
"patchedDependencies": { "react-hot-toast@2.5.2": "patches/react-hot-toast@2.5.2.patch"
"react-hot-toast@2.4.0": "patches/react-hot-toast@2.4.0.patch"
}
} }
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -138,7 +138,7 @@ const Notifications: React.FC = () => {
} else { } else {
iconColor = tinycolor(data.iconColor).toRgbString(); iconColor = tinycolor(data.iconColor).toRgbString();
} }
toast.custom( toast.custom(
(t) => ( (t) => (
<Box <Box