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/components/index.cjs +7 -5
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +7 -5
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +7 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -1734,7 +1734,7 @@ var GTA_CONTROLS = [
|
|
|
1734
1734
|
// ── Misc ───────────────────────────────────────────────────────────────────
|
|
1735
1735
|
{ id: 51, symbol: "INPUT_CONTEXT", label: "Context (E)", defaultKey: "E", group: "Misc" },
|
|
1736
1736
|
{ id: 52, symbol: "INPUT_CONTEXT_SECONDARY", label: "Context Secondary", defaultKey: "Q", group: "Misc" },
|
|
1737
|
-
{ id:
|
|
1737
|
+
{ id: 19, symbol: "INPUT_CHARACTER_WHEEL", label: "Character Wheel", defaultKey: "Left Alt", group: "Misc" },
|
|
1738
1738
|
{ id: 105, symbol: "INPUT_HUD_SPECIAL", label: "Special Ability", defaultKey: "Caps Lock", group: "Misc" },
|
|
1739
1739
|
{ id: 121, symbol: "INPUT_MULTIPLAYER_INFO", label: "Player List", defaultKey: "Z", group: "Misc" },
|
|
1740
1740
|
{ id: 170, symbol: "INPUT_SAVE_REPLAY_CLIP", label: "Save Replay Clip", defaultKey: "F1", group: "Misc" },
|
|
@@ -4099,7 +4099,7 @@ function ConfigPanel(props) {
|
|
|
4099
4099
|
}
|
|
4100
4100
|
) });
|
|
4101
4101
|
}
|
|
4102
|
-
function LazyImage({ src,
|
|
4102
|
+
function LazyImage({ src, style }) {
|
|
4103
4103
|
const [visible, setVisible] = useState(false);
|
|
4104
4104
|
const ref = useRef(null);
|
|
4105
4105
|
useEffect(() => {
|
|
@@ -4112,7 +4112,7 @@ function LazyImage({ src, alt, style }) {
|
|
|
4112
4112
|
if (ref.current) observer.observe(ref.current);
|
|
4113
4113
|
return () => observer.disconnect();
|
|
4114
4114
|
}, []);
|
|
4115
|
-
return /* @__PURE__ */ jsx("div", { ref, style: { width: "4vh", height: "4vh" }, children: visible && /* @__PURE__ */ jsx(Image, { src,
|
|
4115
|
+
return /* @__PURE__ */ jsx("div", { ref, style: { width: "4vh", height: "4vh" }, children: visible && /* @__PURE__ */ jsx(Image, { src, fit: "contain", style }) });
|
|
4116
4116
|
}
|
|
4117
4117
|
function SelectItem(props) {
|
|
4118
4118
|
const invItems = useItems();
|
|
@@ -4140,12 +4140,12 @@ function SelectItem(props) {
|
|
|
4140
4140
|
searchable: true,
|
|
4141
4141
|
comboboxProps: { withinPortal: true, zIndex: 2e3 },
|
|
4142
4142
|
leftSectionWidth: "4vh",
|
|
4143
|
+
leftSectionPointerEvents: "none",
|
|
4143
4144
|
leftSection: props.value ? /* @__PURE__ */ jsx(
|
|
4144
4145
|
Image,
|
|
4145
4146
|
{
|
|
4146
4147
|
fallbackSrc: "/placeholder.png",
|
|
4147
4148
|
src: invItems[props.value]?.image || "",
|
|
4148
|
-
alt: props.value,
|
|
4149
4149
|
fit: "contain",
|
|
4150
4150
|
maw: "4vh",
|
|
4151
4151
|
style: { aspectRatio: "1 / 1" }
|
|
@@ -4157,7 +4157,6 @@ function SelectItem(props) {
|
|
|
4157
4157
|
LazyImage,
|
|
4158
4158
|
{
|
|
4159
4159
|
src: invItems[item.option.value]?.image || "",
|
|
4160
|
-
alt: item.option.label,
|
|
4161
4160
|
style: { aspectRatio: "1 / 1" }
|
|
4162
4161
|
}
|
|
4163
4162
|
),
|
|
@@ -4546,7 +4545,10 @@ var FiveMKeyBindInput = Object.assign(Root, {
|
|
|
4546
4545
|
});
|
|
4547
4546
|
function buildGroupedData(extraIds = []) {
|
|
4548
4547
|
const groups = /* @__PURE__ */ new Map();
|
|
4548
|
+
const seen = /* @__PURE__ */ new Set();
|
|
4549
4549
|
for (const c of GTA_CONTROLS) {
|
|
4550
|
+
if (seen.has(c.id)) continue;
|
|
4551
|
+
seen.add(c.id);
|
|
4550
4552
|
if (!groups.has(c.group)) groups.set(c.group, []);
|
|
4551
4553
|
groups.get(c.group).push(c);
|
|
4552
4554
|
}
|