dirk-cfx-react 1.1.68 → 1.1.70

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.js CHANGED
@@ -2340,7 +2340,7 @@ var GTA_CONTROLS = [
2340
2340
  // ── Misc ───────────────────────────────────────────────────────────────────
2341
2341
  { id: 51, symbol: "INPUT_CONTEXT", label: "Context (E)", defaultKey: "E", group: "Misc" },
2342
2342
  { id: 52, symbol: "INPUT_CONTEXT_SECONDARY", label: "Context Secondary", defaultKey: "Q", group: "Misc" },
2343
- { id: 73, symbol: "INPUT_CHARACTER_WHEEL", label: "Character Wheel", defaultKey: "Left Alt", group: "Misc" },
2343
+ { id: 19, symbol: "INPUT_CHARACTER_WHEEL", label: "Character Wheel", defaultKey: "Left Alt", group: "Misc" },
2344
2344
  { id: 105, symbol: "INPUT_HUD_SPECIAL", label: "Special Ability", defaultKey: "Caps Lock", group: "Misc" },
2345
2345
  { id: 121, symbol: "INPUT_MULTIPLAYER_INFO", label: "Player List", defaultKey: "Z", group: "Misc" },
2346
2346
  { id: 170, symbol: "INPUT_SAVE_REPLAY_CLIP", label: "Save Replay Clip", defaultKey: "F1", group: "Misc" },
@@ -4832,7 +4832,7 @@ function ConfigPanel(props) {
4832
4832
  }
4833
4833
  ) });
4834
4834
  }
4835
- function LazyImage({ src, alt, style }) {
4835
+ function LazyImage({ src, style }) {
4836
4836
  const [visible, setVisible] = useState(false);
4837
4837
  const ref = useRef(null);
4838
4838
  useEffect(() => {
@@ -4845,7 +4845,7 @@ function LazyImage({ src, alt, style }) {
4845
4845
  if (ref.current) observer.observe(ref.current);
4846
4846
  return () => observer.disconnect();
4847
4847
  }, []);
4848
- return /* @__PURE__ */ jsx("div", { ref, style: { width: "4vh", height: "4vh" }, children: visible && /* @__PURE__ */ jsx(Image$1, { src, alt, fit: "contain", style }) });
4848
+ return /* @__PURE__ */ jsx("div", { ref, style: { width: "4vh", height: "4vh" }, children: visible && /* @__PURE__ */ jsx(Image$1, { src, fit: "contain", style }) });
4849
4849
  }
4850
4850
  function SelectItem(props) {
4851
4851
  const invItems = useItems();
@@ -4873,12 +4873,12 @@ function SelectItem(props) {
4873
4873
  searchable: true,
4874
4874
  comboboxProps: { withinPortal: true, zIndex: 2e3 },
4875
4875
  leftSectionWidth: "4vh",
4876
+ leftSectionPointerEvents: "none",
4876
4877
  leftSection: props.value ? /* @__PURE__ */ jsx(
4877
4878
  Image$1,
4878
4879
  {
4879
4880
  fallbackSrc: "/placeholder.png",
4880
4881
  src: invItems[props.value]?.image || "",
4881
- alt: props.value,
4882
4882
  fit: "contain",
4883
4883
  maw: "4vh",
4884
4884
  style: { aspectRatio: "1 / 1" }
@@ -4890,7 +4890,6 @@ function SelectItem(props) {
4890
4890
  LazyImage,
4891
4891
  {
4892
4892
  src: invItems[item.option.value]?.image || "",
4893
- alt: item.option.label,
4894
4893
  style: { aspectRatio: "1 / 1" }
4895
4894
  }
4896
4895
  ),
@@ -5279,7 +5278,10 @@ var FiveMKeyBindInput = Object.assign(Root, {
5279
5278
  });
5280
5279
  function buildGroupedData(extraIds = []) {
5281
5280
  const groups = /* @__PURE__ */ new Map();
5281
+ const seen = /* @__PURE__ */ new Set();
5282
5282
  for (const c of GTA_CONTROLS) {
5283
+ if (seen.has(c.id)) continue;
5284
+ seen.add(c.id);
5283
5285
  if (!groups.has(c.group)) groups.set(c.group, []);
5284
5286
  groups.get(c.group).push(c);
5285
5287
  }