dirk-cfx-react 1.1.1 → 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 -2
- 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 -2
- 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 -294
- 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 -291
- 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.js
CHANGED
|
@@ -2309,6 +2309,7 @@ registerInitialFetch("GET_SETTINGS", void 0, {
|
|
|
2309
2309
|
itemImgPath: "https://assets.dirkcfx.com/items/",
|
|
2310
2310
|
customTheme: {}
|
|
2311
2311
|
}).then((data) => {
|
|
2312
|
+
console.log("Fetched initial settings:");
|
|
2312
2313
|
useSettings.setState({
|
|
2313
2314
|
...data
|
|
2314
2315
|
});
|
|
@@ -2332,8 +2333,6 @@ function DirkProvider(props) {
|
|
|
2332
2333
|
...props.themeOverride
|
|
2333
2334
|
// Props theme will override/extend the entire theme
|
|
2334
2335
|
}), [primaryColor, primaryShade, customTheme, props.themeOverride]);
|
|
2335
|
-
console.log("created merged theme:");
|
|
2336
|
-
console.log(mergedTheme);
|
|
2337
2336
|
useEffect(() => {
|
|
2338
2337
|
document.fonts.ready.then(() => {
|
|
2339
2338
|
document.body.style.fontFamily = game === "rdr3" ? '"Red Dead", sans-serif' : game === "fivem" ? '"Akrobat Regular", sans-serif' : "sans-serif";
|
|
@@ -2343,6 +2342,7 @@ function DirkProvider(props) {
|
|
|
2343
2342
|
fetchNui("NUI_READY");
|
|
2344
2343
|
}, []);
|
|
2345
2344
|
useAutoFetcher();
|
|
2345
|
+
console.log("DirkProvider rendered with game:", game);
|
|
2346
2346
|
return /* @__PURE__ */ jsx(MantineProvider, { theme: mergedTheme, defaultColorScheme: "dark", children: /* @__PURE__ */ jsx(Wrapper, { children: props.children }) });
|
|
2347
2347
|
}
|
|
2348
2348
|
function Wrapper({ children }) {
|