dirk-cfx-react 1.0.55 → 1.0.57

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.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { BorderedIcon, BorderedIconProps, ButtonProps, Counter, FloatingParticles, FloatingParticlesProps, InfoBox, InfoBoxProps, InputContainer, InputContainerProps, LevelBanner, LevelPanel, ModalContext, ModalProvider, MotionFlex, MotionIcon, MotionImage, MotionText, NavBar, NavigationContext, NavigationProvider, NavigationStore, ParticleState, ProgressProps, Prompt, PromptButton, PromptModal, SegmentProps, SegmentedControl, SegmentedControlProps, SegmentedProgress, Title, TitleProps, useModal, useModalActions, useNavigation, useNavigationStore } from './components/index.cjs';
2
2
  export { InitialFetch, InternalEvent, SkillSettings, UploadImageProps, colorWithAlpha, copyToClipboard, createSkill, fetchNui, gameToMap, getImageShape, initialFetches, internalEvent, isEnvBrowser, isProfanity, latPr100, locale, localeStore, mapCenter, mapToGame, noop, numberToRoman, openLink, registerInitialFetch, runFetches, splitFAString, updatePresignedURL, uploadImage, useAutoFetcher, useProfanityStore } from './utils/index.cjs';
3
- export { FormProvider, FormState, TornEdgeSVGFilter, ValidationRules, createFormStore, useForm, useNuiEvent, useTornEdges } from './hooks/index.cjs';
3
+ export { FormProvider, FormState, NuiHandlerSignature, NuiMessageData, TornEdgeSVGFilter, ValidationRules, createFormStore, useForm, useNuiEvent, useTornEdges } from './hooks/index.cjs';
4
4
  export { DirkProvider, DirkProviderProps, useSettings } from './providers/index.cjs';
5
5
  import 'react/jsx-runtime';
6
6
  import 'react';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { BorderedIcon, BorderedIconProps, ButtonProps, Counter, FloatingParticles, FloatingParticlesProps, InfoBox, InfoBoxProps, InputContainer, InputContainerProps, LevelBanner, LevelPanel, ModalContext, ModalProvider, MotionFlex, MotionIcon, MotionImage, MotionText, NavBar, NavigationContext, NavigationProvider, NavigationStore, ParticleState, ProgressProps, Prompt, PromptButton, PromptModal, SegmentProps, SegmentedControl, SegmentedControlProps, SegmentedProgress, Title, TitleProps, useModal, useModalActions, useNavigation, useNavigationStore } from './components/index.js';
2
2
  export { InitialFetch, InternalEvent, SkillSettings, UploadImageProps, colorWithAlpha, copyToClipboard, createSkill, fetchNui, gameToMap, getImageShape, initialFetches, internalEvent, isEnvBrowser, isProfanity, latPr100, locale, localeStore, mapCenter, mapToGame, noop, numberToRoman, openLink, registerInitialFetch, runFetches, splitFAString, updatePresignedURL, uploadImage, useAutoFetcher, useProfanityStore } from './utils/index.js';
3
- export { FormProvider, FormState, TornEdgeSVGFilter, ValidationRules, createFormStore, useForm, useNuiEvent, useTornEdges } from './hooks/index.js';
3
+ export { FormProvider, FormState, NuiHandlerSignature, NuiMessageData, TornEdgeSVGFilter, ValidationRules, createFormStore, useForm, useNuiEvent, useTornEdges } from './hooks/index.js';
4
4
  export { DirkProvider, DirkProviderProps, useSettings } from './providers/index.js';
5
5
  import 'react/jsx-runtime';
6
6
  import 'react';
package/dist/index.js CHANGED
@@ -254,8 +254,7 @@ var useAutoFetcher = () => {
254
254
  useEffect(() => {
255
255
  if (isEnvBrowser()) return;
256
256
  const run = async () => {
257
- const results = await runFetches();
258
- console.log("[useAutoFetcher] Fetched initial data:", results);
257
+ await runFetches();
259
258
  };
260
259
  run();
261
260
  }, []);
@@ -841,7 +840,8 @@ function Counter(props) {
841
840
  aspectRatio: "1/1",
842
841
  marginBottom: "0.3vh",
843
842
  fontFamily: "Akrobat Bold",
844
- boxShadow: "0 0 5px rgba(0, 0, 0, 0.3)"
843
+ boxShadow: "0 0 5px rgba(0, 0, 0, 0.3)",
844
+ ...props.style
845
845
  },
846
846
  children: props.count
847
847
  },
@@ -2330,7 +2330,6 @@ function DirkProvider(props) {
2330
2330
  useEffect(() => {
2331
2331
  document.fonts.ready.then(() => {
2332
2332
  document.body.style.fontFamily = game === "rdr3" ? '"Red Dead", sans-serif' : game === "fivem" ? '"Akrobat Regular", sans-serif' : "sans-serif";
2333
- console.log(`Game set to ${game}, applied corresponding font family.: ${document.body.style.fontFamily}`);
2334
2333
  });
2335
2334
  }, [game]);
2336
2335
  useEffect(() => {
@@ -2341,16 +2340,17 @@ function DirkProvider(props) {
2341
2340
  }
2342
2341
  function Wrapper({ children }) {
2343
2342
  const game = useSettings((data) => data.game);
2344
- return isEnvBrowser() ? /* @__PURE__ */ jsx(
2343
+ if (!isEnvBrowser()) return /* @__PURE__ */ jsx(Fragment, { children });
2344
+ return /* @__PURE__ */ jsx(
2345
2345
  BackgroundImage,
2346
2346
  {
2347
2347
  w: "100vw",
2348
2348
  h: "100vh",
2349
- style: { overflow: "hidden" },
2349
+ style: { overflow: "hidden", backgroundColor: "transparent" },
2350
2350
  src: game === "fivem" ? "https://i.ytimg.com/vi/TOxuNbXrO28/maxresdefault.jpg" : "https://raw.githubusercontent.com/Jump-On-Studios/RedM-jo_libs/refs/heads/main/source-repositories/Menu/public/assets/images/background_dev.jpg",
2351
2351
  children
2352
2352
  }
2353
- ) : /* @__PURE__ */ jsx(Fragment, { children });
2353
+ );
2354
2354
  }
2355
2355
  function useTornEdges() {
2356
2356
  const game = useSettings((state) => state.game);