dirk-cfx-react 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +886 -10
- package/dist/index.d.ts +886 -10
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/components/index.cjs +0 -1416
- package/dist/components/index.cjs.map +0 -1
- package/dist/components/index.d.cts +0 -699
- package/dist/components/index.d.ts +0 -699
- package/dist/components/index.js +0 -1386
- package/dist/components/index.js.map +0 -1
- package/dist/hooks/index.cjs +0 -350
- package/dist/hooks/index.cjs.map +0 -1
- package/dist/hooks/index.d.cts +0 -71
- package/dist/hooks/index.d.ts +0 -71
- package/dist/hooks/index.js +0 -342
- package/dist/hooks/index.js.map +0 -1
- package/dist/providers/index.cjs +0 -293
- package/dist/providers/index.cjs.map +0 -1
- package/dist/providers/index.d.cts +0 -20
- package/dist/providers/index.d.ts +0 -20
- package/dist/providers/index.js +0 -290
- package/dist/providers/index.js.map +0 -1
- package/dist/utils/index.cjs +0 -816
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.d.cts +0 -109
- package/dist/utils/index.d.ts +0 -109
- package/dist/utils/index.js +0 -786
- package/dist/utils/index.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2317,6 +2317,7 @@ registerInitialFetch("GET_SETTINGS", void 0, {
|
|
|
2317
2317
|
itemImgPath: "https://assets.dirkcfx.com/items/",
|
|
2318
2318
|
customTheme: {}
|
|
2319
2319
|
}).then((data) => {
|
|
2320
|
+
console.log("Fetched initial settings:");
|
|
2320
2321
|
useSettings.setState({
|
|
2321
2322
|
...data
|
|
2322
2323
|
});
|
|
@@ -2340,7 +2341,6 @@ function DirkProvider(props) {
|
|
|
2340
2341
|
...props.themeOverride
|
|
2341
2342
|
// Props theme will override/extend the entire theme
|
|
2342
2343
|
}), [primaryColor, primaryShade, customTheme, props.themeOverride]);
|
|
2343
|
-
console.log(mergedTheme);
|
|
2344
2344
|
react.useEffect(() => {
|
|
2345
2345
|
document.fonts.ready.then(() => {
|
|
2346
2346
|
document.body.style.fontFamily = game === "rdr3" ? '"Red Dead", sans-serif' : game === "fivem" ? '"Akrobat Regular", sans-serif' : "sans-serif";
|
|
@@ -2350,6 +2350,7 @@ function DirkProvider(props) {
|
|
|
2350
2350
|
fetchNui("NUI_READY");
|
|
2351
2351
|
}, []);
|
|
2352
2352
|
useAutoFetcher();
|
|
2353
|
+
console.log("DirkProvider rendered with game:", game);
|
|
2353
2354
|
return /* @__PURE__ */ jsxRuntime.jsx(core.MantineProvider, { theme: mergedTheme, defaultColorScheme: "dark", children: /* @__PURE__ */ jsxRuntime.jsx(Wrapper, { children: props.children }) });
|
|
2354
2355
|
}
|
|
2355
2356
|
function Wrapper({ children }) {
|